Hello Blitz community!
I am having some troubles concerning UDP connections. I have a Server, Client, and some extra functions (to actually run it download them all (addresses at bottom of post...)and change the txt's to bmx).
It would help if you test the files too so you can see what I mean (they are part of something bigger so you may have a bit of rubbish to filter through).
Basically, the TCP connection between server and client works fine, press characters in the client, they get sent to eh server then back to the client. HOWEVER, the UDP stream only seems to work from client to server, the either the server isn't sending back correctly, or the client isn't reading correctly. Either way, the client is receiving no UDP traffic.
The way it works at the moment is that the client binds the UDP port to the same port as the TCP port (it picks it's own port) then the server finds and connects to the UDP port the client is using, by checking the TCP port of the client.
I would appreciate any help you can give, even just a plain old example of how to use UDP and TCP together with a server and client.
http://spacerat.meteornet.net/Server.txt
http://spacerat.meteornet.net/Client.txt
http://spacerat.meteornet.net/functions.txt
I am having some troubles concerning UDP connections. I have a Server, Client, and some extra functions (to actually run it download them all (addresses at bottom of post...)and change the txt's to bmx).
It would help if you test the files too so you can see what I mean (they are part of something bigger so you may have a bit of rubbish to filter through).
Basically, the TCP connection between server and client works fine, press characters in the client, they get sent to eh server then back to the client. HOWEVER, the UDP stream only seems to work from client to server, the either the server isn't sending back correctly, or the client isn't reading correctly. Either way, the client is receiving no UDP traffic.
The way it works at the moment is that the client binds the UDP port to the same port as the TCP port (it picks it's own port) then the server finds and connects to the UDP port the client is using, by checking the TCP port of the client.
I would appreciate any help you can give, even just a plain old example of how to use UDP and TCP together with a server and client.
http://spacerat.meteornet.net/Server.txt
http://spacerat.meteornet.net/Client.txt
http://spacerat.meteornet.net/functions.txt