Important: The information in this document is obsolete and should not be used for new development.
OTInetAddressToName
Determines the canonical name of the host associated with an IP address.C INTERFACE
OSStatus OTInetAddressToName (InetSvcRef ref, InetHost addr, InetDomainName nfo);C++ INTERFACE
TInternetServices::AddressToName (InetHost addr, InetDomainName name);PARAMETERS
ref
- The internet services reference you obtained when you opened the TCP/IP service provider.
addr
- The IP address for which you want to determine the associated domain name.
name
- A character array that you must allocate. On output, the function places the canonical name in this array.
- function result
- A result code. See Appendix B for more information.
DISCUSSION
If you call this function asynchronously, the TCP/IP service provider calls your notifier function with theT_DNRADDRTONAMECOMPLETE
completion event code when the function completes. Thecookie
parameter to the notifier function contains thename
parameter to this call. If you had more than one simultaneous outstanding call to theOTInetAddressToName
function, you can use this information to determine which call has completed execution.SEE ALSO
TheOTInetStringToAddress
function.The
OTInetStringToHost
function.