diff --git a/ModelecServer.cpp b/ModelecServer.cpp index b80e065..3cfe40c 100644 --- a/ModelecServer.cpp +++ b/ModelecServer.cpp @@ -7,7 +7,8 @@ ModelecServer::ModelecServer(int port) : TCPServer(port) void ModelecServer::handleMessage(const std::string& message, int clientSocket) { - if (startWith(message, "request robotPose")) + std::cout << "REceived message" << std::endl; + /*if (startWith(message, "request robotPose")) { this->broadcastMessage("robotPos 25 24 23 2"); } @@ -18,5 +19,5 @@ void ModelecServer::handleMessage(const std::string& message, int clientSocket) } else { std::cout << message << std::endl; - } + }*/ } diff --git a/ModelecServer.h b/ModelecServer.h index 0c713d6..d4e0b10 100644 --- a/ModelecServer.h +++ b/ModelecServer.h @@ -7,5 +7,5 @@ class ModelecServer : public TCPServer { public: ModelecServer(int port); - void handleMessage(const std::string& message, int clientSocket) override; + void handleMessage(const std::string& message, int clientSocket = -1) override; };