Lines Matching refs:read
720 /* Inconsistent state - part of the message was read,
1089 * Read application data and increase read counter and fragments counter if necessary.
1092 int buf_len, int *read,
1095 int ret = mbedtls_ssl_read( ssl, buf + *read, buf_len - *read );
1099 *read += ret;
2141 size_t i, j, written, read;
2204 written = read = 0;
2211 output + read, get[j] ) );
2212 read += get_ret[j];
2213 TEST_ASSERT( read <= written );
2216 TEST_ASSERT( memcmp( output + read - get_ret[j],
2217 input + read - get_ret[j], get_ret[j] )
2277 size_t written, read;
2309 written = read = 0;
2332 recv_ret = recv( &server, received + read, MSGLEN - read );
2339 read += recv_ret;
2351 /* If the buffer is empty we can test blocking and non-blocking read */
2391 size_t read[ROUNDS];
2430 read[i] = 0;
2432 /* This loop does not stop as long as there was a successful write or read
2470 recv_ret[i] = recv( socket, received[i] + read[i],
2471 MSGLEN - read[i] );
2478 read[i] += recv_ret[i];
2491 * read */
2685 /* Test if there's an error when trying to read from a disconnected
2948 /* Force a read error by disconnecting the socket by hand */
2957 /* Test that even though the server tried to read once disconnected, the
2999 /* Interleaved test - [2 sends, 1 read] twice, and then two reads
3059 /* Interleaved test - [2 sends, 1 read] twice, both ways, and then two reads