mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
QMP: Introduce VNC_CONNECTED event
It's emitted when a VNC client connects to QEMU, client's information such as port and IP address are provided. Note that this event is emitted right when the connection is established. This means that it happens before authentication procedure and session initialization. Event example: { "event": "VNC_CONNECTED", "timestamp": { "seconds": 1262976601, "microseconds": 975795 }, "data": { "server": { "auth": "sasl", "family": "ipv4", "service": "5901", "host": "0.0.0.0" }, "client": { "family": "ipv4", "service": "58425", "host": "127.0.0.1" } } } Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
4a80dba392
commit
586153d952
4 changed files with 36 additions and 0 deletions
|
@ -357,6 +357,9 @@ void monitor_protocol_event(MonitorEvent event, QObject *data)
|
|||
case QEVENT_STOP:
|
||||
event_name = "STOP";
|
||||
break;
|
||||
case QEVENT_VNC_CONNECTED:
|
||||
event_name = "VNC_CONNECTED";
|
||||
break;
|
||||
default:
|
||||
abort();
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue