#include <cafe.h> #include <cafe/network.h> int SOSocket(int family, int type, int proto);
Protocol family to be used.
Type of socket:
|proto||Protocol to be used with this socket.|
A file descriptor for the new socket upon success.
-1 is returned and
errno is set appropriately.
||Socket library is not initialized.|
||Insufficient memory in the stack.|
||Specified type is not supported.|
||The protocol type or the specified protocol is not supported within this domain.|
||Too many sockets open. No more socket file descriptors available. Socket cannot be created until existing sockets are closed.|
||Socket resource manager busy processing requests.|
||Indicates the operation was aborted. For example, this error can be returned for calls blocked on a socket after the socket is closed by another thread.|
||Internal API error, invalid error code.|
||Internal API error.|
||Invalid operation occurred in the stack.|
||Non-supported address family.|
Creates a communications endpoint and returns a descriptor.
|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.|
2012/10/09 Updated Errors section.
2012/08/16 Cleanup pass.
2012/01/10 Added info about SO_EMFILE error code.
2011/07/11 Added Errors section.
2011/02/21 Initial version.