mirror of
https://github.com/modelec/TCPSocketServer.git
synced 2026-01-18 16:37:29 +01:00
handle tirette message to send it to the ihm
This commit is contained in:
@@ -109,7 +109,10 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket)
|
||||
}
|
||||
if (tokens[1] != "strat")
|
||||
{
|
||||
std::cout << "Broadcast message" << std::endl;
|
||||
this->broadcastMessage(message.c_str(), clientSocket);
|
||||
}
|
||||
if (tokens[0] == "tirette" && tokens[1] == "set state")
|
||||
{
|
||||
this->broadcastMessage(message.c_str(), clientSocket);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user