Revision 6f8c63fb QMP/qmp-events.txt

b/QMP/qmp-events.txt
182 182
                    "host": "127.0.0.1", "sasl_username": "luiz" } },
183 183
        "timestamp": { "seconds": 1263475302, "microseconds": 150772 } }
184 184

  
185
SPICE_CONNECTED, SPICE_DISCONNECTED
186
-----------------------------------
187

  
188
Emitted when a SPICE client connects or disconnects.
189

  
190
Data:
191

  
192
- "server": Server information (json-object)
193
  - "host": IP address (json-string)
194
  - "port": port number (json-string)
195
  - "family": address family (json-string, "ipv4" or "ipv6")
196
- "client": Client information (json-object)
197
  - "host": IP address (json-string)
198
  - "port": port number (json-string)
199
  - "family": address family (json-string, "ipv4" or "ipv6")
200

  
201
Example:
202

  
203
{ "timestamp": {"seconds": 1290688046, "microseconds": 388707},
204
  "event": "SPICE_CONNECTED",
205
  "data": {
206
    "server": { "port": "5920", "family": "ipv4", "host": "127.0.0.1"},
207
    "client": {"port": "52873", "family": "ipv4", "host": "127.0.0.1"}
208
}}
209

  
210

  
211
SPICE_INITIALIZED
212
-----------------
213

  
214
Emitted after initial handshake and authentication takes place (if any)
215
and the SPICE channel is up'n'running
216

  
217
Data:
218

  
219
- "server": Server information (json-object)
220
  - "host": IP address (json-string)
221
  - "port": port number (json-string)
222
  - "family": address family (json-string, "ipv4" or "ipv6")
223
  - "auth": authentication method (json-string, optional)
224
- "client": Client information (json-object)
225
  - "host": IP address (json-string)
226
  - "port": port number (json-string)
227
  - "family": address family (json-string, "ipv4" or "ipv6")
228
  - "connection-id": spice connection id.  All channels with the same id
229
                     belong to the same spice session (json-int)
230
  - "channel-type": channel type.  "1" is the main control channel, filter for
231
                    this one if you want track spice sessions only (json-int)
232
  - "channel-id": channel id.  Usually "0", might be different needed when
233
                  multiple channels of the same type exist, such as multiple
234
                  display channels in a multihead setup (json-int)
235
  - "tls": whevener the channel is encrypted (json-bool)
236

  
237
Example:
238

  
239
{ "timestamp": {"seconds": 1290688046, "microseconds": 417172},
240
  "event": "SPICE_INITIALIZED",
241
  "data": {"server": {"auth": "spice", "port": "5921",
242
                      "family": "ipv4", "host": "127.0.0.1"},
243
           "client": {"port": "49004", "family": "ipv4", "channel-type": 3,
244
                      "connection-id": 1804289383, "host": "127.0.0.1",
245
                      "channel-id": 0, "tls": true}
246
}}
247

  
248

  
185 249
WATCHDOG
186 250
--------
187 251

  

Also available in: Unified diff