nn::socket::InetPtoN Function

Syntax

s32 InetPtoN(
     int af,
     const char * src,
     void * dst
);

Arguments

Name Description
in af Specifies the address family of the host address to convert.
in src Specifies a pointer to a string that represents the host address in standard text format. The string must be NULL-terminated.AF_INET
in dst Specifies a pointer to a structure used to get the address in numeric format. When using AF_INET, specify a pointer to an InAddr structure.

Return Values



Value Description
1 Process was successful.
0 The character string given by src cannot be parsed according to standard text notation.
EAFNOSUPPORT Address family not supported.

Description

Converts a host address given in standard text format to numeric format.

Can be used even if Initialize has not been called.

See Also

InetNtoP

Revision History

2010/06/14
Initial version.

CONFIDENTIAL