-
Notifications
You must be signed in to change notification settings - Fork 8
Acknowledge packet
Youx edited this page Sep 13, 2010
·
1 revision
Size | Format | Description |
---|---|---|
2 bytes | 16 bit integer (hexa) | Type of packet (f1be) |
2 bytes | 16 bit integer (hexa) | Packet version (identical to the one of the control packet it acknowledges) |
4 bytes | 32 bit integer (hexa) | Private client ID of packet : the client (known only to the server) |
4 bytes | 32 bit integer (hexa) | Public client ID (known to the other clients) |
4 bytes | 32 bits integer | Counter (identical to the one of the control packet it acknowledges???) |
An acknowledge has to be sent every time you receive a control packet.
It is only composed of a header, no data is included after.
If you are too slow to send a reply, the server will send the same packet again. In that case, you have to send an acknowledge too, but incrementing the last 16 bits.
For example, the ack for the first message will have a function ID of 0xf1be0000, and the second one will have 0xf1be0100