This commit is contained in:
ackimixs
2024-03-27 17:36:07 +01:00
parent 7f7be76779
commit 26eb39087e

View File

@@ -8,6 +8,7 @@ MyClient::MyClient(const char* host, int port) : TCPClient(host, port), tiretteS
void MyClient::handleMessage(const std::string& message)
{
std::cout << "Message received : " << message << std::endl;
std::vector<std::string> messageSplited = split(message, ";");
// if get tirette => send tiretteState
if (messageSplited[1] == "tirette")