fixed build

This commit is contained in:
AlexandreRouma 2023-02-08 01:19:11 +01:00
parent 208851ebc5
commit 7094368113

View File

@ -263,7 +263,7 @@ namespace net::rigctl {
} }
// Start handler thread // Start handler thread
std::thread acceptThread(&Server::acceptWorker, this); std::thread acceptThread(&Server::acceptWorker, this, sock);
acceptThread.detach(); acceptThread.detach();
} }
} }
@ -304,13 +304,13 @@ namespace net::rigctl {
sock->sendstr(buf); sock->sendstr(buf);
} }
void sendInt(std::shared_ptr<Socket> sock, int value) { void Server::sendInt(std::shared_ptr<Socket> sock, int value) {
char buf[128]; char buf[128];
sprintf(buf, "%d\n", value); sprintf(buf, "%d\n", value);
sock->sendstr(buf); sock->sendstr(buf);
} }
void sendFloat(std::shared_ptr<Socket> sock, double value) { void Server::sendFloat(std::shared_ptr<Socket> sock, double value) {
char buf[128]; char buf[128];
sprintf(buf, "%lf\n", value); sprintf(buf, "%lf\n", value);
sock->sendstr(buf); sock->sendstr(buf);