Activity
-
rspsapp started the topic Calculating packet size in the forum General Chat 9 months, 3 weeks ago
You determine the packet size by adding up the amount of bytes the payload will use and if the packet size is not fixed you use -1 (max payload size of 256) or -2 (unsigned short max value)
byte – 1
short – 2
int – 4
long – 8
double – 8example
[Read more]
out.writeShort(column); // 2
out.writeByte(4); // 1
out.writeShort(slot);…