Is PtConnectorGetid()'s return value a channel id, i.e., can i use it with
ConnectAttach?
Is PtConnectionFindId() basically doing a ConnectAttach() and the return
value is a connection id I can use with MsgSend()?
There is an example in the docs “Interprocess Communication/Sending QNX
messages” that uses a variable “coid” that is undefined.
Markus
Markus Loffler <loffler@ces.clemson.edu> wrote:
Is PtConnectorGetid()'s return value a channel id, i.e., can i use it with
ConnectAttach?
No. If it were, the client would also need to know the pid from
somewhere, which would defeat the purpose of having connectors.
Is PtConnectionFindId() basically doing a ConnectAttach() and the return
value is a connection id I can use with MsgSend()?
No. Just like the prototype says, the return value is a pointer.
PtConnectionFindId() sends a message to Photon that returns the pid and
the channel id. Then, PtConnectionFindId() calls ConnetcAttach(), sends
an initial message, stores the connection id and some other things in an
allocated structure, and returns the pointer to this structure.
The layout of this structure is not documented or even available in a
public header because it changes from time to time.
There is an example in the docs “Interprocess Communication/Sending QNX
messages” that uses a variable “coid” that is undefined.
–
Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.