Lines Matching refs:buffered
117 if (n <= client->buffered) { in ReadFromRFBServer()
120 client->buffered -= n; in ReadFromRFBServer()
127 memcpy(out, client->bufoutptr, client->buffered); in ReadFromRFBServer()
129 out += client->buffered; in ReadFromRFBServer()
130 n -= client->buffered; in ReadFromRFBServer()
133 client->buffered = 0; in ReadFromRFBServer()
137 while (client->buffered < n) { in ReadFromRFBServer()
140 i = ReadFromTLS(client, client->buf + client->buffered, RFB_BUF_SIZE - client->buffered); in ReadFromRFBServer()
142 i = read(client->sock, client->buf + client->buffered, RFB_BUF_SIZE - client->buffered); in ReadFromRFBServer()
166 client->buffered += i; in ReadFromRFBServer()
171 client->buffered -= n; in ReadFromRFBServer()