Lines Matching refs:nread
110 size_t r_offset, nread; in recv_binary() local
116 result = curl_ws_recv(curl, recvbuf, sizeof(recvbuf), &nread, &frame); in recv_binary()
127 (long)r_offset, (long)sizeof(recvbuf), result, (long)nread); in recv_binary()
133 (long)nread, frame->flags); in recv_binary()
141 if(frame->bytesleft != (curl_off_t)(exp_len - r_offset - nread)) { in recv_binary()
143 (long)(exp_len - r_offset - nread), (long)frame->bytesleft); in recv_binary()
146 if(r_offset + nread > exp_len) { in recv_binary()
148 (long)exp_len, (long)(r_offset + nread)); in recv_binary()
151 if(memcmp(exp_data + r_offset, recvbuf, nread)) { in recv_binary()
153 (long)r_offset, (long)nread); in recv_binary()
154 dump("expected:", (unsigned char *)exp_data + r_offset, nread, 0); in recv_binary()
155 dump("received:", (unsigned char *)recvbuf, nread, 0); in recv_binary()
158 r_offset += nread; in recv_binary()