Is select() implemented?
eric.norum at usask.ca
Tue Nov 28 15:03:52 UTC 2000
"Alexander D. Tarkhov" wrote:
> Hello rtems users,
> I use RTEMS 4.0.0, mips64orion, p4650
> I have found some calls to
> int select(...)
> in /libnetworking source tree but I can't find select() implementation.
> No headers, no asm defines...
> Where is it?
> Or it is not supposed to be used?
Select() is implemented for sockets in RTEMS-4.5. It's a pretty
expensive call though. In many cases you would be better off starting a
thread for each socket and allowing the thread to block. Timeouts could
be handled with the setsockopt(). There are also lower-level
RTEMS-specific hooks for informing a task when a socket becomes ready.
Eric Norum eric.norum at usask.ca
Department of Electrical Engineering Phone: (306) 966-5394
University of Saskatchewan FAX: (306) 966-5407
More information about the users