kopia lustrzana https://github.com/AlexandreRouma/SDRPlusPlus
fixed build
rodzic
208851ebc5
commit
7094368113
|
@ -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<Socket> sock, int value) {
|
||||
void Server::sendInt(std::shared_ptr<Socket> sock, int value) {
|
||||
char buf[128];
|
||||
sprintf(buf, "%d\n", value);
|
||||
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];
|
||||
sprintf(buf, "%lf\n", value);
|
||||
sock->sendstr(buf);
|
||||
|
|
Ładowanie…
Reference in New Issue