Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Mirror
sjrpc
Commits
dd00e357
Commit
dd00e357
authored
Jan 04, 2011
by
Antoine Millet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added getpeername method on RpcConnection class.
parent
96425026
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
sjrpc/core/rpcconnection.py
sjrpc/core/rpcconnection.py
+10
-0
No files found.
sjrpc/core/rpcconnection.py
View file @
dd00e357
...
@@ -406,3 +406,13 @@ class RpcConnection(object):
...
@@ -406,3 +406,13 @@ class RpcConnection(object):
'''
'''
return
self
.
_sock
.
fileno
()
return
self
.
_sock
.
fileno
()
def
getpeername
(
self
):
'''
Get the peer name.
:return: string representing the peer name
'''
return
'%s:%s'
%
self
.
_sock
.
getpeername
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment