|
Is there a procedure or thread that gives me the clnt handle status?
No but you can call procedure number 0 for this. This proc 0 exists for all rpc application. This call must be in the same thread with the client object thread, otherwise, the communication with the server will be disrupted
if (clnt_call (clnt, 0, xdr_void, NULL, xdr_void, NULL, tv) == RPC_SUCCESS)
else
You need to destroy the client and create a new client object
if the return indicates the connection is closed. You must
be sure that there are no other rpc calls ongoing for
that client when you make the proc 0 call. Otherwise, the
rpc call will return error even when the connection is ok.
|
|
|