Skip to content
Snippets Groups Projects
Commit dd00e357 authored by Antoine Millet's avatar Antoine Millet
Browse files

Added getpeername method on RpcConnection class.

parent 96425026
No related branches found
No related tags found
No related merge requests found
......@@ -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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment