Please see http://stackoverflow...oes-this-happen
Reliable UDP Protocol Implementation in Java - Why does this happen?
Started by liamzebedee, Dec 06 2011 11:05 PM
2 replies to this topic
#1
Posted 06 December 2011 - 11:05 PM
|
|
|
#2
Posted 06 December 2011 - 11:16 PM
Quote
and it appears that its something associated with packets not being removed from the receive queue
That was also with using sockets and objects send trough them remaining in the buffer, eventually causing problems.
If this is not helping, could you post the stacktrace or at least the name of the error?
#3
Posted 06 December 2011 - 11:56 PM
Thanks so much, I have been stuck on this for the whole day.
I read through the thread and found the part about using InputStream.reset(). It wasn't supported in the code I was using, but thankfully, I knew exactly how many bytes was in each of the packets. This cleared the buffer successfully, and it now works. THANKS :D
I read through the thread and found the part about using InputStream.reset(). It wasn't supported in the code I was using, but thankfully, I knew exactly how many bytes was in each of the packets. This cleared the buffer successfully, and it now works. THANKS :D
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









