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_DNRADDRTONAMECOMPLETEcompletion event code when the function completes. Thecookieparameter to the notifier function contains thenameparameter to this call. If you had more than one simultaneous outstanding call to theOTInetAddressToNamefunction, you can use this information to determine which call has completed execution.SEE ALSO
TheOTInetStringToAddressfunction.The
OTInetStringToHostfunction.