-
server-client question
I am working on a game project where server play against client. I made the client side send the server game information but I have problems with making the sever send to client simultaneously.
can anyone guide me how to do it? how many sockets I need? and a code example would be great.
-
You should need 2 sockets. One for each direction.
-
I think I have 2 directions: from client to server and from server to client.
Do I need 4 sockets in that case?
-
No, 2. One for each direction.