diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2010-01-14 14:50:56 -0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-01-19 16:31:03 -0600 |
commit | 4a80dba3920cf8e0829b9ce4769842ce94748bf4 (patch) | |
tree | bd1fde9968ac7914b1a788f359e182bda9d9409e /monitor.h | |
parent | 5c7238c5e3515885ed3e9d4a5008050c4e41d44f (diff) |
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>
Diffstat (limited to 'monitor.h')
0 files changed, 0 insertions, 0 deletions