10 Commits

Author SHA1 Message Date
Nick Thomas
25fa6d2cbe Fix a couple of examples in the README 2011-11-13 20:57:28 +00:00
Nick Thomas
3f8b74005d Add the error response type to the library 2011-11-13 20:09:55 +00:00
Nick Thomas
d96239dd65 Fix the Greeting message - package is an attribute of version, not QMP.
At this stage, we can connect to a QEMU server and issue commands and queries.
2011-11-13 19:50:13 +00:00
Nick Thomas
ce41993a1b Avoid a backtrace when we try to create a ParserError without an upstream error 2011-11-13 19:48:18 +00:00
Nick Thomas
875820f011 Creating a new socket is #new, not #connect 2011-11-13 18:43:43 +00:00
Nick Thomas
51175ddf56 Initial, simple, unit-tested implementation of QMPClient.
This follows the README given earlier, at least in principle, but
doesn't implement the entirety of QMP, by any stretch of the
imagination.

Notable by their absence are error responses, argument validation
(for incoming and outgoing messsages of all types), and any visibility
into qmp_capabilities.

Also missing are integration tests.
2011-11-13 18:36:51 +00:00
Nick Thomas
7777e5cacb Add a README file illustrating the desired API 2011-11-13 12:07:54 +00:00
Nick Thomas
c410e31774 Release qmp_client under the MIT license 2011-11-13 12:01:09 +00:00
Nick Thomas
6dc5c832f8 Alter the interface presented by Connectors::Socket
We now provide a queue-like reader as well as a queue-lke writer.
Additional read queues can still be registered.
2011-11-13 12:00:15 +00:00
Nick Thomas
1688e55459 Project framework + socket connector
The socket connector is responsible for reading from a socket and
converting the lines that were read to messages, using a passed-in
deserialiser. It also provides an interface to push messages onto
the socket, via a serialiser which is also passed in.
2011-11-12 21:45:14 +00:00