Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Matrix1 Util UDP packets not working

Author
Message
Cescano
9
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 14th Mar 2016 07:29
Someone managed to let work the UPD packets of Matrix1 Util? If I try to use them the program get stuck, while If I use the normal connect new socket command it works without any problem (but is TCP).
I am developing the network part of my new game, this time won't be a 1 vs 1 multiplayer but a real 32 players server match.
Using this TCP sockets method the game stutter, and sometimes freeze, probably because of the TCP, maybe a UDP connection will work better, but it doesn't seem to work.
Cescano
9
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 14th Mar 2016 16:28
Probably it doesn't work because my php script has a socket waiting for tcp sockets and not udp, I must find a way to mix both on the same php script.
Cescano
9
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 14th Mar 2016 18:58
I am trying to convert everything to UDP to make a test, now the problem is, when receiving a 200 bytes UDP packet from my server, I get an error:

Error : Unable to receive
Error : (10040) Message too long


This is really weird because the default receive buffer is 8192 bytes, and even trying to set it to 65535 I still get the same error.
Cescano
9
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 14th Mar 2016 21:49
Even trying a 8 bytes packet I still get the "message too long" error, is there a bug in the UDP Matrix1Utils?
Cescano
9
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 14th Mar 2016 23:04
Even sticking with TCP after a while the game crashes, if I attempt to execute a 2nd window of the game, it instantly crashes. Are these Matrix1Utils Networking commands bugged or what? The game never crashed before to add the network part.

Login to post a reply

Server time is: 2024-04-19 23:39:50
Your offset time is: 2024-04-19 23:39:50