Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Aug 2008 18:14:33 -0700 (PDT)
From:      Nate Eldredge <neldredge@math.ucsd.edu>
To:        Chuck Robey <chuckr@telenix.org>
Cc:        FreeBSD-Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: read with timeout ??
Message-ID:  <Pine.GSO.4.64.0808071813530.11980@zeno.ucsd.edu>
In-Reply-To: <489B9D4D.4010009@telenix.org>
References:  <489B9D4D.4010009@telenix.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 7 Aug 2008, Chuck Robey wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I have my head lost in a code problem.  I just hit a point where I need to do a
> read from an fd, but I need to associate it with a timeout, on the order of 1
> second, something like that.  I had the feeling that there's a function in
> FreeBSD's libc that makes that simple, but I forget the function name.  If
> anyone can remember something like what I'm talking about, I sure would
> appreciate a function name.  I can figure out how it works, if I could only
> dredge up that name.

man 2 select

-- 

Nate Eldredge
neldredge@math.ucsd.edu



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.64.0808071813530.11980>