Thread: [Solved] Socket flag not work?
View Single Post
Author Message
wilian159
Member
Join Date: Dec 2013
Old 08-01-2023 , 22:32   Socket flag not work?
Reply With Quote #1

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.

Last edited by wilian159; 08-03-2023 at 01:42.
wilian159 is offline