Dean Douthat <email@example.com> wrote:
Use select to monitor socket traffic and _select_receive to handle QNX
messages “underneath” the select.
That is one choice.
Another is to set your sockets to signal you when there is data to read
available on them, attach a signal handler that triggers a proxy when
that signal comes in, then write your receive loop as:
pid = Receive()
while (pid == -1 && errno == EINTR)
if (pid = signal_proxy)
Depends on whatever will give you a happier structure.
“Brown, Richard” wrote:
How does one integrate socket communication with QNX message passing?
I would like to create a application that blocks in a main Receive loop
until either a QNX message is received or a socket is ready. Can someone
provide an example of how this is accomplished.
QNX Training Services
I do not answer technical questions by email.