From owner-freebsd-hackers Sat Jul 3 8:28:14 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (Postfix) with ESMTP id B516E14D92 for ; Sat, 3 Jul 1999 08:28:00 -0700 (PDT) (envelope-from green@unixhelp.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.9.2/8.8.7) with ESMTP id LAA34426; Sat, 3 Jul 1999 11:27:57 -0400 (EDT) Date: Sat, 3 Jul 1999 11:27:57 -0400 (EDT) From: "Brian F. Feldman" X-Sender: green@janus.syracuse.net To: Jonathan Lemon Cc: wayne@crb-web.com, hackers@FreeBSD.ORG Subject: Re: poll() vs select() In-Reply-To: <19990703083935.61252@right.PCS> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 3 Jul 1999, Jonathan Lemon wrote: > On Jul 07, 1999 at 01:01:07AM -0400, Brian F. Feldman wrote: > > On Fri, 2 Jul 1999, Jonathan Lemon wrote: > > > > As for new code, use whichever you are comfortable with. Personally, I > > > would recommend poll(), since it provides some added functionality over > > > select() that makes for easier programming. > > > > poll() is a huge pain to use, which is why I recommend select(). > > Whichever you're comfortable with. poll() isn't a pain once you know > how to use it, and it does bring additional benefits. I don't see how you can not find poll() a pain when compared to select(). It requires so much set-up, much like (for instance) aio_write() as opposed to write(). I suppose if you're masochistic, you won't mind doing that :) > -- > Jonathan > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > Brian Fundakowski Feldman _ __ ___ ____ ___ ___ ___ green@FreeBSD.org _ __ ___ | _ ) __| \ FreeBSD: The Power to Serve! _ __ | _ \._ \ |) | http://www.FreeBSD.org/ _ |___/___/___/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message