ADC Home > Reference Library > Reference > Darwin > Miscellaneous User Space API Reference
|
DNSServiceDiscovery.h |
Includes: | <mach/mach_types.h> <sys/types.h> <sys/socket.h> <sys/cdefs.h> <netinet/in.h> <AvailabilityMacros.h> |
DNSServiceBrowserCreate |
dns_service_discovery_ref DNSServiceBrowserCreate ( const char *regtype, const char *domain, DNSServiceBrowserReply callBack, void *context );
regtype
domain
callBack
context
A dns_registration_t
@description Asynchronously create a DNS Service browser
DNSServiceDiscovery_handleReply |
void DNSServiceDiscovery_handleReply( void *replyMsg);
replyMsg
@description This function should be called with the Mach message sent to the port returned by the call to DNSServiceResolverResolve. The reply message will be interpreted and will result in a call to the specified callout function.
DNSServiceDiscoveryDeallocate |
void DNSServiceDiscoveryDeallocate( dns_service_discovery_ref dnsServiceDiscovery);
dnsServiceDiscovery
void
@description Deallocates the DNS Service Discovery type / closes the connection to the server
DNSServiceDiscoveryMachPort |
mach_port_t DNSServiceDiscoveryMachPort( dns_service_discovery_ref dnsServiceDiscovery);
registration
A mach reply port which will be sent messages as appropriate. These messages should be passed to the DNSServiceDiscovery_handleReply function. A NULL value indicates that no address was specified or some other error occurred which prevented the resolution from being started.
@description Returns the mach port for a dns_service_discovery_ref
DNSServiceDomainEnumerationCreate |
dns_service_discovery_ref DNSServiceDomainEnumerationCreate ( int registrationDomains, DNSServiceDomainEnumerationReply callBack, void *context );
registrationDomains
callBack
context
A dns_registration_t
@description Asynchronously create a DNS Domain Enumerator
DNSServiceRegistrationAddRecord |
DNSRecordReference DNSServiceRegistrationAddRecord( dns_service_discovery_ref dnsServiceDiscovery, uint16_t rrtype, uint16_t rdlen, const char *rdata, uint32_t ttl) ;
dnsServiceDiscovery
rrtype
rdlen
rdata
ttl
DNSRecordReference An opaque reference that can be passed to the update and remove record calls. If an error occurs, this value will be zero or negative
@description Request that the mDNS Responder add the DNS Record of a specific type
DNSServiceRegistrationCreate |
dns_service_discovery_ref DNSServiceRegistrationCreate ( const char *name, const char *regtype, const char *domain, uint16_t port, const char *txtRecord, DNSServiceRegistrationReply callBack, void *context );
name
regtype
domain
port
txtRecord
callBack
context
A dns_registration_t
@description Register a named service with DNS Service Discovery
DNSServiceRegistrationRemoveRecord |
DNSServiceRegistrationReplyErrorType DNSServiceRegistrationRemoveRecord( dns_service_discovery_ref ref, DNSRecordReference reference) ;
dnsServiceDiscovery
dnsRecordReference
DNSServiceRegistrationReplyErrorType If an error occurs, this value will be non zero
@description Request that the mDNS Responder remove the DNS Record(s) of a specific type
DNSServiceRegistrationUpdateRecord |
DNSServiceRegistrationReplyErrorType DNSServiceRegistrationUpdateRecord( dns_service_discovery_ref ref, DNSRecordReference reference, uint16_t rdlen, const char *rdata, uint32_t ttl) ;
dnsServiceDiscovery
dnsRecordReference
rdlen
rdata
ttl
DNSServiceRegistrationReplyErrorType If an error occurs, this value will be non zero
@description Request that the mDNS Responder add the DNS Record of a specific type
DNSServiceResolver_handleReply |
void DNSServiceDiscovery_handleReply( void *replyMsg);
replyMsg
@description This function should be called with the Mach message sent to the port returned by the call to DNSServiceResolverResolve. The reply message will be interpreted and will result in a call to the specified callout function.
DNSServiceResolverResolve |
dns_service_discovery_ref DNSServiceResolverResolve ( const char *name, const char *regtype, const char *domain, DNSServiceResolverReply callBack, void *context );
name
regtype
domain
callBack
context
A dns_registration_t
@description Resolved a named instance of a service to its address, port, and (optionally) other demultiplexing information contained in the TXT record.
|