IPX/SPX Programming Manual

Library Routines
HP NonStop IPX/SPX Programming Manual528022-001
5-50
setsockopt, setsockopt_nw
level
is the socket level at which the socket option is being managed. The possible
values are:
optname
is the socket option name.
When the value of level is SOL_SOCKET, The possible setsockopt values are:
When the value of level is NVPROTPO_SPX, the possible setsockopt values are:
optval_ptr
points to the value of the socket option, specified by optname, which is passed to
the level specified in level. Table 5-2 on page 5-51 lists the type and length of the
value of each socket option. Boolean-type values are integers, where 0 indicates
false and 1 indicates true.
optlen
is the length, in bytes, of the list pointed to by optval_ptr. If too small, the error
EINVAL is returned (see “Errors,” below).
tag
is the tag parameter to be used for the nowait operation initiated by
setsockopt_nw.
SOL_SOCKET Socket-level option.
NVPROTO_SPX SPX-level option
SO_LINGER Allows graceful close of a socket. Socket will stay
connected for l_linger number of seconds after it
would normally close.
SO_KEEPALIVE Keeps connection from ever timing-out. Always set.
SPX_IPXCHKSUM Determines whether to use IPX checksum.
SPX_OPTIONNEG Determines whether to use option negotiation.
SPX_RCVWINSIZE Defines the local window size.