Control info to be used for active or passive SCTP open.
localAddr, remoteAddr, localPort, remotePort should be self-explanatory. localAddr is optional because SCTP can learn it from IP when a packet is received from the peer; localPort is optional because SCTP supports ephemeral ports.
The sendQueueClass, receiveQueueClass and sctpAlgorithmClass fields allow per-connection SCTP configuration. These fields may contain names of messagees submessageed from SCTPSendQueue, SCTPReceiveQueue and SCTPAlgorithm, respectively. If not set, module parameters with similar names are used.
The fork parameter is used with passive open, and controls what happens when an incoming connection is received. With fork=true, it emulates the Unix accept(2) syscall semantics: a new connection structure is created for the connection (with a new connId, see in SCTPCommand), and the connection structure with the old connId remains listening. With fork=false, all the above does not happen: the first connection is accepted (with the original connId), and further incoming connections will be refused by SCTP by sending an RST segment.
See also: SctpCommandCode, SCTP
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Name | Type | Description |
---|---|---|
SCTPCommand | packet |
Control info for SCTP connections. This message is to be set as control info (see cMessage::setControlInfo()) on all messages exchanged between SCTP and application, in both directions. Some commands and indications (SCTP_C_OPEN_xxx, SCTP_I_STATUS) use submessagees. |
Name | Type | Description |
---|---|---|
localAddresses | AddressVector | |
remoteAddresses | AddressVector | |
fork | bool |
used only for passive open |
queueClass | string |
may be left empty |
sctpAlgorithmClass | string |
may be left empty |
inboundStreams | uint32 | |
outboundStreams | uint32 | |
streamReset | bool | |
appLimited | bool | |
prMethod | int | |
numRequests | uint32 | |
messagesToPush | uint32 | |
assocId | int |
identifies the socket within the application |
sid | int | |
numMsgs | int | |
ssn | int | |
sendUnordered | unsigned short | |
prValue | double | |
localAddr | L3Address | |
remoteAddr | L3Address | |
localPort | int | |
remotePort | int | |
gate | int | |
fd | int |
// // Control info to be used for active or passive ~SCTP open. // // localAddr, remoteAddr, localPort, remotePort should be self-explanatory. // localAddr is optional because ~SCTP can learn it from IP when a packet // is received from the peer; localPort is optional because ~SCTP supports // ephemeral ports. // // The sendQueueClass, receiveQueueClass and sctpAlgorithmClass fields // allow per-connection ~SCTP configuration. These fields may contain // names of messagees submessageed from SCTPSendQueue, SCTPReceiveQueue // and SCTPAlgorithm, respectively. If not set, module parameters with // similar names are used. // // The fork parameter is used with passive open, and controls what happens // when an incoming connection is received. With fork=true, it emulates // the Unix accept(2) syscall semantics: a new connection structure // is created for the connection (with a new connId, see in ~SCTPCommand), // and the connection structure with the old connId remains listening. // With fork=false, all the above does not happen: the first connection // is accepted (with the original connId), and further incoming connections // will be refused by ~SCTP by sending an RST segment. // // @see ~SctpCommandCode, ~SCTP // message SCTPOpenCommand extends SCTPCommand { AddressVector localAddresses; AddressVector remoteAddresses; bool fork = false; // used only for passive open string queueClass = "SCTPQueue"; // may be left empty string sctpAlgorithmClass; // may be left empty uint32 inboundStreams; uint32 outboundStreams; bool streamReset; bool appLimited; int prMethod; uint32 numRequests; uint32 messagesToPush; }