Skip to content

Commit

Permalink
python/aqmp: add generic async message-based protocol support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jnsnow committed Sep 27, 2021
1 parent a07616d commit 4ccaab0
Show file tree
Hide file tree
Showing 3 changed files with 577 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/qemu/aqmp/__init__.py
Expand Up @@ -22,10 +22,12 @@
# the COPYING file in the top-level directory.

from .error import AQMPError
from .protocol import ConnectError


# The order of these fields impact the Sphinx documentation order.
__all__ = (
# Exceptions
# Exceptions, most generic to most explicit
'AQMPError',
'ConnectError',
)

0 comments on commit 4ccaab0

Please sign in to comment.