mirror of
https://github.com/modelec/TCPSocketServer.git
synced 2026-01-19 00:47:36 +01:00
cin
This commit is contained in:
@@ -98,13 +98,7 @@ void TCPServer::acceptConnections()
|
||||
|
||||
void TCPServer::handleMessage(const std::string& message, int clientSocket)
|
||||
{
|
||||
if (message.find("request robotPose") != std::string::npos)
|
||||
{
|
||||
broadcastMessage("robotPose 12 13 14 15");
|
||||
} else if (message.rfind("arucotags", 0) == 0)
|
||||
{
|
||||
std::cout << "Received aruco tag: " << message << std::endl;
|
||||
}
|
||||
std::cout << "Received: " << message << std::endl;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user