Original Post
Hi folks,
I want to create a multiplayer game. The clients can communicate with the server with different messages for example "move object x", "send chat msg to all", "send chat msg to x", "request stats".
what is best:
1. Having clients creating a single tcp connection to the server and then so all communication with that conection, but requiring some kind of message type code in the packet
OR:
2. Having clients creating a connection for each message type.
How would you solve it?
I want to create a multiplayer game. The clients can communicate with the server with different messages for example "move object x", "send chat msg to all", "send chat msg to x", "request stats".
what is best:
1. Having clients creating a single tcp connection to the server and then so all communication with that conection, but requiring some kind of message type code in the packet
OR:
2. Having clients creating a connection for each message type.
How would you solve it?