Lines Matching refs:tcp_write_byte_count

3854 	if((c->tcp_write_and_read?c->tcp_write_byte_count:c->tcp_byte_count) < sizeof(uint16_t)) {
3867 (void*)(buf+c->tcp_write_byte_count),
3869 c->tcp_write_byte_count);
3872 (void*)(((uint8_t*)&len)+c->tcp_write_byte_count),
3873 (int)(sizeof(uint16_t)-c->tcp_write_byte_count));
3920 c->tcp_write_byte_count += r;
3921 if(c->tcp_write_byte_count < sizeof(uint16_t))
3930 …buffer_remaining(c->buffer) == 0) || (c->tcp_write_and_read && c->tcp_write_byte_count == c->tcp_w…
3936 log_assert(!c->tcp_write_and_read || c->tcp_write_byte_count < c->tcp_write_pkt_len + 2);
3939 r = SSL_write(c->ssl, (void*)(c->tcp_write_pkt + c->tcp_write_byte_count - 2),
3940 (int)(c->tcp_write_pkt_len + 2 - c->tcp_write_byte_count));
3972 c->tcp_write_byte_count += r;
3977 …buffer_remaining(c->buffer) == 0) || (c->tcp_write_and_read && c->tcp_write_byte_count == c->tcp_w…
4271 …d_read && c->tcp_byte_count == 0) || (c->tcp_write_and_read && c->tcp_write_byte_count == 0)) && c…
4329 iov[0].iov_base = (uint8_t*)&len + c->tcp_write_byte_count;
4330 iov[0].iov_len = sizeof(uint16_t) - c->tcp_write_byte_count;
4399 c->tcp_write_byte_count += r;
4400 if(c->tcp_write_byte_count < sizeof(uint16_t))
4409 …ns_buffer_remaining(buffer) == 0) || (c->tcp_write_and_read && c->tcp_write_byte_count == c->tcp_w…
4417 if((c->tcp_write_and_read?c->tcp_write_byte_count:c->tcp_byte_count) < sizeof(uint16_t)) {
4422 iov[0].iov_base = (uint8_t*)&len + c->tcp_write_byte_count;
4423 iov[0].iov_len = sizeof(uint16_t) - c->tcp_write_byte_count;
4436 r = send(fd, (void*)(((uint8_t*)&len)+c->tcp_write_byte_count),
4437 sizeof(uint16_t)-c->tcp_write_byte_count, 0);
4484 c->tcp_write_byte_count += r;
4485 if(c->tcp_write_byte_count < sizeof(uint16_t))
4494 …ns_buffer_remaining(buffer) == 0) || (c->tcp_write_and_read && c->tcp_write_byte_count == c->tcp_w…
4500 log_assert(!c->tcp_write_and_read || c->tcp_write_byte_count < c->tcp_write_pkt_len + 2);
4502 r = send(fd, (void*)(c->tcp_write_pkt + c->tcp_write_byte_count - 2),
4503 c->tcp_write_pkt_len + 2 - c->tcp_write_byte_count, 0);
4532 c->tcp_write_byte_count += r;
4537 …ns_buffer_remaining(buffer) == 0) || (c->tcp_write_and_read && c->tcp_write_byte_count == c->tcp_w…