z/OS Communications Server: IP Programmer's Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


clnt_create()

z/OS Communications Server: IP Programmer's Guide and Reference
SC27-3659-02

Format

#include <rpc.h>
CLIENT *
clnt_create(host, prognum, versnum, protocol)
char *host;
u_long prognum;
u_long versnum;
char *protocol;

Parameters

host
Indicates the pointer to the name of the host where the remote program is.
prognum
Specifies the remote program number.
versnum
Specifies the version number of the remote program.
protocol
Indicates the pointer to the protocol, which can be either tcp or udp.

Usage

The clnt_create() call creates an RPC client transport handle for the remote program specified by (prognum, versnum). The client uses the specified protocol as the transport layer. Default timeouts are set, but they can be modified using clnt_control().

Return codes

NULL indicates failure.

Context

  • clnt_control()
  • clnt_destroy()
  • clnt_pcreateerror()
  • clnt_spcreateerror()
  • clnt_sperror()
  • clntraw_create()
  • clnttcp_create()
  • clntudp_create()

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014