Re: Timers & socket select
- From: Richard Heathfield <rjh@xxxxxxxxxxxxxxx>
- Date: Fri, 27 Jul 2007 10:47:05 +0000
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
.
- Follow-Ups:
- Re: Timers & socket select
- From: Richard
- Re: Timers & socket select
- References:
- Timers & socket select
- From: InuY4sha
- Re: Timers & socket select
- From: Jens Thoms Toerring
- Re: Timers & socket select
- From: InuY4sha
- Timers & socket select
- Prev by Date: Re: A good compiler
- Next by Date: Re: how to suppress "indent" from performing functions not specified in the options?
- Previous by thread: Re: Timers & socket select
- Next by thread: Re: Timers & socket select
- Index(es):
Relevant Pages
|
|