298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
|
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
|
-
+
-
-
-
-
-
+
-
|
- (void)resolver: (OFDNSResolver *)resolver
didPerformQuery: (OFString *)domainName
response: (OFDNSResponse *)response
exception: (id)exception
{
OFMutableArray *records = [OFMutableArray array];
if (exception != nil) {
if (exception != nil)
[_delegates
broadcastSelector: @selector(connection:didThrowException:)
withObject: self
withObject: exception];
return;
response = nil;
}
for (OFDNSResourceRecord *record in
[response.answerRecords objectForKey: domainName])
if ([record isKindOfClass: [OFSRVDNSResourceRecord class]])
[records addObject: record];
/* TODO: Sort records */
|