Re: [Karrigell-main] client address patch.
Brought to you by:
quentel
From: Pierre Q. <que...@wa...> - 2003-10-02 17:14:03
|
All you have to do is ask : I've added the REQUEST_HANDLER variable in the latest version on CVS ----- Original Message ----- From: "Gabriele Giorgetti" <gab...@te...> To: <kar...@li...> Sent: Thursday, October 02, 2003 9:05 AM Subject: Re: [Karrigell-main] client address patch. > Pierre Quentel wrote: > > >To be more generic, perhaps it would be even more useful to introduce a > >variable REQUEST_HANDLER which is the current instance of > >karrigellRequestHandler. Then you can find the IP address by : > > > >REQUEST_HANDLER.client_address[0] > > > >and if you need the client port : > >REQUEST_HANDLER.client_address[1] > > > >You can take advantage of all the attributes of this instance (server, > >connection, etc). I think it's better not to add too many names in the > >user's namespace > > > >Would this be ok for what you need ? What do the others think ? > >Cheers, > > > >Pierre > > > Yes I agree with you, it's not good to add too many junk in the user's > namespace. By the way as I already told you my patch is just a temp. > workaround to get the client's ip address, quick > > Please go ahead with the REQUEST_HANDLER thing if you think it's > usefull as well. > > Cheers. > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Karrigell-main mailing list > Kar...@li... > https://lists.sourceforge.net/lists/listinfo/karrigell-main |