diff -r 1d6924779df7 -r 981f9d604c88 Bonjour/MYAddressLookup.h --- a/Bonjour/MYAddressLookup.h Wed Apr 29 13:29:31 2009 -0700 +++ b/Bonjour/MYAddressLookup.h Tue Jul 21 10:04:10 2009 -0700 @@ -7,11 +7,13 @@ // #import "MYDNSService.h" +@class MYBonjourService; /** An asynchronous DNS address lookup. Supports both Bonjour services and traditional hostnames. */ @interface MYAddressLookup : MYDNSService { + MYBonjourService *_service; NSString *_hostname; UInt16 _interfaceIndex; NSMutableSet *_addresses; @@ -24,6 +26,8 @@ to access its addressLookup property instead of creating your own instance.) */ - (id) initWithHostname: (NSString*)hostname; +@property (readonly, copy) NSString *hostname; + /** The port number; this will be copied into the resulting IPAddress objects. Defaults to zero, but you can set it before calling -start. */ @property UInt16 port; @@ -42,4 +46,9 @@ query will continue to update them. */ @property (readonly) NSTimeInterval timeToLive; + +//internal: +- (id) _initWithBonjourService: (MYBonjourService*)service; +- (void) _serviceGotResponse; + @end