def connect(host, port):
    addr = (host, port)
    sock = socket.create_connection(addr)
    return ValueEvent(Connection(sock, addr))
Event: connect to a network address and return a Connection
dataset/ETHPy150Open beetbox/beets/beets/util/bluelet.py/connect