2.2.1 The Common Message Header
All messages in the DirectPlay Voice Protocol share a common header, which is followed by a message-specific payload, as specified in the following sections. Some message types do not have any message-specific payload.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
MessageType |
Message-specific payload (variable) |
||||||||||||||||||||||||||||||
... |
MessageType (1 byte): An 8-bit unsigned integer representing a unique packet type that identifies the message. MessageType MUST be one of the following values.
-
Value
Meaning
DVMSGID_CREATEVOICEPLAYER
0x01
DVMSGID_DELETEVOICEPLAYER
0x02
DVMSGID_SESSIONLOST
0x03
DVMSGID_HOSTMIGRATED
0x0C
DVMSGID_SETTARGETS
0x0D
DVMSGID_CONNECTREQUEST
0x51
DVMSGID_CONNECTREFUSE
0x53
DVMSGID_DISCONNECT
0x54
DVMSGID_SPEECH
0x55
DVMSGID_CONNECTACCEPT
0x56
DVMSGID_SETTINGSCONFIRM
0x58
DVMSGID_DISCONNECTCONFIRM
0x5A
DVMSGID_SPEECHBOUNCE
0x60
DVMSGID_PLAYERLIST
0x61
DVMSGID_HOSTMIGRATELEAVE
0x62
Voice Server Exited with Host Migration Message (section 2.2.4.5.1)
DVMSGID_SPEECHWITHTARGET
0x63
DVMSGID_SPEECHWITHFROM
0x64
Message-specific payload (variable): A variable-length field the size of which depends on the type of packet designated in the MessageType field.