juney1110 / lidgren-network-gen3

Automatically exported from code.google.com/p/lidgren-network-gen3
0 stars 0 forks source link

NetIncomingMessage.Data on server storing previous data #164

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce
1. Send packet(ReliableOrdered) to server with example bytes 5,4,3,2,7
2. Send packet(RaliableOrdered) to server with example bytes 1,2,3,4
3. On server NetIncomingMessage.Data.Length of first packet will be 5 bytes, 
but second packet will be 5 bytes too. And contains last byte (7).

Original issue reported on code.google.com by doomr...@gmail.com on 18 Mar 2014 at 1:03

GoogleCodeExporter commented 9 years ago
This is not an error. If you are reading the buffer directly (not using the 
Read* methods) you need to consider the NetIncomingMessage.LengthBits property.

Original comment by lidg...@gmail.com on 18 Mar 2014 at 3:27