Creates and returns a generic client handle.
#include <rpc/rpc.h>
CLIENT *clnt_create (host, prognum, versnum, protocol) char *host; unsigned prognum, versnum; char *protocol;
Creates and returns a generic client handle.
Remote Procedure Calls (RPC) messages transported by User Datagram Protocol/Internet Protocol (UDP/IP) can hold up to 8KB of encoded data. Use this transport for procedures that take arguments or return results of less than 8KB.
Note: When the clnt_create subroutine is used to create a RPC client handle, the timeout value provided on subsequent calls to clnttcp_call are ignored. Using the clnt_create subroutine has the same effect as using clnttcp_create followed by a call to clnt_control to set the timeout value for the RPC client handle. If the timeout paramater is used on the clnttcp_call interface, use the clnttcp_create interface to create the client handle.
Upon successful completion, this subroutine returns a client handle.
This subroutine is part of Base Operating System (BOS) Runtime.
The clnttcp_create subroutine, clntudp_create subroutine.
The clnt_control macro, clnt_destroy macro.
List of RPC Programming References.
TCP/IP Protocols in AIX Version 4.3 System Management Guide: Communications and Networks.
Remote Procedure Call (RPC) Overview for Programming in AIX Version 4.3 Communications Programming Concepts.