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