ConnectServerInfo() for a remote node

Hi all

let’s say I’m a server running on node “foo”, handling a message sent by
a process running on another node (called “bar”, of course).

The client is sending me something which contains a struct sigevent,
needed for a MgsDeliverEvent() later, but I want to know the channel id
where it will receive the _pulse embedded into the sigevent.

The right function seems to be:

int ConnectServerInfo( pid_t pid, int coid, struct _server_info* info );

but the “pid” parameter has sense only for processes running on the same
node where the caller runs (i.e. “foo”, not “bar” or others).

Any hint?
Davide


/* Ancri Davide - */

Davide Ancri wrote:

Any hint?

$ ping -f

:wink:


/* Ancri Davide - */

Davide Ancri wrote:

$ ping -f

while true; do
ping -f who.give.an.answer &
done

Davide


/* Ancri Davide - */

No, there is simply no way to do what you want. Make you client send you
that information.

-xtang

Davide Ancri <falsemail@nospam.xx> wrote:

Hi all

let’s say I’m a server running on node “foo”, handling a message sent by
a process running on another node (called “bar”, of course).

The client is sending me something which contains a struct sigevent,
needed for a MgsDeliverEvent() later, but I want to know the channel id
where it will receive the _pulse embedded into the sigevent.

The right function seems to be:

int ConnectServerInfo( pid_t pid, int coid, struct _server_info* info );

but the “pid” parameter has sense only for processes running on the same
node where the caller runs (i.e. “foo”, not “bar” or others).

Any hint?
Davide

xtang@qnx.com wrote:

No, there is simply no way to do what you want. Make you client send you
that information.

Thanks!
Davide


/* Ancri Davide - */