Click or drag to resize

TCP

Hazel's TCP protocol is fairly simple as TCP already provides connection based communication and thus only needs a message system implementing.

Header Data

The TCP protocol is fairly simple interms of header. 4 bytes are added to mark the number of bytes in each message.

Length (MSB)

Length

Length

Length (LSB)

Data...

All header data in Hazel is encoded in big endian format.