parameters: (self)
docstring: Connect to the host and port specified in __init__.
docstring_summary: Connect to the host and port specified in __init__.
docstring_tokens: Connect to the host and port specified in __init__ .
function: def connect(self):
          """Connect to the host and port specified in __init__."""
          self.sock = socket.create_connection((self.host,self.port),
                                               self.timeout)
  
          if self._tunnel_host:
              self._tunnel()
function_tokens: def connect ( self ) : self . sock = socket . create_connection ( ( self . host , self . port ) , self . timeout ) if self . _tunnel_host : self . _tunnel ( )