mirror of
https://github.com/modelec/TCPSocketServer.git
synced 2026-03-28 10:29:43 +01:00
update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user