]> git.proxmox.com Git - mirror_qemu.git/commit - ui/vnc.c
ui: extract code to connect/listen from vnc_display_open
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 3 Feb 2017 12:06:46 +0000 (12:06 +0000)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 9 Feb 2017 16:28:49 +0000 (17:28 +0100)
commit8bd22f477f68bbd7a9c88e926e7a58bf65605e39
treefa9e28744aef566ab22f1f2f095fbca12ab5e13d
parent275e0d616bc36f5e0ffa4eb5e28069d66e8e2137
ui: extract code to connect/listen from vnc_display_open

The code which takes a SocketAddress and connects/listens on the
network is going to get more complicated to deal with multiple
listeners. Pull it out into a separate method to avoid making the
vnc_display_open method even more complex.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 20170203120649.15637-6-berrange@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc.c