proxy / signal if process terminates

Hi,

i write a client server application over a network and look for a smart
way to determine if the server still running.

I have a server application on node A and a client application on node
B. Normal the client create a virtual proxy on node A and send a
message to the with this proxy id to the server application. After that
the client Application waits on one on different messages.

One way to look if the server runs is to send dummy messages in cycle
times but that use the network mach often.

Is it possible to get a proxy or a signal if network goes down or the
task terminates or is it enough to use qnx_psinfo() on local node.

Dieter Schemmelmann

Dieter@Schemmelmann.de

“Dieter Schemmelmann” <dieschemm@t-online.de> wrote in message
news:3C512334.A7F60714@t-online.de

Hi,

i write a client server application over a network and look for a smart
way to determine if the server still running.

I have a server application on node A and a client application on node
B. Normal the client create a virtual proxy on node A and send a
message to the with this proxy id to the server application. After that
the client Application waits on one on different messages.

One way to look if the server runs is to send dummy messages in cycle
times but that use the network mach often.

Is it possible to get a proxy or a signal if network goes down or the
task terminates or is it enough to use qnx_psinfo() on local node.

One idea is to have a heartbeat app that will drop a signal on your client
after a threshold number of heartbeats have been missed.


Cheers,
Adam

QNX Software Systems Ltd.
[ amallory@qnx.com ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>

Hi,

You can use a “starter” process which spawns your server and then
waits for SIGCHLD. When it gets SIGCHLD it can send a message
to the client (of course the client should think of a way to inform this
starter process about itself), or even better restarts the server.

“Dieter Schemmelmann” <dieschemm@t-online.de> ???/??? ? ???
???: news:3C512334.A7F60714@t-online.de

Hi,

i write a client server application over a network and look for a smart
way to determine if the server still running.

I have a server application on node A and a client application on node
B. Normal the client create a virtual proxy on node A and send a
message to the with this proxy id to the server application. After that
the client Application waits on one on different messages.

One way to look if the server runs is to send dummy messages in cycle
times but that use the network mach often.

Is it possible to get a proxy or a signal if network goes down or the
task terminates or is it enough to use qnx_psinfo() on local node.

Dieter Schemmelmann

Dieter@Schemmelmann.de