Click here to Skip to main content
Sign Up to vote bad
good
See more: CInternet
hi...
i am using internet functions of WinInet. when i use internet read file then it is getting timed out.so i want to set the time interval from my program.so can any one plz help regarding the same......
Posted 7 May '12 - 18:02


1 solution

After the InternetOpen() call,
 
HINTERNET internet_session = InternetOpen(your.args.....);
 
DWORD rec_timeout = 300 * 1000;					// override the 30 second timeout
InternetSetOption(internet_session, INTERNET_OPTION_RECEIVE_TIMEOUT, &rec_timeout, sizeof(rec_timeout));
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 253
1 Rohan Leuva 220
2 Mahesh Bailwal 190
3 Abhinav S 168
4 Sergey Alexandrovich Kryukov 162
0 Sergey Alexandrovich Kryukov 8,528
1 OriginalGriff 6,819
2 CPallini 3,643
3 Rohan Leuva 2,923
4 Maciej Los 2,288


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 8 May 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid