TCP/IP Programming Manual

Sample TCP/IP programs have been moved to this manual from the TCP/IP and IPX/SPX
Programming Manual in Chapter 5 (page 208).
Other minor changes have been made to the manual to incorporate the Parallel Library TCP/IP
subsystem.
G06.22 RVU Update (December 2003, 524521-002)
Information about using sockets in both the conventional NonStop TCP/IP and NonStop
TCP/IPv6 environments has been added. (See Using NonStop TCP/IP and NonStop TCP/IPv6
or Parallel Library TCP/IP (page 24).)
The limitations of raw-socket support for NonStop TCP/IP have been documented. (See
Programmatic Interface to Raw Sockets (page 41).)
Information about using the new logical network partitioning feature has been added. (See
Multiple NonStop TCP/IP Processes and Logical Network Partitioning (LNP) (NonStop TCP/IPv6,
H-Series and G06.22 and Later G-Series RVUs Only) (page 43) and accept_nw2 (page 95).)
Procedures for determining process names has changed. (See Process Names (page 43).)
New TCP retransmission timers have been documented (getsockopt, getsockopt_nw (page 128)
and setsockopt, setsockopt_nw (page 184)).
The buffer size for SO_RCVBUF and SO_SNDBUF has been corrected for NonStop TCP/IPv6.
(See Usage Guidelines for setsockopt, setsockopt_nw (page 184).)
Considerations for the use of sock_close_reuse_nowait have been added
(sock_close_reuse_nw (page 190)).
The setsockopt level definitions have been reorganized to separate IPROTO_IP and
IPPROTO_IPV6 (setsockopt, setsockopt_nw (page 184)).
More information has been added to the error message EACCES (4013) in Appendix B
(page 243). In addition, this error has been added to sendto (page 177) and sendto_nw
(page 180).
Use of the word subnet has been clarified to distinguish between the generic-networking term
and the NonStop TCP/IPv6 SCF object. See Notation for Subnet (page 19).
G06.20 RVU Update (May 2003, 524521-001)
This manual was new for the G06.20 RVU.
Document Organization
This document is organized as follows:
Chapter 1 (page 23) provides an overview of the three HP NonStop TCP/IP subsystems, some
TCP/IP fundamentals, considerations for programming in the Guardian environment, and
information about multicasting and multiplexing.
Chapter 2 (page 49) provides procedures for porting your applications for IPv6 use or
protocol-independence and procedures for developing new IPv6 applications.
Chapter 3 (page 62) provides the definitions of the Guardian sockets library data structures.
Chapter 4 (page 81) provides the definitions and usage guidelines for the Guardian sockets
library routines.
Chapter 5 (page 208) provides sample server and client code for both IPv4 and IPv6.
Appendix A (page 241) lists the protocol numbers most commonly used with the raw socket
(IP) interface, together with the names that you can use for these protocols in programs.
Appendix B (page 243) describes the error conditions for the socket routines and explains how
a program can recover from the errors.
Document Organization 15