Enum UDPCommandCode

File: Transport/Contract/UDPControlInfo.msg

UDP command codes, sent by the application to UDP. These constants should be set as message kind on a message sent to the UDP entity.

See also: UDPControlInfo, UDPStatusInd, UDP

Enum values:

Name Value Description
UDP_C_DATA 0

datagram to send (must carry UDPControlInfo)

UDP_C_BIND 1

fill srcPort and srcAddr in UDPControlInfo

UDP_C_CONNECT 2

fill destAddr and destPort in UDPControlInfo

UDP_C_UNBIND 3

fill sockId in UDPControlInfo

Source code:

enum UDPCommandCode
{
    UDP_C_DATA = 0;    // datagram to send (must carry UDPControlInfo)
    UDP_C_BIND = 1;    // fill srcPort and srcAddr in UDPControlInfo
    UDP_C_CONNECT = 2; // fill destAddr and destPort in UDPControlInfo
    UDP_C_UNBIND = 3;  // fill sockId in UDPControlInfo
};