nn::socket::InetPtoN Function
s32 InetPtoN(
int af,
const char * src,
void * dst
);
| 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. |
| 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. |
Converts a host address given in standard text format to numeric format.
Can be used even if Initialize has not been called.
CONFIDENTIAL