2.2.2.1 DN_TERMINATE_SESSION
The DN_TERMINATE_SESSION packet instructs the client or the peer to disconnect from the game session.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dwPacketType |
|||||||||||||||||||||||||||||||
dwTerminateDataOffset |
|||||||||||||||||||||||||||||||
dwTerminateDataSize |
|||||||||||||||||||||||||||||||
TerminateData (variable) |
|||||||||||||||||||||||||||||||
... |
dwPacketType (4 bytes): A 32-bit field that contains the packet type.
-
Value
Meaning
DN_MSG_INTERNAL_TERMINATE_SESSION
0x000000DF
Instructs the client or the peer to close and disconnect itself from the game session.
dwTerminateDataOffset (4 bytes): A 32-bit field that contains the offset from the end of dwPacketType for the data passed from the server/host application that describes why the client or the peer is being terminated.
dwTerminateDataSize (4 bytes): A 32-bit field that contains the size, in bytes, of the terminate data. If dwTerminateDataOffset is 0, dwTerminateDataSize SHOULD also be 0. If dwTerminateDataOffset is not 0, dwTerminateDataSize SHOULD also not be 0.
TerminateData (variable): A variable-length field that contains a byte array from the application that describes why the client or the peer is being terminated from the game session.