Distinct offers Network Monitor, the ONLY natural language Protocol Analyzer, ONC RPC for C++, .NET and Java, and IntelliTerm, the fastest Terminal Emulator for TN3270, TN5250 and VT420 on the market.

Knowledge Base

   Products   Downloads   Sales   Support   About us
  Knowledge Base  Ask Cody  Manuals  Source Code Library  Resources



        
 
Is there a procedure or thread that gives me the clnt handle status?
 
Product: Distinct RPC for C, C++, DelphiTopic: GeneralLast updated: 3/31/2008
 
Q.: Is there a procedure or thread that gives me the clnt handle status?
A.: 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)
{
// ok
}
else
{
// error between client & server
}

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.
Do you find this information useful ?       Yes   No   Not Sure




Search by Keyword


If you did not find what you are looking for:


Products

 Packet Analyzer
The Distinct Network Monitor is a protocol analyzer for Windows that includes both packet sniffing and network traffic statistical analysis tools.

 Intelliterm
The Most Complete Terminal Emulator for TN3270, TN5250 and DEC VT220 to VT420

 RPC for C and C++
The Fastest Way to Port Your Existing Unix-RPC Applications to Windows

  7/24/2008   Legal notices | PRIVACY Policy | Networking News |         Page Last Modified: 3/31/2008