Lines Matching defs:nn
241 int n, nn, lss, total;
319 nn = readv(so->s, (struct iovec *)iov, n);
321 nn = recv(so->s, iov[0].iov_base, iov[0].iov_len, (so->so_tcpcb->t_force? MSG_OOB:0));
323 Log2(("%s: read(1) nn = %d bytes\n", __PRETTY_FUNCTION__, nn));
325 if (nn <= 0)
339 if (nn == 0 && (pending != 0))
345 if ( nn < 0
358 /* nn == 0 means peer has performed an orderly shutdown */
359 Log2(("%s: disconnected, nn = %d, errno = %d (%s)\n",
360 __PRETTY_FUNCTION__, nn, errno, strerror(errno)));
375 STAM_COUNTER_ADD(&pData->StatIORead_in_1_bytes, nn);
380 STAM_COUNTER_ADD(&pData->StatIORead_in_2_1st_bytes, nn);
394 if (n == 2 && nn == iov[0].iov_len)
399 nn += ret;
409 Log2(("%s: read(2) nn = %d bytes\n", __PRETTY_FUNCTION__, nn));
413 sb->sb_cc += nn;
414 sb->sb_wptr += nn;
415 Log2(("%s: update so_snd (readed nn = %d) %R[sbuf]\n", __PRETTY_FUNCTION__, nn, sb));
423 return nn;
530 int n, nn;
610 nn = writev(so->s, (const struct iovec *)iov, n);
612 nn = send(so->s, iov[0].iov_base, iov[0].iov_len, 0);
614 Log2(("%s: wrote(1) nn = %d bytes\n", __PRETTY_FUNCTION__, nn));
616 if ( nn < 0
624 if (nn < 0 || (nn == 0 && iov[0].iov_len > 0))
636 if (n == 2 && nn == iov[0].iov_len)
641 nn += ret;
650 Log2(("%s: wrote(2) nn = %d bytes\n", __PRETTY_FUNCTION__, nn));
654 sb->sb_cc -= nn;
655 sb->sb_rptr += nn;
656 Log2(("%s: update so_rcv (written nn = %d) %R[sbuf]\n", __PRETTY_FUNCTION__, nn, sb));
672 return nn;