Re: Timers & socket select



InuY4sha said:

<off-topic>
See the documentation of select(), you can pass it a timeout
value as the last argument, making select() return when either
you can read from one of the file descriptors or the timeout
limit has been reached. So you don't need any extra timers. If
you need more details I or somebody else will answer your ques-
tions in comp.unix.programmer.
</off-topic>

Cool! This saves a lot of "extra researching"!!!! Thank you

No, it doesn't save you anything.

Jens (and if I am any judge of character, I think he will be the first
to agree with me here) may be mistaken, perhaps in a subtle way that
will bite you later. How will you know, except by finding some experts
in the field and checking with them? That may mean getting a good book
on the subject, or it may mean finding a newsgroup where your question
/is/ topical. Peer review on C questions here in comp.lang.c is first
class, but peer review on non-C questions is notoriously lacking.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
.



Relevant Pages

  • Re: Timers & socket select
    ... you can pass it a timeout ... So you don't need any extra timers. ... Jens (and if I am any judge of character, I think he will be the first ... but peer review on non-C questions is notoriously lacking. ...
    (comp.lang.c)
  • Re: Timers & socket select
    ... See the documentation of select, you can pass it a timeout ... So you don't need any extra timers. ... behind them also..excuse my ignorance:(] ...
    (comp.lang.c)
  • Re: rs232 -help!
    ... Okay, I never really found out how to set the comm timeout, however I got it ... I can read the port and the Read functon ... rs232 port asides from using the SerialWnd class.... ... posts from everyone, and then I read over the rs232 documentation, and then I ...
    (microsoft.public.vc.language)
  • Re: telnetlib close not closing sockets
    ... Telnetlib's documentation even clearly ... I'm not reaching timeout there. ... I have to say I'm much impressed with the python language, ... > Hello Mike, ...
    (comp.lang.python)
  • Re: setting socket connect timeout
    ... I am trying to write some production code based on: ... Does anyone know how to change the timeout? ... My documentation is quite old but it did contain a statement about timeouts just ...
    (comp.os.vms)