SOInit

Syntax

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

int SOInit(void);

Parameters

None.

Return Values

0 upon success, -1 on failure with errno set to the appropriate value.

Errors

SO_ENOMEM Insufficient memory in the stack.
SO_ENOLIBRM Failed to initialize socket library for some reason.

Description

Initializes the socket API library. This API must be called first before any other socket API can be used.

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

SOFinish

Revision History

2013/05/08 Automated cleanup pass.
2012/10/09 Added Errors section.
2012/08/16 Cleanup pass.
2011/02/21 Initial version.


CONFIDENTIAL