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