'connect(hostname [, port]) -- make a connection, default port is
1972.'

def connect(self, hostname, port=1972):

    self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    self.sock.connect((hostname, port))
    self.sock.setblocking(True)
    self.isConnected = True
