Permalink
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...
abarnert committed Aug 14, 2012
1 parent 389630e commit 1d9c1f6a4e67742edb705d745dcf937f80a3d39e
Showing with 6 additions and 0 deletions.
  1. +6 −0 bjsonrpc/server.py
View
@@ -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 1d9c1f6

Please sign in to comment.