Home | History | Annotate | Download | only in mDNSShared

Lines Matching refs:read_all

200 static int read_all(dnssd_sock_t sd, char *buf, int len)
210 if ((num_read < 0) && (errno == EINTR)) { syslog(LOG_INFO, "dnssd_clientstub read_all: EINTR continue"); continue; }
227 syslog(LOG_WARNING, "dnssd_clientstub read_all: SO_ISDEFUNCT failed %d %s", dnssd_errno, dnssd_strerror(dnssd_errno));
233 syslog(LOG_WARNING, "dnssd_clientstub read_all(%d) failed %ld/%ld %d %s", sd,
238 syslog(LOG_INFO, "dnssd_clientstub read_all(%d) DEFUNCT", sd);
751 // Close our end of the socketpair *before* blocking in read_all to get the four-byte error code.
752 // Otherwise, if the daemon closes our socket (or crashes), we block in read_all() forever
758 // At this point we may block in read_all for a few milliseconds waiting for the daemon to send us the error code,
764 if (read_all(errsd, (char*)&err, (int)sizeof(err)) < 0)
765 err = kDNSServiceErr_ServiceNotRunning; // On failure read_all will have written a message to syslog for us
910 // On error, read_all will write a message to syslog for us, so don't need to duplicate that here
912 int result = read_all(sdRef->sockfd, (void *)&cbh.ipc_hdr, sizeof(cbh.ipc_hdr));
938 syslog(LOG_WARNING, "dnssd_clientstub DNSServiceProcessResult error: select indicated data was waiting but read_all returned EWOULDBLOCK");
953 if (read_all(sdRef->sockfd, data, cbh.ipc_hdr.datalen) < 0) // On error, read_all will write a message to syslog for us
1091 if (read_all(tmp->sockfd, (char*)&actualsize, (int)sizeof(actualsize)) < 0)
1095 if (read_all(tmp->sockfd, (char*)result, actualsize < *size ? actualsize : *size) < 0)