Lines Matching full:errsd
136 dnssd_sock_t errsd;
324 if (req->errsd != req->sd) LogOperation("%3d: Removing FD and closing errsd %d", req->sd, req->errsd);
327 if (req->errsd != req->sd) { dnssd_close(req->errsd); req->errsd = req->sd; }
341 req->sd = req->errsd = -2;
343 req->sd = req->errsd = dnssd_InvalidSocket;
3645 req->errsd = *(dnssd_sock_t *)CMSG_DATA(cmsg);
3647 LogMsg("%3d: read req->errsd %d", req->sd, req->errsd);
3652 req->sd, req->errsd, req->data_bytes, req->hdr.datalen);
3686 if (req->errsd == req->sd)
3687 { LogMsg("%3d: read_msg: ERROR failed to get errsd via SCM_RIGHTS", req->sd); req->ts = t_error; return; }
3692 req->errsd = socket(AF_DNSSD, SOCK_STREAM, 0);
3693 if (!dnssd_SocketValid(req->errsd)) { my_perror("ERROR: socket"); req->ts = t_error; return; }
3695 if (connect(req->errsd, (struct sockaddr *)&cliaddr, sizeof(cliaddr)) < 0)
3713 LogOperation("%3d: Error socket %d created %08X %08X", req->sd, req->errsd, req->hdr.client_context.u32[1], req->hdr.client_context.u32[0]);
3715 if (ioctlsocket(req->errsd, FIONBIO, &opt) != 0)
3717 if (fcntl(req->errsd, F_SETFL, fcntl(req->errsd, F_GETFL, 0) | O_NONBLOCK) != 0)
3804 newreq->errsd = req->errsd;
3854 send_all(req->errsd, (const char *)&err_netorder, sizeof(err_netorder));
3855 if (req->errsd != req->sd)
3858 req->sd, req->errsd, req->hdr.client_context.u32[1], req->hdr.client_context.u32[0], err);
3859 dnssd_close(req->errsd);
3860 req->errsd = req->sd;
3861 // Also need to reset the parent's errsd, if this is a subordinate operation
3862 if (req->primary) req->primary->errsd = req->primary->sd;
3916 request->errsd = sd;