UDPGetSockOpt


C Specification

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

Description

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

Level Option name Type Description
SO_SOL_SOCKET SO_SO_TYPE int SO_SOCK_DGRAM
SO_SOL_IP SO_IP_TOS int  
SO_SOL_IP SO_IP_TTL int  

Arguments

info Pointer to UDPInfo to get option.
level Protocol level (one of SO_SO_*).
optname Option name to get (one of SO_* shown above).
optval Option value to get.
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