obtain client ip address from SimpleXMLRPCServer ?

2006-01-23 Thread stuff
Is it possible to obtain the client's ip address from a SimpleXMLRPCServer instance or subclass instance? When running SimpleXMLRPCServer with logRequests = 1, the xmlrpc server prints out the fqdn on the console, however, I'm not sure if this information (either fqdn or ip address) is available t

Re: obtain client ip address from SimpleXMLRPCServer ?

2006-01-24 Thread Peter Gsellmann
[EMAIL PROTECTED] wrote: > Is it possible to obtain the client's ip address from a > SimpleXMLRPCServer instance or subclass instance? When running > SimpleXMLRPCServer with logRequests = 1, the xmlrpc server prints out > the fqdn on the console, however, I'm not sure if this information > (eithe

Re: obtain client ip address from SimpleXMLRPCServer ?

2006-01-26 Thread stuff
Thanks for the reply Peter. Can you provide a code snippet for extracting this data. When I print the dir() of the SimpleXMLRPCServer instance I do not see a request_handler attribute or method. Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: obtain client ip address from SimpleXMLRPCServer ?

2006-01-27 Thread Peter Gsellmann
[EMAIL PROTECTED] wrote: > Thanks for the reply Peter. Can you provide a code snippet for > extracting this data. When I print the dir() of the SimpleXMLRPCServer > instance I do not see a request_handler attribute or method. this is ok. In the serverclass-object, there is no such method because

Re: obtain client ip address from SimpleXMLRPCServer ?

2006-01-29 Thread stuff
Thanks again Peter. I found 2 potential solutions for obtaining the ip address of the incoming connection. The first was to subclass SimpleXMLRPCRequestHandler class and pass it to the SimpleXMLRPCServer constructor. In doing so, I could directly access the client_address via self.client_address