William Hoey(deleted)
|
Server Termination detection from within the Client Process
|
William Hoey(deleted)
02/29/2008 3:12 PM
post5429
|
Server Termination detection from within the Client Process
I have a Client Server model sending and receiving both custom messages and pulses, on the server side I am using
name_attach and MsgReceive / MsgReceivePulse, on the client side I am using name_open and MsgSend / MsgSendPulse.
I am attempting to determine if the server has terminated, I plan to use critail process monitoring to restart the
server should it be terminated.
I would is possible rather not call name_open, MsgSendPulse, name_close every time I have message.
On the client side I was hoping to do something like this:
name_open()
for(;;)
{
….
….
….
….
status = MsgSendPulse_r()
if(status !=EOK)
{
if(status == EBADF)
{
name_open()
}
}
}
However MsgSendPulse_r always returns EOK, even when the server has been terminated and the entry in the namespace /dev/
name/local has been removed.
Any ideas how I can achieve this.
Regards
William
|
|
|