SctpCommandCode

Namespace: inet

enum SctpCommandCode

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

See also: SctpCommand, SctpOpenCommand, Sctp

Source code

//
// SCTP command codes, sent by the application to SCTP. These constants
// should be set as message kind on a message sent to the SCTP entity.
//
// @see SctpCommand, SctpOpenCommand, Sctp
//
enum SctpCommandCode {
    SCTP_C_ASSOCIATE         = 1; // active open (must carry SctpOpenCommand)
    SCTP_C_OPEN_PASSIVE      = 2; // passive open (must carry SctpOpenCommand)
    SCTP_C_SEND              = 3; // send data (set on data packet)
    SCTP_C_CLOSE             = 5; // shutdown the association
    SCTP_C_ABORT             = 6; // abort connection
    SCTP_C_STATUS            = 7; // request status info (SCTP_I_STATUS) from Sctp
    SCTP_C_RECEIVE           = 8; // data receive request
    SCTP_C_SEND_ORDERED      = 9; // send data ordered
    SCTP_C_SEND_UNORDERED    = 10; // send data unordered
    SCTP_C_PRIMARY           = 11; // set primary path
    SCTP_C_QUEUE_BYTES_LIMIT = 12; // set send queue limit (in bytes)
    SCTP_C_QUEUE_MSGS_LIMIT  = 13; // set send queue limit (in messages)
    SCTP_C_SHUTDOWN          = 14;
    SCTP_C_NO_OUTSTANDING    = 15;
    SCTP_C_STREAM_RESET      = 16; // send StreamResetChunk
    SCTP_C_RESET_ASSOC       = 17;
    SCTP_C_ADD_STREAMS       = 18;
    SCTP_C_NAT_INFO          = 19;
    SCTP_C_SEND_ASCONF       = 20;
    SCTP_C_SET_STREAM_PRIO   = 21;
    SCTP_C_GETSOCKETOPTIONS  = 22;
    SCTP_C_ACCEPT            = 23;
    SCTP_C_SET_RTO_INFO      = 24;
    SCTP_C_ACCEPT_SOCKET_ID  = 25;
    SCTP_C_DESTROY           = 26; // destroy socket
};

File: src/inet/transportlayer/contract/sctp/SctpCommand.msg