-
Notifications
You must be signed in to change notification settings - Fork 2
Controlling PureVoice via UDP
Ulrich Strauss edited this page Jul 28, 2019
·
2 revisions
The PureVoice TS Client Plugin will listen on the local computer (127.0.0.1) on Port 4329 for UDP Packets to control its status.
The "PUREVOICE" Packet is used to establish the connection to the PureVoice Server. It is also used as a heartbeat. The PureVoice TS Client Plugin expects a PUREVOICE-Packet at least every 10 seconds. Else it will assume the connection is broken (e.g. the game crashed) and disconnect from the server.
The "PUREVOICECOMMAND" Packet can be used to transfer Data/Events to the Server. Do NOT use it for position updates!
The current protocolVersion is 1.
The package has the following structure:
Type | Length | Description | Name |
---|---|---|---|
Int32 | 4 Bytes | Length of string follwing | n |
char | n Bytes | String data | hello |
Int32 | 4 Bytes | Protocol Version | protocolVersion |
hello = "PUREVOICE" | |||
Int32 | 4 Bytes | Length of string following | n |
char | n Bytes | String data | serverIP |
Int32 | 4 Bytes | Server port | serverPort |
Int32 | 4 Bytes | Length of string following | n |
char | n Bytes | String data | serverSecret |
Int32 | 4 Bytes | Length of string following | |
char | n Bytes | String data | clientGUID |
Int32 | 4 Bytes | Length of string following | |
char | n Bytes | String data | requiredClientVersion |
hello = "PUREVOICECOMMAND" | |||
Int32 | 4 Bytes | Length of string following | n |
char | n Bytes | String data | Command |
Int32 | 4 Bytes | Length of string following | n |
char | n Bytes | String data | CommandData |