I use name_attach() in the server and MsgReceive() from mulitiple clients.
The clients connect to the server using the name_open() function. I can send
messages from the clients with MsgSend() and replies from the server with
MsgReply().
My question is, can the server send messages to the clients. I’ve tried
MsgSendPulse() and MsgSend() with no luck ? What coid values should I be
using, thats if this will work ?
Now I have managed to get a pulse sent to the client via the
MsgDeliverEvent() which in turn can cause the client to send and then
receive a reply. This does work. Is this the only way of doing this type of
message passing ?
I have not setup the code as a resource manager its more like the QNX 4 type
message passing setup at the present time.
Also as far as the QNX docs go under the MsgDeliverEvent() function there is
a client / server example that does work, however I think the server should
do a MsgReply() to the client before it sends the pulse event, as the
MsgSend() function is expecting a reply. The reason it works at the present
time is due to the server exiting, a while loop around the MsgReceive() and
MsgReceivePulse() soon shows the client is in the REPLY blocked state.
Any help here on the server / client arrangement is greatly appreciated,
Brett.