Skip to content
This repository
Browse code

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...
commit 1d9c1f6a4e67742edb705d745dcf937f80a3d39e 1 parent 389630e
abarnert authored August 14, 2012

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. 6  bjsonrpc/server.py
6  bjsonrpc/server.py
@@ -182,3 +182,9 @@ def serve(self):
182 182
             except Exception:
183 183
                 pass
184 184
 
  185
+    @property
  186
+    def socket(self): 
  187
+        """
  188
+            public property that holds the internal listener socket used.
  189
+        """
  190
+        return self._lstsck

0 notes on commit 1d9c1f6

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