Important: The information in this document is obsolete and should not be used for new development.
UDP Options
You can use the options in this section with a protocol level ofINET_UDP
. TheUDP_CHECKSUM
option is association-related. It may be negotiated in all endpoint states exceptT_UNBND
andT_UNINIT
. It is read-only in stateT_UNBND
. TheUDP_RX_ICMP
option is read-only in all states.
#define UDP_CHECKSUM OPT_CHECKSUM / #define UDP_RX_ICMP 0x2Option descriptions
UDP_CHECKSUM
- Activate or deactivate a checksum calculation. (
UInt32
)
- Specify
T_YES
to activate the checksum calculation orT_NO
to deactivate it. The default value for this option isT_YES
. If this option is returned by theOTRcvUData
function, its value indicates whether a checksum was present in the received datagram. UDP discards packets that do not have valid checksums when this option is activated. UDP relies on checksum calculations to provide reliable data delivery; under normal circumstances, you should never deactivate this option. A request to activate or deactivate checksums is an absolute requirement.
UDP_RX_ICMP
- Determine whether the UDP STREAMS module has received an ICMP message. This option returns a Boolean value.