1 ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; indent-tabs-mode: nil -*-
3 ;;; --- Package definition.
6 (in-package :common-lisp-user
)
8 (defpackage :net.sockets
10 (:use
#:common-lisp
:cffi
:alexandria
:split-sequence
:io.streams
:series
)
11 (:import-from
#:osicat-posix
#:system-error
#:posix-error
12 #:system-error-message
#:errno-wrapper
13 #:pid
#:gid
#:uid
#:size
#:ssize
#:bzero
14 #:timeval
#:size-of-timeval
#:sec
#:usec
)
15 (:import-from
#:osicat-sys
#:size-of-int
)
16 (:import-from
#:io.multiplex
#:decode-timeout
)
17 (:shadowing-import-from
:series
#:let
#:let
* #:multiple-value-bind
18 #:funcall
#:defun
#:until
#:collect
)
24 #:socket-address-in-use-error
25 #:socket-address-not-available-error
26 #:socket-already-connected-error
27 #:socket-connection-aborted-error
28 #:socket-connection-refused-error
29 #:socket-connection-reset-error
30 #:socket-connection-timeout-error
31 #:socket-endpoint-shutdown-error
32 #:socket-host-down-error
33 #:socket-host-unreachable-error
34 #:socket-network-down-error
35 #:socket-network-reset-error
36 #:socket-network-unreachable-error
37 #:socket-no-buffer-space-error
38 #:socket-no-network-error
39 #:socket-not-connected-error
40 #:socket-operation-not-supported-error
41 #:socket-option-not-supported-error
43 #:resolver-again-error
45 #:resolver-no-name-error
46 #:resolver-unknown-error
51 ;; Condition Accessors
55 #:resolver-error-datum
56 #:unknown-protocol-datum
57 #:unknown-service-datum
58 #:unknown-interface-datum
75 ;; Well-known Addresses
78 #:+ipv6-interface-local-all-nodes
+
79 #:+ipv6-interface-local-all-routers
+
80 #:+ipv6-link-local-all-nodes
+
81 #:+ipv6-link-local-all-routers
+
83 #:+ipv6-site-local-all-routers
+
94 #:inet-address-loopback-p
95 #:inet-address-multicast-p
98 #:inet-address-unicast-p
99 #:inet-address-unspecified-p
102 #:ipv6-admin-local-multicast-p
103 #:ipv6-global-multicast-p
104 #:ipv6-global-unicast-p
105 #:ipv6-interface-local-multicast-p
107 #:ipv6-link-local-multicast-p
108 #:ipv6-link-local-unicast-p
109 #:ipv6-multicast-type
110 #:ipv6-organization-local-multicast-p
111 #:ipv6-reserved-multicast-p
112 #:ipv6-site-local-multicast-p
113 #:ipv6-site-local-unicast-p
114 #:ipv6-solicited-node-multicast-p
115 #:ipv6-transient-multicast-p
116 #:ipv6-unassigned-multicast-p
120 ;; Network masks and subnets
123 #:inet-address-private-p
124 #:inet-address-network-portion
125 #:inet-address-host-portion
126 #:inet-address-in-network-p
127 #:inet-addresses-in-same-network-p
128 #:inet-address-network-class
130 ;; Low-level Address Conversion
131 #:colon-separated-to-vector
136 #:string-address-to-vector
137 #:vector-to-colon-separated
140 #:map-ipv4-address-to-ipv6
141 #:map-ipv6-address-to-ipv4
143 ;; Hostname, Service, and Protocol Lookups
149 ;; Network Interface Lookup
150 #:list-network-interfaces
163 #:socket-datagram-internet-active
164 #:socket-datagram-local-active
165 #:socket-stream-internet-active
166 #:socket-stream-internet-passive
167 #:socket-stream-local-active
168 #:socket-stream-local-passive
183 #:make-socket-from-fd
185 #:receive-file-descriptor
191 #:send-file-descriptor
195 #:socket-address-family
202 #:with-accept-connection
205 #:*default-backlog-size
*
206 #:*default-linger-seconds
*
210 #:*dns-search-domain
*
213 #:enable-reader-macro
214 #:enable-reader-macro
*
215 #:disable-reader-macro
216 #:disable-reader-macro
*
221 (setf series
:*suppress-series-warnings
* t
)