qemu/ui
Paolo Bonzini 417b0b8890 vnc: fix "info vnc" with "-vnc ..., reverse=on"
When reverse connection is in use, there is no active VNC server
socket.  Because of this, getsockopt(-1, ...) is attempted and
the following error is emitted:

    $ socat TCP-LISTEN:5900,reuseaddr TCP-LISTEN:5901,reuseaddr &
    $ x86_64-softmmu/qemu-system-x86_64 -vnc localhost:5900,reverse -monitor stdio
    QEMU 1.2.50 monitor - type 'help' for more information
    (qemu) info vnc
    An undefined error has occurred

Because however the host, family, service and auth fields are
optional, we can just exit if there is no active server socket.

    $ x86_64-softmmu/qemu-system-x86_64 -vnc localhost:5900,reverse -monitor stdio
    QEMU 1.2.50 monitor - type 'help' for more information
    (qemu) info vnc
    Server:
    Client:
         address: 127.0.0.1:5900
      x509_dname: none
        username: none

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2012-10-12 10:55:37 +02:00
..
cocoa.m cocoa: Suppress Cocoa frontend for -qtest 2012-05-29 11:40:27 +02:00
curses.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
curses_keys.h curses: Fix control-{@[\]^_} and ESC 2010-10-21 18:31:28 +02:00
d3des.c ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
d3des.h Delete useless 'extern' qualifiers for functions 2011-01-23 16:21:20 +00:00
keymaps.c ui: Plug memory leaks on parse_keyboard_layout() error path 2011-11-11 12:49:51 -06:00
keymaps.h ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
Makefile.objs Remove support for non-threaded VNC server 2012-06-27 16:27:00 -05:00
qemu-spice.h Revert "qemu-char: Print strerror message on failure" and deps 2012-02-24 09:06:56 -06:00
sdl.c sdl: remove NULL check, g_malloc0 can't fail 2012-02-27 09:46:51 +01:00
sdl_keysym.h ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
sdl_zoom.c ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
sdl_zoom.h ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
sdl_zoom_template.h ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
spice-core.c spice: adding seamless-migration option to the command line 2012-09-05 17:11:55 +02:00
spice-display.c Merge remote-tracking branch 'stefanha/trivial-patches' into staging 2012-09-17 10:21:42 -05:00
spice-display.h spice: add screen mirror 2012-09-12 08:09:47 +02:00
spice-input.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
vnc-auth-sasl.c Merge branch 'trivial-patches' of git://github.com/stefanha/qemu 2012-10-06 18:54:14 +02:00
vnc-auth-sasl.h vnc: Fix packed boolean struct members 2012-03-19 10:52:52 +00:00
vnc-auth-vencrypt.c Avoid returning void 2012-07-28 09:23:11 +00:00
vnc-auth-vencrypt.h ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
vnc-enc-hextile-template.h vnc: Add break statement 2012-03-08 15:22:11 +00:00
vnc-enc-hextile.c ui/vnc: Fix use of free() instead of g_free() 2011-11-01 16:52:05 -05:00
vnc-enc-tight.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
vnc-enc-tight.h vnc: tight add PNG encoding 2010-07-26 17:36:14 -05:00
vnc-enc-zlib.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
vnc-enc-zrle-template.c vnc: Add ZRLE and ZYWRLE encodings. 2011-02-23 16:28:28 -06:00
vnc-enc-zrle.c vnc: fix uint8_t comparisons with negative values 2011-02-23 16:28:28 -06:00
vnc-enc-zrle.h vnc: Add ZRLE and ZYWRLE encodings. 2011-02-23 16:28:28 -06:00
vnc-enc-zywrle-template.c Fix spelling in comments, documentation and messages 2011-12-14 11:09:44 +00:00
vnc-enc-zywrle.h Fix spelling in comments, documentation and messages 2011-12-14 11:09:44 +00:00
vnc-jobs.c Remove support for non-threaded VNC server 2012-06-27 16:27:00 -05:00
vnc-jobs.h Remove support for non-threaded VNC server 2012-06-27 16:27:00 -05:00
vnc-palette.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
vnc-palette.h vnc: palette: and fill and color calls. 2011-02-23 16:28:28 -06:00
vnc-tls.c vnc: Fix spelling (hellmen -> hellman) in comment 2012-10-05 14:25:37 +02:00
vnc-tls.h ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
vnc.c vnc: fix "info vnc" with "-vnc ..., reverse=on" 2012-10-12 10:55:37 +02:00
vnc.h Remove support for non-threaded VNC server 2012-06-27 16:27:00 -05:00
vnc_keysym.h vnc: added missing name->keysym pairs for Polish national characters 2011-04-01 22:29:27 +02:00
x_keymap.c ui: move all ui components in ui/ 2010-07-26 17:35:54 -05:00
x_keymap.h Delete useless 'extern' qualifiers for functions 2011-01-23 16:21:20 +00:00