Re: [Simpleweb-Support] Unable to get the remote client port
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2006-12-21 16:15:42
|
Hi Jerome,=0A=0AThe way you can do this is by creating a PipelineFactory. T=
his can be added to the connection you create. For an example look at the B=
ufferedPipelineFactory. Here you can create a pipeline, and add the socket =
as an attribute. For example.=0A=0Apublic class MyPipelineFactory implement=
s PipelineFactory {=0A public Pipline getPipeline(Socket sock) {=0A =
Pipeline pipe =3D new BufferedPipeline(sock);=0A pipe.set(MyConst=
ants.SOCKET_IDENTIFIER, sock);=0A return pipe;=0A }=0A}=0A=0AI ha=
ve been thinking of adding a way to get the client port to the request with=
out the need for a pipeline factory as it has been requested before. Perhap=
s in the next release which already contains quite a few new features.=0A =
=0ANiall Gallagher=0A=0A----- Original Message ----=0AFrom: Jerome Louvel <=
co...@no...>=0ATo: sim...@li...=0ASent: =
Thursday, December 21, 2006 3:45:41 PM=0ASubject: [Simpleweb-Support] Unabl=
e to get the remote client port=0A=0A=0AHi,=0A=0AI have to get the remote c=
lient port number in order to implement the IDENT=0Aprotocol. I couldn't fi=
nd a way to get this information from a Request=0Ainstance. I can't even ca=
st it to a MonitoredRequest in order to access to=0Athe internal socket.=0A=
=0ACould it be possible to extend the Request interface with this property?=
=0A=0ABest regards,=0AJerome Louvel=0A--=0Ahttp://www.restlet.org=0A=0A=0A-=
------------------------------------------------------------------------=0A=
Take Surveys. Earn Cash. Influence the Future of IT=0AJoin SourceForge.net'=
s Techsay panel and you'll get the chance to share your=0Aopinions on IT & =
business topics through brief surveys - and earn cash=0Ahttp://www.techsay.=
com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV=0A____________=
___________________________________=0ASimpleweb-Support mailing list=0ASimp=
lew...@li...=0Ahttps://lists.sourceforge.net/lists/l=
istinfo/simpleweb-support=0A=0A=0A=0A=0A___________________________________=
_______________=0ADo You Yahoo!?=0ATired of spam? Yahoo! Mail has the best=
spam protection around =0Ahttp://mail.yahoo.com
|