I have a server that is built in the thread behind the client. Recently, I have encountered a problem that it is very difficult for me to find a solution, so I thought that I would ask for help.
There is a lobby on my server, there are many rooms in the lobby (all of them belong to users), and there are players in the rooms. Each room has an administrator, when the administrator wants to leave - the room is closed, and all users must return to the lobby.
Now I already have a working code, but there is a problem, I have no idea how to get other clients to leave the room. The code that executes in the stream is as follows:
while(in_lobby)
{
}
while(in_room)
{
}
while(in_game)
{
}
( , , , , ).
, DOES , while . ? recv(), .
, , ( - , ), ( , - , , ).
:
, ? , ( , - , , ), ?