

def connect(self):
    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    if hasattr(sock, 'settimeout'):
        sock.settimeout(10)
    sock.connect((self.host, self.port))
    self.sock = TLSConnection(sock)
    self.sock.closeSocket = True
    self._handshake(self.sock)

dataset/ETHPy150Open CollabQ/CollabQ/vendor/gdata/tlslite/integration/HTTPTLSConnection.py HTTPBaseTLSConnection.connect/original