Home
last modified time | relevance | path

Searched refs:peekbuf (Results 1 – 2 of 2) sorted by relevance

/external/libvncserver/libvncserver/
Drfbssl_gnutls.c29 char peekbuf[2048]; member
196 int spaceleft = sizeof(ctx->peekbuf) - ctx->peeklen - ctx->peekstart; in rfbssl_gc_peekbuf()
198 memmove(ctx->peekbuf, ctx->peekbuf + ctx->peekstart, ctx->peeklen); in rfbssl_gc_peekbuf()
214 memcpy (buf, ctx->peekbuf + ctx->peekstart, ret); in __rfbssl_read()
232 memcpy(ctx->peekbuf + ctx->peekstart + ctx->peeklen, buf + ret, n); in __rfbssl_read()
Dwebsockets.c858 char peekbuf[4]; in webSocketCheckDisconnect() local
865 n = rfbssl_peek(cl, peekbuf, 4); in webSocketCheckDisconnect()
867 n = recv(cl->sock, peekbuf, 4, MSG_PEEK); in webSocketCheckDisconnect()
876 if (peekbuf[0] == '\xff') { in webSocketCheckDisconnect()
883 if (peekbuf[1] == '\xff' && peekbuf[2] == '\x00') in webSocketCheckDisconnect()
887 if (peekbuf[1] == '\x00') in webSocketCheckDisconnect()
895 n = rfbssl_read(cl, peekbuf, n); in webSocketCheckDisconnect()
897 n = read(cl->sock, peekbuf, n); in webSocketCheckDisconnect()