jens@28: // jens@28: // MYBonjourQuery.h jens@28: // MYNetwork jens@28: // jens@28: // Created by Jens Alfke on 4/24/09. jens@28: // Copyright 2009 Jens Alfke. All rights reserved. jens@28: // jens@28: jens@28: #import "MYDNSService.h" jens@28: @class MYBonjourService; jens@28: jens@28: jens@28: /** A query for a particular DNS record (TXT, NULL, etc.) of a Bonjour service. jens@28: This class is used internally by MYBonjourService to track the TXT record; jens@28: you won't need to use it directly, unless you're interested in the contents of some other jens@28: record (such as the NULL record that iChat's _presence._tcp service uses for buddy icons.) */ jens@28: @interface MYBonjourQuery : MYDNSService jens@28: { jens@28: @private jens@28: MYBonjourService *_bonjourService; jens@28: uint16_t _recordType; jens@28: NSData *_recordData; jens@28: } jens@28: jens@28: /** Initializes a query for a particular service and record type. jens@28: @param service The Bonjour service to query jens@28: @param recordType The DNS record type, e.g. kDNSServiceType_TXT; see the enum in . */ jens@28: - (id) initWithBonjourService: (MYBonjourService*)service jens@28: recordType: (uint16_t)recordType; jens@28: jens@28: /** The data of the DNS record, once it's been found. jens@28: This property is KV-observable. */ jens@28: @property (readonly,copy) NSData *recordData; jens@28: jens@28: @end