'è¿æ¥å°logger'

def connect(self, ip, port):

    self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    self.socket.setblocking(True)
    self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, True)
    self.socket.connect((ip, port))
    return self.socket
