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.


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

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

Add Voice Client Message (section 2.2.2.4)

DVMSGID_DELETEVOICEPLAYER

0x02

Remove Voice Client Message (section 2.2.4.3)

DVMSGID_SESSIONLOST

0x03

Session Lost Message (section 2.2.2.1)

DVMSGID_HOSTMIGRATED

0x0C

Host Migration Complete Message (section 2.2.4.5.2)

DVMSGID_SETTARGETS

0x0D

Set Client Voice Target Message (section 2.2.2.5)

DVMSGID_CONNECTREQUEST

0x51

Connect Request Message (section 2.2.3.1)

DVMSGID_CONNECTREFUSE

0x53

Connect Refuse Message (section 2.2.3.3)

DVMSGID_DISCONNECT

0x54

Client Disconnect Request Message (section 2.2.2.2)

DVMSGID_SPEECH

0x55

Speech Message (section 2.2.4.4)

DVMSGID_CONNECTACCEPT

0x56

Connect Accept Message (section 2.2.3.2)

DVMSGID_SETTINGSCONFIRM

0x58

Client Capability Confirmation Message (section 2.2.2.8)

DVMSGID_DISCONNECTCONFIRM

0x5A

Client Disconnect Confirmation Message (section 2.2.2.3)

DVMSGID_SPEECHBOUNCE

0x60

Speech with Bounce Message (section 2.2.2.7)

DVMSGID_PLAYERLIST

0x61

Voice Client List Message (section 2.2.4.2)

DVMSGID_HOSTMIGRATELEAVE

0x62

Voice Server Exited with Host Migration Message (section 2.2.4.5.1)

DVMSGID_SPEECHWITHTARGET

0x63

Speech with Target Message (section 2.2.2.6)

DVMSGID_SPEECHWITHFROM

0x64

Speech with From Message (section 2.2.5.1)

Message-specific payload (variable): A variable-length field the size of which depends on the type of packet designated in the MessageType field.