I newbie to forum and game programming but I have a question( probably dummy question...)
I am working on a multiplayer game like a Checkers.
My architecture goes like this:
After both client sign in to game, and ready to go,
each client, in his turn makes a 'move', and send it to server to authorize it.
After server authorize movement, it then send 2 message:
1) first one for the player which make the 'move', telling him its move is granted and it now should 'wait' for the other opponent to play.
2) second message, goes to opponent, telling him what soldier move, and that now it his 'turn' to play.... bla bla bla
my silly question is: When a each client sign-in to game, a new socket created for him for communicating with server
How can I use the socket for BOTH, sending messages to server(like movement), and also for listening to responses from server(like 'your turn', 'wait'...)
is it possible or I should create another socket for 'listening' ?
Thanks for the help
Edited by YyYo, 15 May 2014 - 01:18 PM.