Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sjrpc
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
sjrpc
Commits
dd00e357
Commit
dd00e357
authored
14 years ago
by
Antoine Millet
Browse files
Options
Downloads
Patches
Plain Diff
Added getpeername method on RpcConnection class.
parent
96425026
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sjrpc/core/rpcconnection.py
+10
-0
10 additions, 0 deletions
sjrpc/core/rpcconnection.py
with
10 additions
and
0 deletions
sjrpc/core/rpcconnection.py
+
10
−
0
View file @
dd00e357
...
...
@@ -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
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment