Connects to given host address and port.

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