Networking

Community Forums/General Help/Networking

NotAGamer(Posted 2016) [#1]
im starting the multiplayer code of my 3d game..
using blitz3d what will you use ?
tcp-ip? udp? or any else?

please help


Matty(Posted 2016) [#2]
If it is a fast paced game then udp is more suited to it but you will have to account for the non reliability of the messages.

If it is turn based or slower paced you can get away with tcp ip because tcp ip is blocking in blitz3d - nothing else will execute while you are waiting for a connection (no threading).


xlsior(Posted 2016) [#3]
but you will have to account for the non reliability of the messages.


And keep in mind: non-reliability with UDP doesn't just mean th occasional missing packets, but unlike TCP it can also receive packets out of order.


cps(Posted 2016) [#4]
Just in case you haven't, look at Code archives/networking. It gave me all I needed (with a few prods from the community). I went with GNet. Have fun cps
Opps, of course I use Blitz Max