Forum Discussion
Altera_Forum
Honored Contributor
15 years agoInterNiche 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
Honored 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.