Metrologic Optimus S Programming Manual page 166

"c" programming guide
Table of Contents

Advertisement

160
"C" Programming Guide For Optimus S/R
shutdown
Although options may exist at multiple protocol levels, they are always present
at the uppermost socket level. Options affect socket operations, such as the
packet routing and OOB data transfer.
When manipulating socket options, the level at which the option resides and
the name of the option must be specified.
To manipulate options at the socket level, level is specified as
SOL_SOCKET.
To manipulate options at any other level, the protocol number of the
appropriate protocol controlling the option is supplied.
For example, the following options are recognized at the socket level.
level = SOL_SOCKET
SO_DEBUG
SO_REUSEADDR
SO_KEEPALIVE
SO_DONTROUTE
SO_BROADCAST
SO_BINDTODEVI
CE
SO_LINGER
SO_OOBINLINE
SO_SNDBUF
SO_RCVBUF
level = IPPROTO_TCP
TCP_NODELAY
The optval and optlen parameters are used to access option values.
Return
If successful, it returns 0.
On error, it returns -1.
The global variable errno is set to indicate the error condition encountered.
See Also
getsockopt
Purpose
To shut down part of a TCP connection.
Syntax
int shutdown (SOCKET s, int how);
s
how
Enables recording of debugging information
Enables local address reuse
Enables keep connections alive
Enables routing bypass for outgoing messages
Enables permission to transmit broadcast messages
(?)
Lingers on close if unsent data is present
Enables reception of out-of-band data in band
Sets buffer size for sends
Sets buffer size for receives
Disables the Nagle algorithm for send coalescing
Descriptor identifying a socket
Specifies the type of shut down

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents