Bonjour/MYAddressLookup.h
changeset 50 63baa74c903f
parent 31 1d6924779df7
     1.1 --- a/Bonjour/MYAddressLookup.h	Wed Apr 29 13:29:31 2009 -0700
     1.2 +++ b/Bonjour/MYAddressLookup.h	Wed Jul 01 14:14:32 2009 -0700
     1.3 @@ -7,11 +7,13 @@
     1.4  //
     1.5  
     1.6  #import "MYDNSService.h"
     1.7 +@class MYBonjourService;
     1.8  
     1.9  
    1.10  /** An asynchronous DNS address lookup. Supports both Bonjour services and traditional hostnames. */
    1.11  @interface MYAddressLookup : MYDNSService
    1.12  {
    1.13 +    MYBonjourService *_service;
    1.14      NSString *_hostname;
    1.15      UInt16 _interfaceIndex;
    1.16      NSMutableSet *_addresses;
    1.17 @@ -24,6 +26,8 @@
    1.18      to access its addressLookup property instead of creating your own instance.) */
    1.19  - (id) initWithHostname: (NSString*)hostname;
    1.20  
    1.21 +@property (readonly, copy) NSString *hostname;
    1.22 +
    1.23  /** The port number; this will be copied into the resulting IPAddress objects.
    1.24      Defaults to zero, but you can set it before calling -start. */
    1.25  @property UInt16 port;
    1.26 @@ -42,4 +46,9 @@
    1.27      query will continue to update them. */
    1.28  @property (readonly) NSTimeInterval timeToLive;
    1.29  
    1.30 +
    1.31 +//internal:
    1.32 +- (id) _initWithBonjourService: (MYBonjourService*)service;
    1.33 +- (void) _serviceGotResponse;
    1.34 +
    1.35  @end