]> git.proxmox.com Git - mirror_qemu.git/commit
python/aqmp: add generic async message-based protocol support
authorJohn Snow <jsnow@redhat.com>
Wed, 15 Sep 2021 16:29:33 +0000 (12:29 -0400)
committerJohn Snow <jsnow@redhat.com>
Mon, 27 Sep 2021 16:10:29 +0000 (12:10 -0400)
commit4ccaab0377dec88b5cf1a55064b4953f6ab59d9f
treed5f7fabb64a8f0065f8a4acfd361a4464f2c134a
parenta07616d612bebc6324b29d7ab0c9b84d4e9d7c42
python/aqmp: add generic async message-based protocol support

This is the bare minimum that you need to establish a full-duplex async
message-based protocol with Python's asyncio.

The features to be added in forthcoming commits are:

- Runstate tracking
- Logging
- Support for incoming connections via accept()
- _cb_outbound, _cb_inbound message hooks
- _readline() method

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 20210915162955.333025-6-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/aqmp/__init__.py
python/qemu/aqmp/protocol.py [new file with mode: 0644]
python/qemu/aqmp/util.py