''

def connect(self, host, port):

    assert (self.socket_ is None)
    self.socket_ = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    self.socket_.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
    self.socket_.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF, ((5 * 1024) * 1024))
    self.socket_.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
    self.socket_.connect((host, port))
