lnobad / lidgren-network-gen3

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

Deny and Disconnect messages seem to be garbled #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Attempt to connect a client to a server
2.Deny the client, with a message
3.Print the disconnect reason

What is the expected output? What do you see instead?
Depending on the string you enter, you get a different garbled message.
For example:
Attempting to send the string: "Master Server: Test denial message."
Results in the output: "#Mast"

What version of the product are you using? On what operating system?

Version with zip dated: 2011-06-27 (couldn't find the exact revision number, 
sorry)

OS: Windows 7 x64

Please provide any additional information below.
As a side note, I also noticed that when I upgraded to version 2011-11-06 that 
the disconnect message "=Fail" that fires after failing to connect to an 
endpoint after n tries was coming up as "=Faile". However, I rolled back to the 
version listed above and this stopped occurring.

I attached a zip file containing a simple project which I built to probe this 
issue. I couldn't figure anything out. I thought I was making an error, I might 
be. If I am I can't figure out what it is.

Thank you for your time, patience and hard work!

Original issue reported on code.google.com by eul...@gmail.com on 16 Nov 2011 at 3:25

Attachments:

GoogleCodeExporter commented 9 years ago
It seems like it's actually acting weird for any StatusChange messages. Any 
data you send along with them tends to become garbled. Unless I'm making a 
mistake?

Original comment by eul...@gmail.com on 16 Nov 2011 at 6:39

GoogleCodeExporter commented 9 years ago
The StatusChanged message first contains a single byte which you can cast into 
a NetConnectionStatus enum; then the string; are you reading both in order?

Original comment by lidg...@gmail.com on 16 Nov 2011 at 7:26

GoogleCodeExporter commented 9 years ago
Oh.... I had a feeling I was doing something wrong. Just couldn't figure it 
out. Thank you so much for your assistance and time! Sorry to bother you!

Original comment by eul...@gmail.com on 16 Nov 2011 at 8:20

GoogleCodeExporter commented 9 years ago

Original comment by lidg...@gmail.com on 9 Dec 2011 at 9:16