Lines Matching refs:tcpdone
189 ssize_t tcpdone;
196 tcpdone = recv(recvfd, buf, sizeof(buf), 0);
197 pjdlog_debug(2, "%s: recv() returned %zd", __func__, tcpdone);
198 if (tcpdone == 0) {
201 } else if (tcpdone == -1) {
209 ssldone = SSL_write(sendssl, buf, (int)tcpdone);
216 PJDLOG_ASSERT(ssldone == tcpdone);
228 ssize_t tcpdone;
244 tcpdone = send(sendfd, ptr, todo, MSG_NOSIGNAL);
246 tcpdone);
247 if (tcpdone == 0) {
250 } else if (tcpdone == -1) {
259 todo -= tcpdone;
260 ptr += tcpdone;