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


svctcp_create()

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

Format

#include <rpc.h>
SVCXPRT *
svctcp_create(sock, send_buf_size, recv_buf_size)
int sock;
u_int send_buf_size;
u_int recv_buf_size;

Parameters

sock
Specifies the socket descriptor. If sock is RPC_ANYSOCK, a new socket is created. If the socket is not bound to a local TCP port, it is bound to an arbitrary port.
send_buf_size
Specifies the size of the send buffer. Specify 0 to choose the default.
recv_buf_size
Specifies the size of the receive buffer. Specify 0 to choose the default.

Usage

The svctcp_create() call creates a TCP-based service transport to which it returns a pointer. xprt—>xp_sock contains the transport socket descriptor. xprt—>xp_port contains the transport port number.

Return codes

NULL indicates failure.

Context

  • svcraw_create()
  • svcudp_create()

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014