Lines Matching refs:tcp_write_byte_count

2034 	if((c->tcp_write_and_read?c->tcp_write_byte_count:c->tcp_byte_count) < sizeof(uint16_t)) {
2047 (void*)(buf+c->tcp_write_byte_count),
2049 c->tcp_write_byte_count);
2052 (void*)(((uint8_t*)&len)+c->tcp_write_byte_count),
2053 (int)(sizeof(uint16_t)-c->tcp_write_byte_count));
2100 c->tcp_write_byte_count += r;
2101 if(c->tcp_write_byte_count < sizeof(uint16_t))
2110 …buffer_remaining(c->buffer) == 0) || (c->tcp_write_and_read && c->tcp_write_byte_count == c->tcp_w…
2116 log_assert(!c->tcp_write_and_read || c->tcp_write_byte_count < c->tcp_write_pkt_len + 2);
2119 r = SSL_write(c->ssl, (void*)(c->tcp_write_pkt + c->tcp_write_byte_count - 2),
2120 (int)(c->tcp_write_pkt_len + 2 - c->tcp_write_byte_count));
2152 c->tcp_write_byte_count += r;
2157 …buffer_remaining(c->buffer) == 0) || (c->tcp_write_and_read && c->tcp_write_byte_count == c->tcp_w…
2450 …d_read && c->tcp_byte_count == 0) || (c->tcp_write_and_read && c->tcp_write_byte_count == 0)) && c…
2508 iov[0].iov_base = (uint8_t*)&len + c->tcp_write_byte_count;
2509 iov[0].iov_len = sizeof(uint16_t) - c->tcp_write_byte_count;
2578 c->tcp_write_byte_count += r;
2579 if(c->tcp_write_byte_count < sizeof(uint16_t))
2588 …ns_buffer_remaining(buffer) == 0) || (c->tcp_write_and_read && c->tcp_write_byte_count == c->tcp_w…
2596 if((c->tcp_write_and_read?c->tcp_write_byte_count:c->tcp_byte_count) < sizeof(uint16_t)) {
2601 iov[0].iov_base = (uint8_t*)&len + c->tcp_write_byte_count;
2602 iov[0].iov_len = sizeof(uint16_t) - c->tcp_write_byte_count;
2615 r = send(fd, (void*)(((uint8_t*)&len)+c->tcp_write_byte_count),
2616 sizeof(uint16_t)-c->tcp_write_byte_count, 0);
2663 c->tcp_write_byte_count += r;
2664 if(c->tcp_write_byte_count < sizeof(uint16_t))
2673 …ns_buffer_remaining(buffer) == 0) || (c->tcp_write_and_read && c->tcp_write_byte_count == c->tcp_w…
2679 log_assert(!c->tcp_write_and_read || c->tcp_write_byte_count < c->tcp_write_pkt_len + 2);
2681 r = send(fd, (void*)(c->tcp_write_pkt + c->tcp_write_byte_count - 2),
2682 c->tcp_write_pkt_len + 2 - c->tcp_write_byte_count, 0);
2711 c->tcp_write_byte_count += r;
2716 …ns_buffer_remaining(buffer) == 0) || (c->tcp_write_and_read && c->tcp_write_byte_count == c->tcp_w…