From: Andi Kleen <ak-uu@muc.de>
Subject: Re: Unix SELECT Ada binding
Date: 1999/07/22
Date: 1999-07-22T14:22:53+00:00 [thread overview]
Message-ID: <m3k8rsu5ky.fsf@fred.muc.de> (raw)
In-Reply-To: 379638B1.101427E5@res.raytheon.com
Andy Askey <askeya@res.raytheon.com> writes:
> Has anyone created an Ada package with binding into the SELECT C library
> function that does I/O multiplexing? The binding is straight forward
> but there are several macros (FD_SET, FD_CLR, ...) that have to be
> translated into Ada.
[...]
Near all modern Unixes have poll(2), which is probably much easier to
bind to than select [and if you have to handle older OS versions you
can always link in one of the poll-on-select C wrappers). poll does also
scale bigger for huge number of file descriptors and doesn't add arbitary
fd limits to your program.
If you really want to use select I would recommend using a small C interface
layer which uses the FD_* macros.
-Andi
--
This is like TV. I don't like TV.
next prev parent reply other threads:[~1999-07-22 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-07-21 0:00 Unix SELECT Ada binding Andy Askey
1999-07-21 0:00 ` David C. Hoos, Sr.
1999-07-22 0:00 ` Andi Kleen [this message]
1999-07-22 0:00 ` Samuel T. Harris
1999-07-22 0:00 ` Gisle S�lensminde
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox