When i receive data from UDP, the function parsePacket, is returning the total packet size, and is OK. but when i will read with function read, this function return -1. This dos not make sense. If i have packet, with size, why they not read as well? I used udp senders like "Packet Sender" and UDP sender make for me in visual studio c#, and the result is the same.
This worked a couple of hours, but now, not work in any way.
Hello,
I am using you lib, and i founded a bug, i think.
When i receive data from UDP, the function parsePacket, is returning the total packet size, and is OK. but when i will read with function read, this function return -1. This dos not make sense. If i have packet, with size, why they not read as well? I used udp senders like "Packet Sender" and UDP sender make for me in visual studio c#, and the result is the same.
This worked a couple of hours, but now, not work in any way.
Have you any idea, what can i do?
Thanks a lot Moacir Jr.