Searched refs:n_read (Results 1 – 3 of 3) sorted by relevance
46 if ((!s->read_packet || s->n_read < sizeof(s->read_size) + s->read_packet->size) && in dns_stream_update_io()287 if (s->n_read < sizeof(s->read_size)) in dns_stream_take_read_packet()290 if (s->n_read < sizeof(s->read_size) + be16toh(s->read_size)) in dns_stream_take_read_packet()293 s->n_read = 0; in dns_stream_take_read_packet()357 s->n_read < sizeof(s->read_size) + s->read_packet->size)) { in on_stream_io()359 if (s->n_read < sizeof(s->read_size)) { in on_stream_io()362 … ss = dns_stream_read(s, (uint8_t*) &s->read_size + s->n_read, sizeof(s->read_size) - s->n_read); in on_stream_io()371 s->n_read += ss; in on_stream_io()375 if (s->n_read >= sizeof(s->read_size)) { in on_stream_io()380 if (s->n_read < sizeof(s->read_size) + be16toh(s->read_size)) { in on_stream_io()[all …]
65 size_t n_read = 0; in receive_and_check_question() local68 while (n_read < question_size) { in receive_and_check_question()69 ssize_t r = read(fd, actual_question + n_read, question_size - n_read); in receive_and_check_question()71 n_read += (size_t)r; in receive_and_check_question()73 assert_se(n_read == question_size); in receive_and_check_question()
80 size_t n_written, n_read; member