pour être sûr
This commit is contained in:
parent
e2dbf52b17
commit
6ce7e62e05
@ -59,10 +59,10 @@ int Connector::Connect(const char* srv_addr, std::string name) {
|
|||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
u_long flag = 1;
|
u_long flag = 1;
|
||||||
#else
|
|
||||||
uint64_t** flag = nullptr;
|
|
||||||
#endif
|
|
||||||
if (ioctl(m_sock_tcp, SOCK_NONBLOCK, &flag) < 0) {
|
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;
|
std::cout << "Impossible de mettre le socket en mode non-bloquant." << std::endl;
|
||||||
return 3;
|
return 3;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user