Lines Matching full:num_read
207 ssize_t num_read = recv(sd, buf, len, 0);
210 if ((num_read < 0) && (errno == EINTR)) { syslog(LOG_INFO, "dnssd_clientstub read_all: EINTR continue"); continue; }
211 if ((num_read == 0) || (num_read < 0) || (num_read > len))
234 (long)num_read, (long)len,
235 (num_read < 0) ? dnssd_errno : 0,
236 (num_read < 0) ? dnssd_strerror(dnssd_errno) : "");
239 return (num_read < 0 && dnssd_errno == dnssd_EWOULDBLOCK) ? read_all_wouldblock : read_all_fail;
241 buf += num_read;
242 len -= num_read;