Files
c-toxcore/docs/Group-Custom-Packets.md
iphydf ec36e15841 docs: Add a list of group custom packet IDs.
Group custom packets have no type, so clients start each one with a
16-bit ID.
2026-11-21 16:34:49 +00:00

1.0 KiB
Raw Permalink Blame History

Group custom packet IDs

Group custom packets (tox_group_send_custom_packet and tox_group_send_custom_private_packet) have no packet type of their own. So that clients can tell their packets apart, every group custom packet starts with a 16-bit packet ID in network byte order: 0x6677 is the bytes 66 77 at the start of the packet. This was decided in #2544.

To use IDs, pick a range nobody uses and add it to the table in a pull request. Some clients still send one-byte IDs, so a range that starts with one of those bytes is taken whole.

IDs Used by
0x0000–0x03FF Reserved for TokTok.
0x6677 zoff99: packets start with 66 77 88 11 34 35.
0x8000–0x90FF Green-Sky.
0xA000–0xA0FF Green-Sky.