Subj : Re: Threading and Timeouts To : comp.programming.threads From : Casper H.S. Dik Date : Wed Jul 20 2005 01:55 pm Giancarlo Niccolai writes: >MC wrote: >> Thanks to both for your replies! I probably should have mentioned >> that I'm not using sockets--I'm using the Windows Internet (WinINet) >> API so, although I don't know much about select()/poll(), I'm guessing >> those are not an option for me. I do like the suggestion of just >> letting the synchronous call complete normally after the timeout. >> I'll try that. >Select works with WinSocks too, although with a couple of minor, irrelevant >differences (i.e. the first parameter, that is, maxfd + 1, is ignored). That's not really a irrelevant difference; the caller of select is free to put garbage in the sets past the index of maxfd. Casper -- Expressed in this posting are my opinions. They are in no way related to opinions held by my employer, Sun Microsystems. Statements on Sun products included here are not gospel and may be fiction rather than truth. .