1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/Bonjour/MYBonjourQuery.h Tue May 05 15:11:02 2009 -0700
1.3 @@ -0,0 +1,35 @@
1.4 +//
1.5 +// MYBonjourQuery.h
1.6 +// MYNetwork
1.7 +//
1.8 +// Created by Jens Alfke on 4/24/09.
1.9 +// Copyright 2009 Jens Alfke. All rights reserved.
1.10 +//
1.11 +
1.12 +#import "MYDNSService.h"
1.13 +@class MYBonjourService;
1.14 +
1.15 +
1.16 +/** A query for a particular DNS record (TXT, NULL, etc.) of a Bonjour service.
1.17 + This class is used internally by MYBonjourService to track the TXT record;
1.18 + you won't need to use it directly, unless you're interested in the contents of some other
1.19 + record (such as the NULL record that iChat's _presence._tcp service uses for buddy icons.) */
1.20 +@interface MYBonjourQuery : MYDNSService
1.21 +{
1.22 + @private
1.23 + MYBonjourService *_bonjourService;
1.24 + uint16_t _recordType;
1.25 + NSData *_recordData;
1.26 +}
1.27 +
1.28 +/** Initializes a query for a particular service and record type.
1.29 + @param service The Bonjour service to query
1.30 + @param recordType The DNS record type, e.g. kDNSServiceType_TXT; see the enum in <dns_sd.h>. */
1.31 +- (id) initWithBonjourService: (MYBonjourService*)service
1.32 + recordType: (uint16_t)recordType;
1.33 +
1.34 +/** The data of the DNS record, once it's been found.
1.35 + This property is KV-observable. */
1.36 +@property (readonly,copy) NSData *recordData;
1.37 +
1.38 +@end