(self)
Connect to a host on a given (SSL) port
Connect to a host on a given (SSL) port
Connect to a host on a given ( SSL ) port
def connect(self):
        "Connect to a host on a given (SSL) port"
        import socket
        sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        sock.connect((self.host, self.port))
        self.sock = SSL.SSLSocket(sock, self.trusted_certs)
        self.sock.init_ssl()
def connect ( self ) : import socket sock = socket . socket ( socket . AF_INET , socket . SOCK_STREAM ) sock . connect ( ( self . host , self . port ) ) self . sock = SSL . SSLSocket ( sock , self . trusted_certs ) self . sock . init_ssl ( )