Pulese between processes

How can I, simply, send pulses between processes without having the pid of
either process.

What can name_attach, name_open etc be used for, can they help??

Liam <liam.mcdermott@nuigalway.ie> wrote:

How can I, simply, send pulses between processes without having the pid of
either process.

What can name_attach, name_open etc be used for, can they help??

They are exactly what you need. The process that is going to receive
pulses can do a “name_attach()” to register a name, then you use the
chid from that call for all your MsgReceive() calls. Any process that
wants to send it messages or pulses does a name_open() on that name,
and then does a MsgSendPulse() or MsgSend() to the coid returned by
the name_open().

-David

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

Cheers. That works. Aren’t newsgroups great!

“David Gibbs” <dagibbs@qnx.com> wrote in message
news:be1jon$m66$1@nntp.qnx.com

Liam <> liam.mcdermott@nuigalway.ie> > wrote:
How can I, simply, send pulses between processes without having the pid
of
either process.

What can name_attach, name_open etc be used for, can they help??

They are exactly what you need. The process that is going to receive
pulses can do a “name_attach()” to register a name, then you use the
chid from that call for all your MsgReceive() calls. Any process that
wants to send it messages or pulses does a name_open() on that name,
and then does a MsgSendPulse() or MsgSend() to the coid returned by
the name_open().

-David

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

Liam wrote:

Cheers. That works. Aren’t newsgroups great!

They are indeed great, especially when dagibbs answers your question :slight_smile:

Rennie