You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Nick Thomas 25fa6d2cbe Fix a couple of examples in the README 10 years ago
lib Add the error response type to the library 10 years ago
test/unit Add the error response type to the library 10 years ago
.gitignore Project framework + socket connector 10 years ago
LICENSE Release qmp_client under the MIT license 10 years ago
README Fix a couple of examples in the README 10 years ago
Rakefile Alter the interface presented by Connectors::Socket 10 years ago

README

== qmp_client

This library interfaces with a running QEMU process using the QMP protocol. It
also works with the QEMU-KVM branch.

To get a QMP socket for a QEMU process, use one of these command-line arguments:
-qmp tcp:[host]:port[,server][,nowait][,nodelay]
-qmp unix:path[,server][,nowait]
-qmp stdio
-qmp pipe:filename

The QMP protocol is still evolving, and the kinds of things you can do with it
are changing with each release. It's also currently (QEMU 0.15) impossible to
set every option available on the command line via the QMP console. However,
there are plans to make that possible, and this library will track the features
available from the server as closely as possible.

Usage example:

QMPClient::connect_tcp("127.0.0.1", 4440) do |api|

api.on_event('BLOCK_IO_ERROR') do |e|
puts "Block I/O error detected: #{e.inspect}"
end

msg = api.sync_query("status") # Blocks until a response comes back
puts "VM status: #{m.inspect}"

api.command('eject', 'device' => 'ide1-c