Click here to Skip to main content
15,878,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

1 solution

After the InternetOpen() call,

C++
HINTERNET internet_session = InternetOpen(your.args.....);


C++
DWORD rec_timeout = 300 * 1000;					// override the 30 second timeout
InternetSetOption(internet_session, INTERNET_OPTION_RECEIVE_TIMEOUT, &rec_timeout, sizeof(rec_timeout));
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900