MsgDeliverEvent()

If a client send a request to be notified about an event, is it possible
to use MsgDeliverEvent() to notify it, even if the event can occur
several times in the time, or is it better to use MsgSendPulse().

Thanks,
Alain.

Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:

If a client send a request to be notified about an event, is it possible
to use MsgDeliverEvent() to notify it, even if the event can occur
several times in the time, or is it better to use MsgSendPulse().

MsgDelieveEvent() is prefered for server to client notification.
The “event” it delieved is comming from the client, it could be a
pulse, or a signal, as the client wish.

MsgSendPulse() need a connection from server to client (a backward
connection), which make things more complicate.

-xtang

Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:

If a client send a request to be notified about an event, is it possible
to use MsgDeliverEvent() to notify it, even if the event can occur
several times in the time, or is it better to use MsgSendPulse().

MsgDeliverEvent() can be used multiple time to deliver the event
multiple times. This is a normal and expected thing to do.

Problem with MsgSendPulse(), is the server now needs a connection
to the client…it may not have one.

For MsgDeliverEvent, it just needs the rcvid & the event – it has both
of them.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

Ok, thanks to both of you.
Alain.

David Gibbs wrote:

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:

If a client send a request to be notified about an event, is it possible
to use MsgDeliverEvent() to notify it, even if the event can occur
several times in the time, or is it better to use MsgSendPulse().


MsgDeliverEvent() can be used multiple time to deliver the event
multiple times. This is a normal and expected thing to do.

Problem with MsgSendPulse(), is the server now needs a connection
to the client…it may not have one.

For MsgDeliverEvent, it just needs the rcvid & the event – it has both
of them.

-David