I receive some UDP data on the socket. I want to receive 50 packets @ 114 bytes.
I receive the first 30 packets great and the data is OK. I think it is because of the available stack, because when I look at the socket.available there can only be 3550 bytes. If we divide this by 114 bytes (my receiving bytes) we get 31.
After the first 30 packets I only receive every third packets. So it is:
1 - 2 - 3 - … - 29 - 30 - 33 - 36 - 39 - 42 - …
And when I tried with just 30 bytes for each packets, the available buffer got smaller. About 930 when it was full…
How can I fix this problem? Can I make the available buffer bigger?