Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - How to setup a server waiting for multiple inputs?: Page 1 of 3 (3 Items)
   
How to setup a server waiting for multiple inputs?  
Hi all,

I'm trying to code-up a process to wait for input from any one of multiple sources under Neutrino.  Some sources will be
 POSIX sockets (if all sources were 'sockets', the answer to my question would be 'use "select"') while others use QNX 
intrinsic messages (if all sources were QNX messages, the answer might be 'use MsgReceive').  In addition, I need to be 
able to timeout my wait.  How do I do all of that?

I've looked through the online, in the Foundry, in various documents (including "QNX Neutrino Resource Managers: Using 
MsgSend() and MsgReply()" and "Writing a Resource Manager"), and in "QNX Neutrino 2, A Guid for Realtime Programmers".  
I'm thinking that my solution might involve 'ionotify'.  I haven't, yet, but I'm thinking I'll check out the 'select' 
source code.

Thanks!