SQC-15_online #1

Merged
memartel_loc merged 349 commits from SQC-15_online into master 2023-12-10 17:41:26 -05:00
Showing only changes of commit a95dd02896 - Show all commits

View File

@ -57,12 +57,8 @@ int Connector::Connect(const char* srv_addr, std::string name) {
return 2;
}
#ifdef _WIN32
u_long flag = 1;
if (ioctl(m_sock_tcp, SOCK_NONBLOCK, &flag) < 0) {
#else
if (ioctl(m_sock_tcp, SOCK_NONBLOCK, NULL) < 0) {
#endif
std::cout << "Impossible de mettre le socket en mode non-bloquant." << std::endl;
return 3;
}