Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

InterNiche Stack select POSIX compliant?

I'm trying to modifying the SimpleSocketServer example. There is a select system call which operates on sockets. I also passed it stdin which appeared appeared to work but I am getting some strange behavior. I looked briefly at the code implementing select and related functions, and it looks specific to sockets. Is this actually the case?

If so, how can I do asynchronous IO. I want to listen to a socket and stdin.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    IIRC you are right and the select call is specific to the Interniche stack. If you want to listen to both stdin and a socket, it may be easier to do it from two different threads.