linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Lejanson C. Go" <lejanson@ntsp.nec.co.jp>
To: linux-c-programming@vger.kernel.org
Subject: question on select.
Date: Thu, 18 Dec 2003 09:17:20 +0800	[thread overview]
Message-ID: <3FE10020.6050200@hq.ntsp.nec.co.jp> (raw)


hello good day.
i have a question about the select()
function.

when should we set timeout parameter
into NULL? what is the difference of
putting timeout (0, 0) OR putting NULL
as parameter?

--
while(1) {
   tv.sec = 0;
   tv.usec = 0;
   sel = select(fd+1, &rdfd, NULL, NULL, &tv);
}
--
--
while(1) {
   sel = select(fd+1, &rdfd, NULL, NULL, NULL);
}
--

thanks a lot.


lejanson








             reply	other threads:[~2003-12-18  1:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-18  1:17 Lejanson C. Go [this message]
2003-12-18  3:53 ` question on select Glynn Clements

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FE10020.6050200@hq.ntsp.nec.co.jp \
    --to=lejanson@ntsp.nec.co.jp \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).