Socket flag not work?

Сообщения
37
Реакции
-3
if I try to connect the socket with the flag "SOCK_NON_BLOCKING" it doesn't connect and I get error

3: - Couldn't connect

but if I connect without flag the connection is successful, why?

Work: socket_open("127.0.0.1", "1337", SOCKET_TCP, xError, 0)
Not work: socket_open("127.0.0.1", "1337", SOCKET_TCP, xError, SOCK_NON_BLOCKING)

Does anyone have any idea why one works and the other doesn't?

Socket error with flag SOCK_LIBC_ERRORS = 10035, but it's all right, I'm not sending any data before.
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу