parameters: (self, inbound_handler, port=0)
docstring: Setup a server socket listening on the specified port. If the
          port is omitted, will choose any open port.
          @param inbound_handler: handler to invoke with
          new connection
          @type  inbound_handler: fn(sock, addr)
          @param port: port to bind to, omit/0 to bind to any
          @type  port: int
docstring_summary: Setup a server socket listening on the specified port. If the
          port is omitted, will choose any open port.
docstring_tokens: Setup a server socket listening on the specified port . If the port is omitted will choose any open port .
function: def __init__(self, inbound_handler, port=0):
          """
          Setup a server socket listening on the specified port. If the
          port is omitted, will choose any open port.
          @param inbound_handler: handler to invoke with
          new connection
          @type  inbound_handler: fn(sock, addr)
          @param port: port to bind to, omit/0 to bind to any
          @type  port: int
          """
          self.port = port #will get overwritten if port=0
          self.addr = None #set at socket bind
          self.is_shutdown = False
          self.inbound_handler = inbound_handler
          try:
              self.server_sock = self._create_server_sock()
          except:
              self.server_sock = None
              raise
function_tokens: def __init__ ( self , inbound_handler , port = 0 ) : self . port = port #will get overwritten if port=0 self . addr = None #set at socket bind self . is_shutdown = False self . inbound_handler = inbound_handler try : self . server_sock = self . _create_server_sock ( ) except : self . server_sock = None raise