Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Networking With Open Transport / Part 2 - Open Transport Reference
Chapter 29 - TCP/IP Services Reference / Functions
Address Utilities /


OTInetStringToHost

Converts an IP address string from dotted-decimal notation or hexadecimal notation to an InetHost data type.

C INTERFACE
OSStatus OTInetStringToHost (char *str,
                                         InetHost *host);
C++ INTERFACE
None. C++ clients use the C interface to this function.

PARAMETERS
str
A pointer to a character string containing an IP address in either dotted-decimal notation (for example, "12.13.14.15") or hexadecimal notation (for example, "0x0C0D0E0F").
host
A pointer to the address as an InetHost data type.
function result
A result code. See Appendix B for more information.
SPECIAL CONSIDERATIONS
The OTInetStringToHost function cannot block and always runs synchronously. It does not use the services of the DNR.

SEE ALSO
The OTInetHostToString function (described next).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998