mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-10 04:37:37 +01:00
fixed bug in spyserevr source
This commit is contained in:
parent
720df5ce89
commit
eec2f7c4a0
@ -74,7 +74,7 @@ bool SpyServerClient::connectToSpyserver(char* host, int port) {
|
|||||||
unsigned long mode = 1;
|
unsigned long mode = 1;
|
||||||
ioctlsocket(sock, FIONBIO, &mode);
|
ioctlsocket(sock, FIONBIO, &mode);
|
||||||
#else
|
#else
|
||||||
fcntl(sockfd, F_SETFL, fcntl(sockfd, F_GETFL, 0) | O_NONBLOCK)
|
fcntl(sockfd, F_SETFL, fcntl(sockfd, F_GETFL, 0) | O_NONBLOCK);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
connected = true;
|
connected = true;
|
||||||
@ -117,7 +117,7 @@ int SpyServerClient::receive(char* buf, int count) {
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
return checkError(recv(sock, (char*)buf, count, 0), count);
|
return checkError(recv(sock, (char*)buf, count, 0), count);
|
||||||
#else
|
#else
|
||||||
return checkError(read(sockfd, buf, count));
|
return checkError(read(sockfd, buf, count), count);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user