Raised This Month: $ Target: $400
 0% 

Solved Socket flag not work?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode