2.2.16 TRANS_USERDATA_END_OF_STREAM
The TRANS_USERDATA_END_OF_STREAM packet is used to signal the disconnection of a user. This packet consists of only the TRANS_USERDATA_HEADER.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bCommand |
bControl |
bSeq |
bNRcv |
bCommand (1 byte): An 8-bit integer that specifies characteristics of the message. Two or more of the following flags can be combined to form complex values.
-
Value
Meaning
PACKET_COMMAND_DATA
0x01
The frame contains user data.
PACKET_COMMAND_RELIABLE
0x02
The frame SHOULD be delivered reliably and requires a packet acknowledgment.
PACKET_COMMAND_SEQUENTIAL
0x04
The frame SHOULD be indicated sequentially.
PACKET_COMMAND_POLL
0x08
The partner SHOULD acknowledge immediately.
PACKET_COMMAND_NEW_MSG
0x10
The DFRAME is first in the message.
PACKET_COMMAND_END_MSG
0x20
The DFRAME is last in the message.
PACKET_COMMAND_USER_1
0x40
The first user-controlled flag. (Indicates that the payload is an internal session management message.)
PACKET_COMMAND_USER_2
0x80
The second user-controlled flag. (Indicates that the payload is an internal session management message.)
bControl (1 byte): An 8-bit integer that identifies the packet. This field MUST be set to PACKET_CONTROL_END_STREAM (0x08) to specify that the packet is the last in the stream, and to indicate to disconnect.
bSeq (1 byte): An 8-bit integer that provides the sequence number of the packet.
bNRcv (1 byte): An 8-bit integer that provides the expected sequence number of the next packet received.