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 fba273904ea85ed7246024f68655e3190bc09382 1 parent 5879e9b
abarnert abarnert authored

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

  1. +6 0 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 comments on commit fba2739

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