mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-02-03 05:14:44 +01:00
fixed build
This commit is contained in:
parent
208851ebc5
commit
7094368113
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user