Commit dd00e357 authored by Antoine Millet's avatar Antoine Millet

Added getpeername method on RpcConnection class.

parent 96425026
......@@ -406,3 +406,13 @@ class RpcConnection(object):
'''
return self._sock.fileno()
def getpeername(self):
'''
Get the peer name.
:return: string representing the peer name
'''
return '%s:%s' % self._sock.getpeername()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment