On 09/16/2013 02:06 PM, Maik Klein wrote:
https://gist.github.com/MaikKlein/6586333

Basically what happens is that a packet is read "partially" if the buffer is to small for the packet. According to http://gafferongames.com/networking-for-game-programmers/sending-and-receiving-packets/ this should not happen.

In my case I send [99u8,99u8] which should be of size 512 and my buffer is [0u8,..1] which should be of size 256. But it still receives the first 99.

I'm not sure what is correct, but this behavior appears to be inherited from libuv. I wonder if the rest of the packet is delivered in subsequent reads or if part of the packet is just discarded.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to