SOInetAtoN

Syntax

#include <cafe.h>
#include <cafe/network.h>

int SOInetAtoN(const char *cp, struct in_addr *addr);

Parameters

cp Internet host address to convert.
addr Destination buffer for the converted address.

Return Values

Nonzero value if successful. Upon failure, returns 0 (errno is set to SO_EINVAL if addr is NULL).

Description

Converts an Internet host address from octet-and-dots notation into binary data in network byte order.

Do Not Call From

Callbacks Do not call this function from any callback function.
Interrupt handler Do not call this function from any interrupt handler.
Exception handler Do not call this function from any exception handler.

See Also

SOInetNtoA
SOInetNtoA_r
SOInetNtoP
SOInetPtoN

Revision History

2012/08/16 Cleanup pass.
2011/06/07 Modified description about return values.
2011/02/21 Initial version.


CONFIDENTIAL