TCP/IP Programming Manual

Table 12 Socket Routines (continued)
FunctionName and Description Page
Sends data on an unconnected UDP or raw socket without byte-count
header (nowait)
sendto_nw (page 180)
Sends data on an unconnected UDP or raw socket without byte-count
header (nowait) in 64–bit application.
sendto_nw64_ (page 182)
Sets socket options (waited and nowait)setsockopt, setsockopt_nw (page 184)
Shuts down data transfer on a socket (waited or nowait)shutdown, shutdown_nw (page 189)
Marks the socket for reusesock_close_reuse_nw (page 190)
Creates a socket (waited or nowait)socket, socket_nw (page 191)
Allows an application to establish a backup TCP/IP processsocket_backup (page 193)
Obtains address and length of data received from an unconnected
UDP or raw socket
socket_get_info (page 194)
Obtains byte count of data sent on a socketsocket_get_len (page 195)
Obtains parameters used to open a TCP/IP process. Used to
checkpoint* information for NonStop process pairs.
socket_get_open_info (page 196)
Performs a control operation on a socket (waited or nowait)socket_ioctl, socket_ioctl_nw (page 197)
Sets the name of the NonStop TCP/IPv6, TCPSAM, or TCP6SAM
process
socket_set_inet_name (page 200)
*“Checkpoint” here refers to sending state-change information from the primary to the backup process.
Table 13 (page 83) lists and briefly describes each of the support routines. All of the support calls
are waited calls.
Table 13 Support Routines
FunctionsRoutine Name
Frees a specified address-information structure previously created
by the getaddrinfo function. (Supported by NonStop TCP/IPv6
only.)
freeaddrinfo (page 104)
Frees the memory of one or more hostent structures returned by
the getipnodebyaddr or getipnodebyname functions.
freehostent (page 105)
(Supported by HP NonStop Kernel Operating System User’s Guide
only.)
Aids applications in printing error messages returned by
getaddrinfo. (Supported by NonStop TCP/IP only.)
gai_strerror (page 105)
Converts hostnames and service names into socket-address structures.
(Supported by NonStop TCP/IPv6 only.)
getaddrinfo (page 107)
Gets the Internet address of the specified host.gethostbyaddr, host_file_gethostbyaddr (page 109)
Gets the name of the host with the specified Internet address.gethostbyname, host_file_gethostbyname
(page 110)
Gets the Internet address (IPv4 or IPv6) of the host whose name is
specified.
gethostbyname2 (page 112)
Gets the ID of the current host.gethostid (page 113)
Gets the ID of the current host.gethostid (page 113)
Gets the name of the current host.gethostname (page 113)
Summary of Routines 83