OTInitDNSAddress
Fills in aDNSAddressstructure with the data you provide.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 this structure.str- A pointer to a domain name string. This string can be just a host name (otteam), a partially qualified domain name (for example, "otteam.ssw"), a fully qualified domain name (for example, "otteam.ssw.apple.com."), or an internet address in dotted-
decimal format (for example, "17.202.99.99"), and can optionally include the port number (for example, "otteam.ssw.apple.com:25" or "17.202.99.99:25").DESCRIPTION
This function fills in thefAddressTypefield of theDNSAddressstructure with the valueAF_DNS, fills in thefNamefield with the address string you specify, and returns the size of the resultingDNSAddressstructure as an unsigned integer. 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.SEE ALSO
TheDNSAddressstructure is described in "DNS Address Structure" on page 8-23.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help