parameters: (self, host, port = None)
docstring: Set searchd server host and port.
docstring_summary: Set searchd server host and port.
docstring_tokens: Set searchd server host and port .
function: def SetServer (self, host, port = None):
  		"""
  		Set searchd server host and port.
  		"""
  		assert(isinstance(host, str))
  		if host.startswith('/'):
  			self._path = host
  			return
  		elif host.startswith('unix://'):
  			self._path = host[7:]
  			return
  		self._host = host
  		if isinstance(port, int):
  			assert(port>0 and port<65536)
  			self._port = port
  		self._path = None
function_tokens: def SetServer ( self , host , port = None ) : assert ( isinstance ( host , str ) ) if host . startswith ( '/' ) : self . _path = host return elif host . startswith ( 'unix://' ) : self . _path = host [ 7 : ] return self . _host = host if isinstance ( port , int ) : assert ( port > 0 and port < 65536 ) self . _port = port self . _path = None