Go Back   FlashFXP Forums > >

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

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

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


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 01:05 AM.

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