select, select_receive, and tcpip message porting

I am porting a QNX 4 system to QNX 6.2.1 patch B. Under QNX 4, select
and select_receive was used to handle receiving QNX messages and
tcp/ip messages in the same process. That isn’t possible under QNX 6.

I’ve tried using io_notify on the socket fd to send MsgReceive a pulse
when data comes in on the socket. That works fine. However, I don’t
get a pulse when there is a connection pending (before the call to
accept).

Could some one give me a pointer in the proper direction on how to
port the select / select_receive combination to QNX 6? I’m working on
the server side of the program.

Thanks,
Mark

Mark Dornbush <mark.NOdornbushSPAM@bepco.com> wrote:

I am porting a QNX 4 system to QNX 6.2.1 patch B. Under QNX 4, select
and select_receive was used to handle receiving QNX messages and
tcp/ip messages in the same process. That isn’t possible under QNX 6.

I’ve tried using io_notify on the socket fd to send MsgReceive a pulse
when data comes in on the socket. That works fine. However, I don’t
get a pulse when there is a connection pending (before the call to
accept).

Could some one give me a pointer in the proper direction on how to
port the select / select_receive combination to QNX 6? I’m working on
the server side of the program.

Look at select_attach(). It will let you do a select() call within the
dispatch framework.

chris


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/