Ejemplo n.º 1
0
def unix_protocol(unix_srv, event_loop):
    (reader, writer) = event_loop.run_until_complete(
        asyncio.open_unix_connection('/tmp/test.sock')
    )
    protocol = QDataStreamProtocol(reader, writer)
    yield protocol

    protocol.close()