#include <cafe.h> #include <cafe/network.h> int SOSetLibOpt (int liboptname, int optval);
|liboptname||Name of the option for the socket library.
|optval||Value to set.|
0 upon success. Upon failure,
-1 is returned and
errno is set appropriately.
||Socket library is not initialized.|
||Insufficient memory in the stack.|
||Specified argument is invalid.|
||Could not obtain resources to configure in the stack.|
||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.|
Applies the given value to the specified option for socket library.
SOConnect) will continue to block even after Cafe loses link level connectivity. It is important that applications are able to handle this appropriately and avoid affecting the user experience. In the event that this is not handled appropriately, users may experience freezes or stalls in the application.
1to optval to avoid connection abort or
0to allow it. The default value is
0which means socket connections on that process will be aborted. This option can be called anytime after the socket library is initialized.
|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.|
2014/02/06 Moved description about
SOLIB_OPT_SOCKFD_TBL_INIT_COUNT to the man page of
2012/10/09 Added Errors section.
2012/09/28 Added SOLIB_OPT_SOCKFD_TBL_INIT_COUNT option.
2012/09/26 SOLIB_OPT_AVOID_CLOSE_ALL option became DEBUG ONLY.
2012/09/21 Modified description of SOLIB_OPT_AVOID_CLOSE_ALL.
2012/08/28 Initial version.