Skip to content
Browse files

Add Server.socket property.

- Connection already has a similar property.

- This is useful for binding a service to port 0 and then finding out
  what port it actually got.
  • Loading branch information...
1 parent 5879e9b commit fba273904ea85ed7246024f68655e3190bc09382 @abarnert abarnert committed Aug 14, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 bjsonrpc/server.py
View
6 bjsonrpc/server.py
@@ -182,3 +182,9 @@ def serve(self):
except Exception:
pass
+ @property
+ def socket(self):
+ """
+ public property that holds the internal listener socket used.
+ """
+ return self._lstsck

0 comments on commit fba2739

Please sign in to comment.
Something went wrong with that request. Please try again.