Go Back   FlashFXP Forums > >

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

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 04-06-2006, 09:42 AM   #1
Syrinx
Junior Member
 
Join Date: Jun 2004
Posts: 25
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
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
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
Syrinx
Junior Member
 
Join Date: Jun 2004
Posts: 25
Default

not work on that situation
Syrinx is offline  
Closed Thread

Tags
api, connect, control, seconds, time, asynchronously

Thread Tools
Display Modes 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

Forum Jump


All times are GMT -5. The time now is 10:08 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)