- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page