Differences From Artifact [cfb0eab86c]:
- File utils/ofdns/OFDNS.m — part of check-in [605634184d] at 2018-11-04 18:40:43 on branch trunk — Sandbox ofdns (user: js, size: 3040) [annotate] [blame] [check-ins using]
To Artifact [1dc603e93a]:
- File
utils/ofdns/OFDNS.m
— part of check-in
[0afb04d93c]
at
2018-12-22 00:29:42
on branch trunk
— OFDNSResolver: Use a delegate for async operations
Because there is usually only one resolver per thread, having the
delegate as a property on the resolver would not work. It is therefore
passed as an argument.This only changes the public API so far. Internally, the old target /
selector / context pattern is still being used. This will be changed
later. (user: js, size: 2870) [annotate] [blame] [check-ins using]
︙ | |||
19 20 21 22 23 24 25 | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | - + - + - | #import "OFApplication.h" #import "OFArray.h" #import "OFDNSResolver.h" #import "OFSandbox.h" #import "OFStdIOStream.h" |
︙ | |||
95 96 97 98 99 100 101 | 94 95 96 97 98 99 100 101 102 103 | - + - - - - | [resolver setNameServers: [OFArray arrayWithObject: [arguments objectAtIndex: 3]]]; } [resolver asyncResolveHost: [arguments objectAtIndex: 0] recordClass: recordClass recordType: recordType |