IPX/SPX Programming Manual

HP NonStop IPX/SPX Programming Manual528022-001
4-1
4 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 Section 5, Library Routines.
Library Headers
For NonStop IPX/SPX, the declarations of the functions in the socket library are
provided in C programming language only. Other languages can be used to interface to
the socket library, subject to C compiler restrictions.
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've included the headers listed in the
#include directives that precede the calling syntax for that routine (see the syntax
boxes in Section 5).
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 4-1 lists the C header files used by the NonStop IPX/SPX software.
Table 4-1. Summary of the C Header Files used by NonStop IPX/SPX
Header Files Contents
nameser.h Contains Internet name server information
netdb.h Structures returned by the network database library
param.h Describes system parameters
resolv.h Contains resolver global definitions and variables
socket.h Definitions related to sockets: types, address families, options
syscal.h Describes the socket call definitions
time.h Describes the time types (time related definitions)
uio.h Describes the user I/O data structures
user.h Describes User Information Data structures