Started CLHS-like docs.
[iolib.git] / net.sockets / config.lisp
blobbe99cf904f695c0fcb2bdb28af0ec6589dd95527
1 ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Indent-tabs-mode: NIL -*-
2 ;;;
3 ;;; config.lisp --- Special variable definitions.
4 ;;;
5 ;;; Copyright (C) 2006-2007, Stelian Ionescu <sionescu@common-lisp.net>
6 ;;;
7 ;;; This code is free software; you can redistribute it and/or
8 ;;; modify it under the terms of the version 2.1 of
9 ;;; the GNU Lesser General Public License as published by
10 ;;; the Free Software Foundation, as clarified by the
11 ;;; preamble found here:
12 ;;; http://opensource.franz.com/preamble.html
13 ;;;
14 ;;; This program is distributed in the hope that it will be useful,
15 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;;; GNU General Public License for more details.
18 ;;;
19 ;;; You should have received a copy of the GNU Lesser General
20 ;;; Public License along with this library; if not, write to the
21 ;;; Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
22 ;;; Boston, MA 02110-1301, USA
24 (in-package :net.sockets)
26 (defvar *ipv6* t
27 "Specifies the default behaviour with respect to IPv6:
28 - nil : Only IPv4 addresses are used.
29 - :ipv6 : Only IPv6 addresses are used.
30 - t : If both IPv4 and IPv6 addresses are found they are returned in the best order possible (see RFC 3484).
31 Default value is T.")
33 (deftype *ipv6*-type ()
34 '(member t nil :ipv6))
36 (defconstant +max-backlog-size+ somaxconn
37 "Maximum length of the pending connections queue (hard limit).")
39 (defvar *default-backlog-size* 5
40 "Default length of the pending connections queue (soft limit).")
42 (defvar *default-linger-seconds* 15
43 "Default linger timeout when enabling SO_LINGER option on a socket.")