Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 29th July 2007, 09:44   #1
empezar
Senior Member
 
empezar's Avatar
 
Join Date: Sep 2003
Location: Sweden
Posts: 114
timeout using inetc?

how do i set a timeout using inetc? the manual says "/TIMEOUT INT_MS", but this doesn't seem to work:

inetc::get /NOUNLOAD /CAPTION "Initializing..." /BANNER "nQuake is initializing, please wait..." /TIMEOUT 5000 "${INSTALLER_URL}/nquake.ini" $NQUAKE_INI /END

I've tried using other values (even down to 1) but it never seems to timeout, unless timeout means "retry" or something?
empezar is offline   Reply With Quote
Old 29th July 2007, 10:36   #2
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,220
There are few timeout settings for http connection (like INTERNET_OPTION_DATA_RECEIVE_TIMEOUT), inetc sets
code:
if(timeout > 0)
lastCnt = InternetSetOption(hSes, INTERNET_OPTION_CONNECT_TIMEOUT, &timeout, sizeof(timeout));

only. BTW if $NQUAKE_INI not includes path, current folder will be used use. And "$NQUAKE_INI" may be better if path included.
Takhir is offline   Reply With Quote
Old 29th July 2007, 11:06   #3
empezar
Senior Member
 
empezar's Avatar
 
Join Date: Sep 2003
Location: Sweden
Posts: 114
$NQUAKE_INI is a temporary file (full path).

so what you're saying is that /TIMEOUT only sets ONE out of A FEW timeout settings, and basically if /TIMEOUT doesn't work for me, i'm screwed?
empezar is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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