UDPSetSockOpt


C Specification

#include <dolphin/ip.h>
#include <dolphin/socket.h>
s32 UDPSetSockOpt( UDPInfo* info, int level, int optname,
                   const void* optval, int optlen );

Description

UDPSetSockOpt() specifies the options with a UDPInfo. The supported options are summarized in the following table:

Level Option name Type Description
SO_SOL_IP SO_IP_TOS int  
SO_SOL_IP SO_IP_TTL int  

Arguments

info Pointer to UDPInfo to set option.
level Protocol level (one of SO_SO_*).
optname Option name to set (one of SO_* shown above).
optval Option value to set.
optlen Option length.

Return Values

IP_ERR_NONE Succeeded.
IP_ERR_INVALID info is not a valid UDPInfo. Specified option data/length is invalid.
IP_ERR_INV_OPTION Specified option is not supported.

See Also