Go Back   FlashFXP Forums > Community Chatter > Programming

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread
Old 04-06-2006, 09:42 AM   #1
Junior Member
 
Join Date: Jun 2004
Posts: 28
Default Asynchronously use connect() API

socket DataSocket = socket(AF_INET,SOCK_STREAM,0);
WSAAsyncSelect(DataSocket, Window, WM_TCPDATASOCKET,FD_CONNECT|FD_READ|FD_WRITE|FD_CL OSE);
connect(DataSocket, (const SOCKADDR *)&ServerAddress,sizeof(ServerAddress));

normally,the default time out for connect() is over 10 seconds,any way I can control the time out at 5 seconds other than 10+ seconds.

Thx
Syrinx is offline  
Old 04-06-2006, 05:32 PM   #2
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 558
Default

How about using setsockopt? I mean you can set the timeout time with that function.
FTPServerTools is offline  
Old 04-07-2006, 03:19 PM   #3
Junior Member
 
Join Date: Jun 2004
Posts: 28
Default

not work on that situation
Syrinx is offline  
Closed Thread
Create a free account to browse our forums without ads



Thread Tools
Rate This Thread
Rate This Thread:

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 11:28 AM.