Moved _handleCloseRequest to a new method. Added warning messages.
5 // Created by Jens Alfke on 4/24/09.
6 // Copyright 2009 Jens Alfke. All rights reserved.
9 #import "MYDNSService.h"
12 /** An asynchronous DNS address lookup. Supports both Bonjour services and traditional hostnames. */
13 @interface MYAddressLookup : MYDNSService
16 UInt16 _interfaceIndex;
17 NSMutableSet *_addresses;
19 CFAbsoluteTime _expires;
22 /** Initializes the lookup with a DNS hostname.
23 (If you've got a Bonjour service already, as a MYBonjourService object, it's more convenient
24 to access its addressLookup property instead of creating your own instance.) */
25 - (id) initWithHostname: (NSString*)hostname;
27 /** The port number; this will be copied into the resulting IPAddress objects.
28 Defaults to zero, but you can set it before calling -start. */
29 @property UInt16 port;
31 /** The index of the network interface to use, or zero (the default) for any interface.
32 You usually don't need to set this. */
33 @property UInt16 interfaceIndex;
35 /** The resulting address(es) of the host, as HostAddress objects. */
36 @property (readonly) NSSet *addresses;
38 /** How much longer the addresses will remain valid.
39 If the value is zero, the addresses are no longer valid, and you should instead
40 call -start again and wait for the 'addresses' property to update.
41 If you set the service to continuous mode, addresses will never expire since the
42 query will continue to update them. */
43 @property (readonly) NSTimeInterval timeToLive;