TCP/IP Programming Manual

About This Document
This manual describes application development for the NonStop TCP/IP, Parallel Library TCP/IP,
NonStop TCP/IPv6, and CIP subsystems using the HP Guardian socket library routines.
Supported Release Version Updates (RVUs)
TCP/IP: D40.00 and all subsequent D-series RVUs, G06.00 and all subsequent G-Series RVUs,
and H06.03 and all subsequent H-series RVUs until otherwise indicated by its replacement
publication
Parallel Library TCP/IP: G06.08 and all subsequent G-series RVUs until otherwise indicated by its
replacement publication
NonStop TCP/IPv6: G06.20 and all subsequent G-series RVUs, H06.05 and all subsequent H-series
RVUs until otherwise indicated by its replacement publication
Cluster I/O Protocols (CIP): J06.04 and all subsequent J-series RVUs until otherwise indicated by
its replacement publication
Intended Audience
This manual is intended for experienced C and TAL programmers. You must be familiar with the
following protocols and products:
The standard TCP/IP family of protocols described in various Requests for Comments (RFCs)
The Berkeley socket interface
Use of NonStop systems, including the HP NonStop operating system
New and changed information for March 2014 (524521-020)
This edition of the manual includes the following changes:
Changed “address” word to “value” for flags AI_NUMERICHOST” (page 64) and
AI_NUMERICSERV” (page 64).
Added “Notein the section socket_set_inet_name” (page 200).
New and changed information for February 2013 (524521-019)
This edition of the manual includes the following changes:
Added a new note in the “Usage Guidelines” (page 103) section.
New and changed information for July 2012 (524521-018)
This edition of the manual includes the following changes:
Added the function details and usage consideration in the accept_nw3” (page 97) section.
Added the usage guidelines for the functions gethostbyname and
host_file_gethostname“Usage Guidelines” (page 111).
Added new guideline for the section “Usage Guidelines” (page 108).
New and changed information for February 2012 (524521-017)
This edition of the manual includes the changes to enable 64–bit support:
Added the 64–bit APIs, send64_ (page 168), sendto64_ (page 179), send_nw64_ (page 171),
send_nw2_64_ (page 175), recv64_, recv_nw64_ (page 155), recvfrom_nw64_ (page 164),
Supported Release Version Updates (RVUs) 11