Re: [Karrigell-main] client address patch.
Brought to you by:
quentel
From: Gabriele G. <gab...@te...> - 2003-10-02 07:05:30
|
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. |