Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12618 Discussions

InterNiche Stack select POSIX compliant?

Altera_Forum
Honored Contributor II
938 Views

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.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
235 Views

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.

0 Kudos
Reply