Lines Matching refs:read
166 size_t i, j, written, read;
227 written = read = 0;
233 output + read, get[j]));
234 read += get_ret[j];
235 TEST_ASSERT(read <= written);
237 TEST_ASSERT(memcmp(output + read - get_ret[j],
238 input + read - get_ret[j], get_ret[j])
299 size_t written, read;
329 written = read = 0;
347 recv_ret = recv(&server, received + read, MSGLEN - read);
353 read += recv_ret;
361 /* If the buffer is empty we can test blocking and non-blocking read */
397 size_t read[ROUNDS];
432 read[i] = 0;
434 /* This loop does not stop as long as there was a successful write or read
465 recv_ret[i] = recv(socket, received[i] + read[i],
466 MSGLEN - read[i]);
472 read[i] += recv_ret[i];
481 * read */
687 /* Test if there's an error when trying to read from a disconnected
986 /* Force a read error by disconnecting the socket by hand */
996 /* Test that even though the server tried to read once disconnected, the
1043 /* Interleaved test - [2 sends, 1 read] twice, and then two reads
1106 /* Interleaved test - [2 sends, 1 read] twice, both ways, and then two reads
3143 /* Force a bad session_id_len that will be read by the server in
4919 * Write and if possible read as much as possible chunks of write_size