summaryrefslogtreecommitdiffstats
path: root/rfb/rfb.h
diff options
context:
space:
mode:
authorGernot Tenchio <gernot.tenchio@securepoint.de>2011-08-25 10:58:19 +0200
committerGernot Tenchio <gernot.tenchio@securepoint.de>2011-08-25 11:00:19 +0200
commit1408866c864cac3b1bbf37eb9fdc8d303f37957d (patch)
tree7602c620ed56aadd74639d3da0cb8b57e2aebdf7 /rfb/rfb.h
parent02651bacca81c5a63b80d782123d20b26a65a4b0 (diff)
downloadlibtdevnc-1408866c864cac3b1bbf37eb9fdc8d303f37957d.tar.gz
libtdevnc-1408866c864cac3b1bbf37eb9fdc8d303f37957d.zip
websockets: Initial HyBi support
Diffstat (limited to 'rfb/rfb.h')
-rw-r--r--rfb/rfb.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/rfb/rfb.h b/rfb/rfb.h
index 9239b35..1f29e63 100644
--- a/rfb/rfb.h
+++ b/rfb/rfb.h
@@ -419,6 +419,7 @@ typedef struct _rfbStatList {
} rfbStatList;
typedef struct _rfbSslCtx rfbSslCtx;
+typedef struct _wsCtx wsCtx;
typedef struct _rfbClientRec {
@@ -640,17 +641,10 @@ typedef struct _rfbClientRec {
#ifdef LIBVNCSERVER_WITH_WEBSOCKETS
rfbBool webSockets;
- rfbBool webSocketsSSL;
rfbBool webSocketsBase64;
-
rfbSslCtx *sslctx;
-
+ wsCtx *wsctx;
char *wspath; /* Requests path component */
- char encodeBuf[UPDATE_BUF_SIZE*2 + 2]; /* UTF-8 could double it + framing */
- char decodeBuf[8192]; /* TODO: what makes sense? */
- int dblen;
- char carryBuf[3]; /* For base64 carry-over */
- int carrylen;
#endif
} rfbClientRec, *rfbClientPtr;
@@ -718,7 +712,7 @@ extern rfbBool rfbSetNonBlocking(int sock);
/* websockets.c */
extern rfbBool webSocketsCheck(rfbClientPtr cl);
-extern int webSocketsEncode(rfbClientPtr cl, const char *src, int len);
+extern int webSocketsEncode(rfbClientPtr cl, const char *src, int len, char **dst);
extern int webSocketsDecode(rfbClientPtr cl, char *dst, int len);
#endif