Hello all,
I want to be able to determine the IP address of the client making an
XMPRPC call.
I got the tip to use this:
-------------------------------
class RPCServer(Simpl eXMLRPCServer):
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 SimpleXMLRPCSer ver._dispatch(s elf, method,
params+(self.cl ient_address,))
return SimpleXMLRPCSer ver._dispatch(s elf, method, params);
-------------------------------
But it complains that it can not find 'client_address '.
It may be relevant to point out that I am using this:
-------------------------------
class AsyncXMLRPCServ er(SocketServer .ThreadingMixIn ,SimpleXMLRPCSe rver):
pass
-------------------------------
If anyone has any hints or tips.. Please share them.
--
Kind regards,
Jan Danielsson
I want to be able to determine the IP address of the client making an
XMPRPC call.
I got the tip to use this:
-------------------------------
class RPCServer(Simpl eXMLRPCServer):
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 SimpleXMLRPCSer ver._dispatch(s elf, method,
params+(self.cl ient_address,))
return SimpleXMLRPCSer ver._dispatch(s elf, method, params);
-------------------------------
But it complains that it can not find 'client_address '.
It may be relevant to point out that I am using this:
-------------------------------
class AsyncXMLRPCServ er(SocketServer .ThreadingMixIn ,SimpleXMLRPCSe rver):
pass
-------------------------------
If anyone has any hints or tips.. Please share them.
--
Kind regards,
Jan Danielsson