469,962 Members | 2,033 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,962 developers. It's quick & easy.

SimpleXMLRPCServer - client address

Hello all,

I writing an application based on the SimpleXMLRPCServer class. I
would like to know the IP address of the client performing the RPC. Is
that possible, without having to abandon the SimpleXMLRPCServer class?

--
Kind regards,
Jan Danielsson
Apr 1 '07 #1
1 1796
Jan Danielsson wrote:
Hello all,

I writing an application based on the SimpleXMLRPCServer class. I
would like to know the IP address of the client performing the RPC. Is
that possible, without having to abandon the SimpleXMLRPCServer class?
I did this a long time ago so it's not likely the best solution.

class RPCServer(SimpleXMLRPCServer):

def _dispatch(self, method, params):
"""Extend dispatch, adding client info to some parameters."""
if method in ({my list of methods I needed client address}):
return SimpleXMLRPCServer._dispatch(self, method,
params+(self.client_address,))
return SimpleXMLRPCServer._dispatch(self, method, params);

Apr 2 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Yannick Turgeon | last post: by
4 posts views Thread by codecraig | last post: by
3 posts views Thread by Daniel Crespo | last post: by
reply views Thread by Jeremy Monnet | last post: by
3 posts views Thread by Achim Domma | last post: by
reply views Thread by Jan Danielsson | last post: by
3 posts views Thread by Sean DiZazzo | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.