Lines Matching refs:nread
470 ssize_t nread; in recvmsg_packets() local
491 while((nread = recvmsg(qctx->sockfd, &msg, 0)) == -1 && in recvmsg_packets()
494 if(nread == -1) { in recvmsg_packets()
508 nread, SOCKERRNO, errstr); in recvmsg_packets()
513 total_nread += (size_t)nread; in recvmsg_packets()
517 gso_size = (size_t)nread; in recvmsg_packets()
520 for(offset = 0; offset < (size_t)nread; offset = to) { in recvmsg_packets()
524 if(to > (size_t)nread) { in recvmsg_packets()
525 pktlen = (size_t)nread - offset; in recvmsg_packets()
557 ssize_t nread; in recvfrom_packets() local
563 while((nread = recvfrom(qctx->sockfd, (char *)buf, bufsize, 0, in recvfrom_packets()
568 if(nread == -1) { in recvfrom_packets()
583 nread, SOCKERRNO, errstr); in recvfrom_packets()
589 total_nread += (size_t)nread; in recvfrom_packets()
590 result = recv_cb(buf, (size_t)nread, &remote_addr, remote_addrlen, in recvfrom_packets()