Kind | Covered | All | % |
expression | 0 | 1 | 0.0 |
branch | 0 | 0 | nil |
1
;;;; -*- Mode: LISP; Base: 10; Syntax: ANSI-Common-lisp; Package: CL-USER -*-
2
;;;; See the LICENSE file for licensing information.
3
4
(defpackage :usocket
5
(:use #-genera :common-lisp
6
#+genera :future-common-lisp
7
#+abcl :java
8
:split-sequence)
9
(:export #:*version*
10
#:*wildcard-host*
11
#:*auto-port*
12
13
#:+max-datagram-packet-size+
14
15
#:socket-connect ; socket constructors and methods
16
#:socket-listen
17
#:socket-accept
18
#:socket-close
19
#:socket-shutdown
20
#:get-local-address
21
#:get-peer-address
22
#:get-local-port
23
#:get-peer-port
24
#:get-local-name
25
#:get-peer-name
26
27
#:socket-send ; udp function (send)
28
#:socket-receive ; udp function (receive)
29
30
#:wait-for-input ; waiting for input-ready state (select() like)
31
#:make-wait-list
32
#:add-waiter
33
#:remove-waiter
34
#:remove-all-waiters
35
36
#:with-connected-socket ; convenience macros
37
#:with-server-socket
38
#:with-client-socket
39
#:with-socket-listener
40
41
#:usocket ; socket object and accessors
42
#:stream-usocket
43
#:stream-server-usocket
44
#:socket
45
#:socket-stream
46
#:datagram-usocket
47
#:socket-state ; 0.6.4
48
49
;; predicates (for version 0.6 or 1.0 ?)
50
#:usocket-p
51
#:stream-usocket-p
52
#:stream-server-usocket-p
53
#:datagram-usocket-p
54
55
#:host-byte-order ; IPv4 utility functions
56
#:hbo-to-dotted-quad
57
#:hbo-to-vector-quad
58
#:vector-quad-to-dotted-quad
59
#:dotted-quad-to-vector-quad
60
61
#:vector-to-ipv6-host ; IPv6 utility functions
62
#:ipv6-host-to-vector
63
64
#:ip= ; IPv4+IPv6 utility function
65
#:ip/=
66
67
#:integer-to-octet-buffer ; Network utility functions
68
#:octet-buffer-to-integer
69
#:port-to-octet-buffer
70
#:port-from-octet-buffer
71
#:ip-to-octet-buffer
72
#:ip-from-octet-buffer
73
74
#:with-mapped-conditions
75
76
#:socket-condition ; conditions
77
#:ns-condition
78
#:socket-error ; errors
79
#:ns-error
80
#:unknown-condition
81
#:ns-unknown-condition
82
#:unknown-error
83
#:ns-unknown-error
84
#:already-shutdown-error
85
#:out-of-memory-error
86
#:socket-warning ; warnings (udp)
87
88
#:insufficient-implementation ; conditions regarding usocket support level
89
#:unsupported
90
#:unimplemented
91
92
#:socket-server
93
#:*remote-host*
94
#:*remote-port*
95
96
;; added in 0.7.1
97
#:get-host-by-name
98
#:get-hosts-by-name
99
#:get-random-host-by-name
100
#:ns-host-not-found-error
101
#:ns-no-recovery-error
102
#:ns-try-again-condition ; obsoleted
103
#:ns-try-again-error
104
#:default-udp-handler
105
#:default-tcp-handler
106
#:echo-tcp-handler ;; server handlers
107
108
;; added in 0.8.0
109
#:*backend*
110
#:*default-event-base*
111
#:host-to-hostname
112
113
;; socket-related conditions from IOlib
114
#:ADDRESS-NOT-AVAILABLE-ERROR #:HOST-DOWN-ERROR
115
#:OPERATION-NOT-SUPPORTED-ERROR #:SOCKET-OPTION
116
#:NETWORK-DOWN-ERROR #:INVALID-SOCKET-ERROR
117
#:SOCKET-TYPE-NOT-SUPPORTED-ERROR #:DEADLINE-TIMEOUT-ERROR
118
#:SHUTDOWN-ERROR #:HOST-UNREACHABLE-ERROR
119
#:NETWORK-UNREACHABLE-ERROR #:CONNECTION-ABORTED-ERROR
120
#:BAD-FILE-DESCRIPTOR-ERROR #:PROTOCOL-NOT-SUPPORTED-ERROR
121
#:CONNECTION-RESET-ERROR #:TIMEOUT-ERROR
122
#:ADDRESS-IN-USE-ERROR #:NO-BUFFERS-ERROR
123
#:INVALID-SOCKET-STREAM-ERROR #:INTERRUPTED-CONDITION
124
#:INVALID-ARGUMENT-ERROR #:OPERATION-NOT-PERMITTED-ERROR
125
#:NETWORK-RESET-ERROR #:CONNECTION-REFUSED-ERROR
126
127
;; added in 0.8.2
128
#:host-or-ip
129
130
;; added in 0.8.4
131
#:*ipv6-only-p*
132
133
;; restarts of SOCKET-LISTEN (added in 0.8.6)
134
#:use-other-host
135
#:use-other-port
136
#:retry
137
138
;; added in 0.8.8
139
#:get-host-name
140
))