Hello everyone.
I have a problem that seems simple but I cannot figure out how to do it:
I have a server process that has created a channel by doing:
chid = name_attach(NULL, “name”, NAME_FLAG_ATTACH_GLOBAL);
then I have a client process that wants to send messages to the server. It
finds the connection id to the server by doing:
conid = name_open(“name”,NAME_FLAG_ATTACH_GLOBAL);
now my client also wants to find the processid of the server process. How?
I was for a while thinking that it could be ConnectClientInfo or
ConnectServerInfo but in the description of these it seems like they are
more for the server to find out things about the client!?
Anyone know how to do this?
regards, Mats P
Mats Pettersson <mats.pettersson@wavium.se> wrote:
Hello everyone.
now my client also wants to find the processid of the server process. How?
I was for a while thinking that it could be ConnectClientInfo or
ConnectServerInfo but in the description of these it seems like they are
more for the server to find out things about the client!?
I think the ConnectServerInfo() docs are a careless clone of the
ConnectClientInfo() docs. The comments in the header file re-inforce
this. Give it a try and see.
-David
QNX Training Services
dagibbs@qnx.com
Your are right. It works as expected.
Thanks, Mats P
“David Gibbs” <dagibbs@qnx.com> wrote in message
news:973jdi$hsk$2@nntp.qnx.com…
Mats Pettersson <> mats.pettersson@wavium.se> > wrote:
Hello everyone.
now my client also wants to find the processid of the server process.
How?
I was for a while thinking that it could be ConnectClientInfo or
ConnectServerInfo but in the description of these it seems like they are
more for the server to find out things about the client!?
I think the ConnectServerInfo() docs are a careless clone of the
ConnectClientInfo() docs. The comments in the header file re-inforce
this. Give it a try and see.
-David
QNX Training Services
dagibbs@qnx.com