22 static DWORD net_gram_sequence = 1;
30 : retries(0), packet_id(0), send_time(0)
37 : addr(src), retries(0), send_time(0)
45 (((DWORD) data[1]) << 16) +
46 (((DWORD) data[2]) << 8) +
55 : addr(dst), retries(r)
69 int len = user_data.
length();
73 CopyMemory(buf+NET_GRAM_HEADER_SIZE, user_data.
data(), len);
75 body =
Text((
char*) buf, len+NET_GRAM_HEADER_SIZE);
100 buf[0] = (BYTE) (ack.
packet_id >> 24) & 0xff;
101 buf[1] = (BYTE) (ack.
packet_id >> 16) & 0xff;
102 buf[2] = (BYTE) (ack.
packet_id >> 8) & 0xff;