Important: The information in this document is obsolete and should not be used for new development.
OTInitDNSAddress
Fills in aDNSAddressstructure with your data.C INTERFACE
size_t OTInitDNSAddress (DNSAddress *addr, char *str);C++ INTERFACE
None. C++ clients use the C interface to this function.PARAMETERS
addr- A pointer to a
DNSAddressstructure that you allocate. The function fills in thefAddressTypefield of theDNSAddressstructure with the valueAF_DNSand fills in the structure'sfNamefield with the address string you specify.
str- A pointer to a domain name string.
- function result
- The function returns the size of the resulting
DNSAddressstructure as an unsigned integer.DISCUSSION
You can use theDNSAddressstructure to provide an address when you use a UDP or TCP endpoint. If you do so, the domain name resolver resolves the address for you automatically.SPECIAL CONSIDERATIONS
TheOTInetDNSAddressfunction cannot block and always runs synchronously. It does not use the services of the DNR.
 
  
  
  