Revision 637503d1 vnc.c

b/vnc.c
323 323
    }
324 324
}
325 325

  
326
/**
327
 * do_info_vnc(): Show VNC server information
328
 *
329
 * Return a QDict with server information. Connected clients are returned
330
 * as a QList of QDicts.
331
 *
332
 * The main QDict contains the following:
333
 *
334
 * - "enabled": true or false
335
 * - "host": server's IP address
336
 * - "family": address family ("ipv4" or "ipv6")
337
 * - "service": server's port number
338
 * - "auth": authentication method
339
 * - "clients": a QList of all connected clients
340
 *
341
 * Clients are described by a QDict, with the following information:
342
 *
343
 * - "host": client's IP address
344
 * - "family": address family ("ipv4" or "ipv6")
345
 * - "service": client's port number
346
 * - "x509_dname": TLS dname (optional)
347
 * - "sasl_username": SASL username (optional)
348
 *
349
 * Example:
350
 *
351
 * { "enabled": true, "host": "0.0.0.0", "service": "50402", "auth": "vnc",
352
 *   "family": "ipv4",
353
 *   "clients": [{ "host": "127.0.0.1", "service": "50401", "family": "ipv4" }]}
354
 */
355 326
void do_info_vnc(Monitor *mon, QObject **ret_data)
356 327
{
357 328
    if (vnc_display == NULL || vnc_display->display == NULL) {

Also available in: Unified diff