Next: , Previous: General Sockets, Up: Networking


14.3 Socket Options

A subset of socket options are supported, using a fairly general framework which should make it simple to add more as required - see SYS:CONTRIB;SB-BSD-SOCKETS:SOCKOPT.LISP for details. The name mapping from C is fairly straightforward: SO_RCVLOWAT becomes sockopt-receive-low-water and (setf sockopt-receive-low-water).

— Function: sockopt-reuse-address [sb-bsd-sockets] socket

Return the value of the so-reuseaddr socket option for socket. This can also be updated with setf.

— Function: sockopt-keep-alive [sb-bsd-sockets] socket

Return the value of the so-keepalive socket option for socket. This can also be updated with setf.

— Function: sockopt-oob-inline [sb-bsd-sockets] socket

Return the value of the so-oobinline socket option for socket. This can also be updated with setf.

— Function: sockopt-bsd-compatible [sb-bsd-sockets] socket

Return the value of the so-bsdcompat socket option for socket. This can also be updated with setf. Available only on Linux.

— Function: sockopt-pass-credentials [sb-bsd-sockets] socket

Return the value of the so-passcred socket option for socket. This can also be updated with setf. Available only on Linux.

— Function: sockopt-debug [sb-bsd-sockets] socket

Return the value of the so-debug socket option for socket. This can also be updated with setf.

— Function: sockopt-dont-route [sb-bsd-sockets] socket

Return the value of the so-dontroute socket option for socket. This can also be updated with setf.

— Function: sockopt-broadcast [sb-bsd-sockets] socket

Return the value of the so-broadcast socket option for socket. This can also be updated with setf.

— Function: sockopt-tcp-nodelay [sb-bsd-sockets] socket

Return the value of the tcp-nodelay socket option for socket. This can also be updated with setf.