channels

Hallo all,

this question is maybe out of order in this area, but I don’t understand the
used technologie. I try to use ipc with channels and pulses between two
processes. The first creates a channel and made a connection with it. The
channelID is stored into shared memory. (in this case it is always 1 because
of the kernel-property to delete all undetached id’s in the system. The
second process is trying to connect to the channel but there is always an
error of non-existing channel. (error3). Are there some exemples of
connecting processes using channels and ConnectAttach() or related
functions.

thanks.

Dirk

this question is maybe out of order in this area, but I don’t understand the
used technologie. I try to use ipc with channels and pulses between two
processes. The first creates a channel and made a connection with it. The
channelID is stored into shared memory. (in this case it is always 1 because
of the kernel-property to delete all undetached id’s in the system. The
second process is trying to connect to the channel but there is always an
error of non-existing channel. (error3). Are there some exemples of
connecting processes using channels and ConnectAttach() or related
functions.

Just to make sure. You are storing the channel id (chid) and not the
connection id (coid) in the shared memory correct? How is the other process
getting the channel owner’s pid?

chris


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