code: def connect(self, host=None, port=None):
          
          host = self.host if host is None else host
          port = self.port if port is None else port
          self.socket.connect(host, port)
docs: Connects to given host address and port.