Anixias
Member
Now, I'm already aware of what I should probably do. Have a TCP socket that the clients use to connect to the server and send information that needs to be reliably sent, and also have a UDP socket that they send pretty much everything else through.
Well, my game is 100% UDP at the moment, and I even have connections, disconnections, and timeouts built in. But, now that I'm allowing custom graphics and stuff to be sent to the server, I need it to be more reliably sent. I need to use TCP. So, is it possible to use TCP without setting up connections? Or should I delete my current connection/disconnection/timeout code and replace it all with TCP?
Or can this be done in a different way? Is my idea completely wrong? Thanks for reading.
EDIT:
Just had a thought.
Would the server have to call network_create_server twice? Once for UDP and once for TCP?
Well, my game is 100% UDP at the moment, and I even have connections, disconnections, and timeouts built in. But, now that I'm allowing custom graphics and stuff to be sent to the server, I need it to be more reliably sent. I need to use TCP. So, is it possible to use TCP without setting up connections? Or should I delete my current connection/disconnection/timeout code and replace it all with TCP?
Or can this be done in a different way? Is my idea completely wrong? Thanks for reading.
EDIT:
Just had a thought.
Would the server have to call network_create_server twice? Once for UDP and once for TCP?
Last edited: