2.2.14 TRANS_USERDATA_TERMINATE_SESSION

The TRANS_USERDATA_TERMINATE_SESSION packet instructs the client to disconnect from the game session. This packet begins with a TRANS_USERDATA_HEADER (section 2.2.17).


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

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 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 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 is being terminated from the game session.