diff options
author | Gernot Tenchio <gernot.tenchio@securepoint.de> | 2011-08-25 10:58:19 +0200 |
---|---|---|
committer | Gernot Tenchio <gernot.tenchio@securepoint.de> | 2011-08-25 11:00:19 +0200 |
commit | 1408866c864cac3b1bbf37eb9fdc8d303f37957d (patch) | |
tree | 7602c620ed56aadd74639d3da0cb8b57e2aebdf7 /rfb/rfb.h | |
parent | 02651bacca81c5a63b80d782123d20b26a65a4b0 (diff) | |
download | libtdevnc-1408866c864cac3b1bbf37eb9fdc8d303f37957d.tar.gz libtdevnc-1408866c864cac3b1bbf37eb9fdc8d303f37957d.zip |
websockets: Initial HyBi support
Diffstat (limited to 'rfb/rfb.h')
-rw-r--r-- | rfb/rfb.h | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -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 |