Creates a Transmission Control Protocol/Internet Protocol (TCP/IP) service transport handle.
#include <rpc/rpc.h>
SVCXPRT *svctcp_create (sock, sendsz, recvsz) int sock; u_int sendsz, rcvcsz;
The svctcp_create subroutine creates a Remote Procedure Call (RPC) service transport handle based on TCP/IP and returns a pointer to it.
Since TCP/IP remote procedure calls use buffered I/O, users can set the size of the send and receive buffers with the sendsz and recvsz parameters, respectively. If the size of either buffer is set to a value of 0, the svctcp_create subroutine picks suitable default values.
Upon successful completion, this subroutine returns a valid RPC service transport handle. If unsuccessful, it returns a value of null.
This subroutine is part of Base Operating System (BOS) Runtime.
The registerrpc subroutine, svcudp_create subroutine.
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 Communications Programming Concepts.
Sockets Overview in AIX Communications Programming Concepts.