Lines Matching refs:service
308 // the next operation on this socket(recv/accept) is blocked since we depend on TCP to communicate with the system service.
446 // Return a connected service ref (deallocate with DNSServiceRefDeallocate)
483 // <rdar://problem/4096913> If the system service is disabled, we only want to try to connect once
2194 DNSServiceRef service,
2198 int dnssd_fd = DNSServiceRefSockFD(service);
2205 if (service->disp_queue)
2210 if (service->disp_source)
2215 service->disp_source = dispatch_source_create(DISPATCH_SOURCE_TYPE_READ, dnssd_fd, 0, queue);
2216 if (!service->disp_source)
2221 service->disp_queue = queue;
2222 dispatch_source_set_event_handler(service->disp_source, ^{DNSServiceProcessResult(service);});
2223 dispatch_source_set_cancel_handler(service->disp_source, ^{dnssd_close(dnssd_fd);});
2224 dispatch_resume(service->disp_source);