summaryrefslogtreecommitdiffstats
path: root/rfb
diff options
context:
space:
mode:
authorGernot Tenchio <gernot.tenchio@securepoint.de>2011-08-25 12:12:17 +0200
committerGernot Tenchio <gernot.tenchio@securepoint.de>2011-08-25 12:19:52 +0200
commit55234a37fd0f865261c09b602b94444d42f35daa (patch)
treece77840c587ef35f083f47ea87a8a301befb46de /rfb
parent1408866c864cac3b1bbf37eb9fdc8d303f37957d (diff)
downloadlibtdevnc-55234a37fd0f865261c09b602b94444d42f35daa.tar.gz
libtdevnc-55234a37fd0f865261c09b602b94444d42f35daa.zip
websockets: Move Hixie disconnect hack to websockets.c
Move the hixie disconnect hack to websockets.c. Removed the remaining websockets vars from rfbClientPtr, so all websockets stuff is hidden behind an opaque pointer.
Diffstat (limited to 'rfb')
-rw-r--r--rfb/rfb.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/rfb/rfb.h b/rfb/rfb.h
index 1f29e63..11d1447 100644
--- a/rfb/rfb.h
+++ b/rfb/rfb.h
@@ -640,8 +640,6 @@ typedef struct _rfbClientRec {
#endif
#ifdef LIBVNCSERVER_WITH_WEBSOCKETS
- rfbBool webSockets;
- rfbBool webSocketsBase64;
rfbSslCtx *sslctx;
wsCtx *wsctx;
char *wspath; /* Requests path component */
@@ -712,6 +710,7 @@ extern rfbBool rfbSetNonBlocking(int sock);
/* websockets.c */
extern rfbBool webSocketsCheck(rfbClientPtr cl);
+extern rfbBool webSocketCheckDisconnect(rfbClientPtr cl);
extern int webSocketsEncode(rfbClientPtr cl, const char *src, int len, char **dst);
extern int webSocketsDecode(rfbClientPtr cl, char *dst, int len);
#endif