Network protocol for strategy game.

I’m planing a strategy game not played in real time, each player can do many moves during its turn.

To complicate things, I will let the players to make its moves in paralell until the end of the turn (time based).

The problem is how to send the “end turn” message to the players.

the clients are sending mesagges to the server…
but are not waiting for responses…
even if they are waiting… when do they wait?? and when do they send the commands to the server???

What is better to use??
Sockets or NIO??
Reading from the tutorials, I haven’t found a way to use NIO to solve my problem.

I’ll try to post a bit of code for the game, in which each player takes its turn until it sends the “end turn” to the server.

But I want to make them play in paralell.

Rafael.-

Sorry for my grammar and spelling, since English is not my native language.