TCP/IP Programming Manual
3 Data Structures
This section describes the library header files and the data structures declared in the headers. The
function declarations and data structures contained in the header files are used by the socket library
routines described in Chapter 4.
Library Headers
The declarations of the functions in the socket library are provided in both C and TAL programming
languages. Other languages can be used to interface to the socket library, subject to C compiler
restrictions.
NOTE: Use the Common Run-Time Environment (CRE) when developing TAL socket applications.
CRE is described in the CRE Programming Manual.
All TAL declarations are in the $SYSTEM.ZTCPIP.SOCKDEFT file.
Each C header contains declarations for a related set of library functions, as well as constants and
structures that enhance that set. When you use a routine in the socket library, you must first make
sure that you have included the headers listed in the #include directives that precede the calling
syntax for that routine (see the syntax boxes in Chapter 4).
You should not declare the routine itself because the header files contain declarations for the
routines. Header declarations include directives stating whether you are compiling for the
large-memory model or the wide-data model.
The socket library header files are supplied in the subvolume, $SYSTEM.ZTCPIP.
Table 10 lists the NonStop TCP/IP, Parallel Library TCP/IP, and NonStop TCP/IP C header files
and their contents. (TCP/IP/PL in this table denotes Parallel Library TCP/IP.)
NOTE: Parallel Library TCP/IP is only available on NonStop S-series servers.
Table 10 Summary of C Header Files and Contents
ContentsSubsystemHeader Files
Structures defining the network-level interfaceif.h TCP/IP,
TCP/IP/PL,
TCP/IPv6
Constants and structures defined by the Internet systemin.h TCP/IP,
TCP/IP/PL,
TCP/IPv6
Constants and structures for IPv6.TCP/IPv6in6.h
I/O control definitionsioctl.h TCP/IP,
TCP/IP/PL,
TCP/IPv6
Structures returned by the network database librarynetdb.h TCP/IP,
TCP/IP/PL,
TCP/IPv6
Definitions related to routing tablesroute.h TCP/IP,
TCP/IP/PL,
TCP/IPv6
Definitions related to sockets: types, address families, optionssocket.h TCP/IP,
TCP/IP/PL,
TCP/IPv6
62 Data Structures