Mark ENOLINK and EMULTIHOP as optional
[iolib.git] / src / sockets / config.lisp
blob073933fd4ea32379b8c7352b18e35a93e05ecebf
1 ;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*-
2 ;;;
3 ;;; --- Special variable definitions.
4 ;;;
6 (in-package :iolib/sockets)
8 (defvar *ipv6* nil
9 "Specifies the default behaviour with respect to IPv6:
10 - nil : Only IPv4 addresses are used.
11 - :ipv6 : Only IPv6 addresses are used.
12 - t : If both IPv4 and IPv6 addresses are found they are returned in the best order possible (see RFC 3484).
13 Default value is NIL.")
15 (deftype *ipv6*-type ()
16 '(member t nil :ipv6))
18 (defconstant +max-backlog-size+ somaxconn
19 "Maximum length of the pending connections queue (hard limit).")
21 (defvar *default-backlog-size* 5
22 "Default length of the pending connections queue (soft limit).")
24 (defvar *default-linger-seconds* 15
25 "Default linger timeout when enabling SO_LINGER option on a socket.")