2.2.2.2 DN_DESTROY_PLAYER

The DN_DESTROY_PLAYER packet instructs the peer to remove a specified user from its name table.


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

dpnidLeaving

dwVersion

dwVersionNotUsed

dwDestroyReason

dwPacketType (4 bytes): A 32-bit field that contains the packet type.

Value

Meaning

DN_MSG_INTERNAL_DESTROY_PLAYER

0x000000D1

Instructs the peer to remove the specified peer from the name table.

dpnidLeaving (4 bytes): A 32-bit field that contains the identifier of the client or server to remove from the name table. For more information, see section 2.2.7.

dwVersion (4 bytes): A 32-bit field that contains the current name table version number.

dwVersionNotUsed (4 bytes): Not used.

dwDestroyReason (4 bytes): A 32-bit field that contains the reason for terminating the specified client or server.

Value

Meaning

DPNDESTROYPLAYERREASON_NORMAL

0x0001

Peer/host is leaving.

DPNDESTROYPLAYERREASON_CONNECTIONLOST

0x0002

Connection to peer was lost.

DPNDESTROYPLAYERREASON_SESSIONTERMINATED

0x0003

Game session was terminated.

DPNDESTROYPLAYERREASON_HOSTDESTROYEDPLAYER

0x0004

Host removed the peer.