In my curses based game, I decided to add multiplayer functionality over net, in addition to one-keyboard mulitiplayer game. I use switch loop and in case it's 1st user's buttons, user 1 is acting appropriately and second otherwise, without blocking each other's movements i.e not waiting for opponents move. Now I read socket tutorials, and use server looking like this:
wait for 1st user to connect wait for 2nd user to connect
loop: read from 1st write to 2nd read from 2nd write to 1st
Now problem is obvious, players would block each others movements, how this network multiplayer problems solved in games design?