'\'Connect\' to remote server.'

def connect(self, host, port):

    if self._connectedAddr:
        raise RuntimeError('already    connected,    reconnecting    is    not    currently    supported')
    if ((not abstract.isIPAddress(host)) and (not abstract.isIPv6Address(host))):
        raise error.InvalidAddressError(host, 'not    an    IPv4    or    IPv6    address.')
    self._connectedAddr = (host, port)
    self.socket.connect((host, port))
