"Also the "-1" should be 65535" you just said your problem? Anyways, review your streams for the packet.
|
"Also the "-1" should be 65535" you just said your problem? Anyways, review your streams for the packet.
-1 = signed, 65535 = unsigned, if you do -1 & 0xffff you will get 65535
However, in case of "streams" you can do readUnsignedShort() instead of readShort() or getShort() it does the same thing as mentioned above
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |