diff --git a/core/src/utils/proto/rigctl.cpp b/core/src/utils/proto/rigctl.cpp index b9393aaa..33d11a7a 100644 --- a/core/src/utils/proto/rigctl.cpp +++ b/core/src/utils/proto/rigctl.cpp @@ -263,7 +263,7 @@ namespace net::rigctl { } // Start handler thread - std::thread acceptThread(&Server::acceptWorker, this); + std::thread acceptThread(&Server::acceptWorker, this, sock); acceptThread.detach(); } } @@ -304,13 +304,13 @@ namespace net::rigctl { sock->sendstr(buf); } - void sendInt(std::shared_ptr sock, int value) { + void Server::sendInt(std::shared_ptr sock, int value) { char buf[128]; sprintf(buf, "%d\n", value); sock->sendstr(buf); } - void sendFloat(std::shared_ptr sock, double value) { + void Server::sendFloat(std::shared_ptr sock, double value) { char buf[128]; sprintf(buf, "%lf\n", value); sock->sendstr(buf);