Post

Replies

Boosts

Views

Activity

DNSServiceQueryRecord works on iOS 12, not ios 13
Any idea why this code works great on iOS 12, and not on iOS 13? DNSServiceRef dnsServiceReference; DNSServiceErrorType dnsServiceQueryError = DNSServiceQueryRecord(&dnsServiceReference, kDNSServiceFlagsForceMulticast | kDNSServiceFlagsTimeout, kDNSServiceInterfaceIndexAny, [arpAddress UTF8String], kDNSServiceType_PTR, kDNSServiceClass_IN, QueryRecordCallback, (__bridge void *)(self)); if (dnsServiceQueryError == kDNSServiceErr_NoError) { DNSServiceErrorType callbackError = DNSServiceSetDispatchQueue(dnsServiceReference, dispatch_get_main_queue()); NSAssert(callbackError == kDNSServiceErr_NoError, @"there was an error!"); }
7
0
1.1k
Jan ’20