]> git.proxmox.com Git - mirror_qemu.git/commit - ui/vnc.h
VNC: Cache client info at connection time
authorLuiz Capitulino <lcapitulino@redhat.com>
Thu, 14 Jan 2010 16:50:56 +0000 (14:50 -0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 19 Jan 2010 22:31:03 +0000 (16:31 -0600)
commit4a80dba3920cf8e0829b9ce4769842ce94748bf4
treebd1fde9968ac7914b1a788f359e182bda9d9409e
parent5c7238c5e3515885ed3e9d4a5008050c4e41d44f
VNC: Cache client info at connection time

When a disconnection happens the client's socket on QEMU
side may become invalid, this way it won't be possible
to query it to get client information, which is going to
be needed by the future QMP VNC_DISCONNECTED event.

To always have this information available we query the
socket at connection time and cache the client info in
struct VncState.

Two function are introduced to perform this job.

vnc_client_cache_addr() is called right when the connection
is made, however the authentication information is not
available at that moment so vnc_client_cache_auth() is
called from protocol_client_init() to get auth info.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vnc.c
vnc.h