NetStringPacker

As stated on the Network overview page, Conquer Online uses a custom binary protocol in Little-endian. In order to send a string over the protocol, Conquer Online will either use a fixed length character buffer or prefix the string with a byte length.

TQ Digital Entertainment's NetStringPacker is a collection of byte length prefixed strings, prefixed by the total size of the collection (also represented as a byte).

Structure

TypeNameDescription
ByteAmountTotal number of strings
PString[]StringsArray of length-prefixed strings

Example

The following example is from MsgTalk.

PosTypeNameDescriptionExample
0ByteAmountTotal number of strings4
1ByteLengthLength of the first string6
2Char[6]SpeakerAuthor of the messageSYSTEM
8ByteLengthLength of the second string8
9Char[8]HeaderRecipient of the messageALLUSERS
17ByteLengthLength of the third string0
18ByteLengthLength of the fourth string7
19Char[7]WordsThe body of the messageTesting

The total size of this NetStringPacker is 26 bytes.