facebookarchive / RakNet

RakNet is a cross platform, open source, C++ networking engine for game programmers.
Other
3.29k stars 1.02k forks source link

RakNet broken on Windows 10? #111

Open CPlusPlus17 opened 7 years ago

CPlusPlus17 commented 7 years ago

Tried to get a RakNet Client running on Windows 10, but things aren't working very well. Does someone had such a problem and could fix it? This is logged when trying to connect to the server and send some data. The data is never received.

sendto failed with code -1 for char 5 and length 1464. sendto failed:Error code - 10040 A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself.

Thanks Manuel

PS: I know the fact that the library is dead, but getting it work until we replaced it, would be nice

BigJoe01 commented 7 years ago

Check your network setting. Windows mtu lower than raknet default settings. Maybe help in first test, if you set maximum mtu.

CPlusPlus17 commented 7 years ago

Tested with lower and higher mtu. Same error besides the length changes a bit in the error.

BigJoe01 commented 7 years ago

I tested in windows 10, and works correctly in my environment. Any public source code?

CPlusPlus17 commented 7 years ago

Sadly not, I have access to it, but not allowed to post it. Anything special I should have a look at? Checked the init and connect code, is everything default, no special hacks or such stuff.

Are you using the current 4.081 version? We have a very old release with 4.04.

BigJoe01 commented 7 years ago

This version

CPlusPlus17 commented 7 years ago

Finally got the new version compiled. MTU bug seems fixed but it seems some stuff changed and received messages are not processed.

Does someone has experiences from migrating 4.04 to 4.081? A diff between the two versions shows that the socket code was completely rewritten.

BigJoe01 commented 7 years ago

Hi, witch messages not processed? Own message type or system message? My opinion, first compare message type file.