I’m not authoritative on this subject, but perhaps I can “point you in the
right direction”: check out the documentation of the select() call. It
refers to an internal function called select_receive() which might help.
(It involves using proxies.)
Another way is to fork a dedicated child process which does a dedicated
recv() on the TCP socket and sends the received data to it’s parent. (On
other systems one might use a thread for this purpose, but threads aren’t
very well supported on QNX4.)
I think there are other ways using (undocumented) QNX4 internals which
I’ll leave to the gurus to comment on.
John Christini <firstname.lastname@example.org> wrote:
Can anyone point me in the right direction here?
I want to receive standard QNX messages using the Receive() call and also
unblock on the Receive() when data arrives at a TCP socket (for which you
would normally call recv()).
qnx_proxy_attach and dev_arm don’t seem to work with the socket fd, so can
anyone tell me if it can be done and how it is done?
Thanks in advance.