FTAOD, here are the prints:
Received 10 byte(s): []byte{0xae, 0x0, 0x0, 0x5, 0x69, 0xcd, 0x24, 0x1a, 0xf8, 0xbf}.
Received 10 byte(s): []byte{0xae, 0x1, 0x0, 0x5, 0x69, 0xcd, 0x24, 0x2a, 0x3b, 0x6}.
Received 10 byte(s): []byte{0xae, 0x2, 0x0, 0x5, 0x69, 0xcd, 0x24, 0x39, 0x7d, 0x29}.
Received 10 byte(s): []byte{0xae, 0x3, 0x0, 0x5, 0x69, 0xcd, 0x24, 0x48, 0xbf, 0x79}.
Received 10 byte(s): []byte{0xae, 0x4, 0x0, 0x5, 0x69, 0xcd, 0x24, 0x58, 0x1, 0x92}.
The C code on the far end is:
sendto(gSocket, helloDatagram, sizeof(helloDatagram), 0, NULL, 0)
…where helloDatagram
is a 0xae
start marker, an incrementing sequence byte and then a 64-bit microsecond timestamp.