Lines Matching refs:tos
1450 ssize_t tos[2] = {0, 0}; /* number of bytes to server */ in http_connect() local
1535 if(poll_server_wr[i] && tos[i]) { in http_connect()
1614 tos[SWS_DATA] = 0; in http_connect()
1637 len = sizeof(readclient[i]) - tos[i]; in http_connect()
1640 rc = sread(clientfd[i], &readclient[i][tos[i]], len); in http_connect()
1649 data_to_hex(&readclient[i][tos[i]], rc)); in http_connect()
1650 tos[i] += rc; in http_connect()
1693 if(tos[i] && FD_ISSET(serverfd[i], &output)) { in http_connect()
1695 rc = swrite(serverfd[i], readclient[i], tos[i]); in http_connect()
1706 if(tos[i] - rc) in http_connect()
1707 memmove(&readclient[i][0], &readclient[i][rc], tos[i]-rc); in http_connect()
1708 tos[i] -= rc; in http_connect()
1742 if(poll_server_wr[i] && !poll_client_rd[i] && !tos[i]) { in http_connect()