parameters: (port=0)
return_statement: return _tcpros_server
docstring: starts the TCPROS server socket for inbound connections
      @param port: listen on the provided port. If the port number is 0, the port will
          be chosen randomly
      @type  port: int
docstring_summary: starts the TCPROS server socket for inbound connections
docstring_tokens: starts the TCPROS server socket for inbound connections
function: def init_tcpros_server(port=0):
      """
      starts the TCPROS server socket for inbound connections
      @param port: listen on the provided port. If the port number is 0, the port will
          be chosen randomly
      @type  port: int
      """
      global _tcpros_server
      if _tcpros_server is None:
          _tcpros_server = TCPROSServer(port=port)
          rospy.core.add_shutdown_hook(_tcpros_server.shutdown)
      return _tcpros_server
function_tokens: def init_tcpros_server ( port = 0 ) : global _tcpros_server if _tcpros_server is None : _tcpros_server = TCPROSServer ( port = port ) rospy . core . add_shutdown_hook ( _tcpros_server . shutdown ) return _tcpros_server