code: def connect(self):
          "Create connection to server"
          family, stype, proto, cname, sockaddr = self.best_connection_params(
              self.host, self.port)
          self.sock = socket.socket(family, stype)
          self.sock.settimeout(self.timeout)
          self.sock.connect(sockaddrf connect(self):
          "Create connection to server"
          family, stype, proto, cname, sockaddr = self.best_connection_params(
              self.host, self.port)
          self.sock = socket.socket(family, stype)
          self.sock.settimeout(self.timeout)
          self.sock.connect(sockaddr)
docs: Create connection to server