Lines Matching refs:errsd
560 dnssd_sock_t listenfd = dnssd_InvalidSocket, errsd = dnssd_InvalidSocket; in deliver_request() local
627 errsd = sp[0]; // We'll read our four-byte error code from sp[0] in deliver_request()
632 if (setsockopt(errsd, SOL_SOCKET, SO_DEFUNCTOK, &defunct, sizeof(defunct)) < 0) in deliver_request()
676 if (!MakeSeparateReturnSocket) errsd = sdr->sockfd; in deliver_request()
685 errsd = accept(listenfd, (struct sockaddr *)&daddr, &len); in deliver_request()
686 if (!dnssd_SocketValid(errsd)) deliver_request_bailout("accept"); in deliver_request()
740 errsd, listenfd, sizeof(dnssd_sock_t), sizeof(void*), in deliver_request()
749 errsd, listenfd, dnssd_errno, dnssd_strerror(dnssd_errno)); in deliver_request()
755 syslog(LOG_WARNING, "dnssd_clientstub sendmsg read sd=%d write sd=%d okay", errsd, listenfd); in deliver_request()
770 else if ((err = wait_for_daemon(errsd, DNSSD_CLIENT_TIMEOUT)) == kDNSServiceErr_NoError) in deliver_request()
772 if (read_all(errsd, (char*)&err, (int)sizeof(err)) < 0) in deliver_request()
784 if (dnssd_SocketValid(errsd)) dnssd_close(errsd); in deliver_request()