8 Communications Server for z/OS V1R7 TCP/IP Implementation, Volume 1 - Base Functions, Connectivity, and Routing
Pascal API
The Pascal application programming interface enables you to develop TCP/IP applications in
Pascal language. Supported environments are normal MVS address spaces. Unlike the other
APIs, the Pascal API does not interface directly with the LFS. It uses an internal interface to
communicate with the TCP/IP protocol stack. The Pascal API only supports AF_INET.
TCP/IP socket APIs
The z/OS V1R7 Communications Server provides several APIs to access TCP/IP sockets.
These APIs can be used in either or both integrated and common INET PFS configurations.
In a common INET PFS configuration, however, they function differently from z/OS UNIX
APIs. In this type of configuration, the z/OS Communications Server APIs always bind to a
single PFS transport provider, and the transport provider must be the TCP/IP stack provided
by the z/OS V1R7 Communications Server. The following TCP/IP socket APIs are included in
the z/OS V1R7 Communications Server:
? The CICS socket interface enables you to write CICS applications that act as clients or
servers in a TCP/IP-based network. CICS sockets only support AF_INET.
? The C sockets interface supports socket function calls that can be invoked from C
programs. However, note that for C application development, IBM recommends the use of
the UNIX C sockets interface. These programs can be ported between MVS and most
UNIX environments relatively easily if the program does not use any other MVS-specific
services. C sockets only support AF_INET.
? The Information Management System (IMS) IPv4 socket interface supports client/server
applications in which one part of the application executes on a TCP/IP-connected host
and the other part executes as an IMS application program. The IMS sockets API
supports AF_INET.
? The Sockets Extended macro API is a generalized assembler macro-based interface to
sockets programming. The Sockets Extended macro API supports AF_INET and
AF_INET6.
? The Sockets Extended Call Instruction API is a generalized call-based, high-level
language interface to sockets programming. The Sockets Extended Call Instruction API
supports AF_INET and AF_INET6.
z/OS UNIX APIs
The following APIs are provided by the z/OS UNIX element of z/OS and are supported by the
TCP/IP stack in the z/OS V1R7 Communications Server:
? z/OS UNIX C sockets is used in the z/OS UNIX environment. It is the z/OS UNIX version
of the native MVS C sockets programming interface. Programmers use this API to create
applications that conform to the POSIX or XPG4 standard (a UNIX specification). The
z/OS UNIX C sockets support AF_INET and AF_INET6.
? z/OS UNIX assembler callable services is a generalized call-based, high-level language
interface to z/OS UNIX sockets programming. The z/OS UNIX assembler callable services
support AF_INET and AF_INET6.
Refer to the z/OS V1R7.0 XL C/C++ Compiler and Run-Time Migration Guide for the
Application Programmer CBCMG140 06/28/05 16:05:01, GC09-4913-03, for complete
documentation of the z/OS UNIX C sockets APIs and refer to z/OS V1R7.0 UNIX System
Services Programming Tools BPXZA640 05/03/05 16:19:37, SA22-7805-04 .
REXX sockets
The REXX sockets programming interface implements facilities for socket communication
directly from REXX programs by using an address rxsocket function. REXX socket programs