package.lisp - clic - Clic is an command line interactive client for gopher written in Common LISP
HTML git clone git://bitreich.org/clic/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/clic/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
package.lisp (4232B)
---
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 #:socket-warning ; warnings (udp)
85
86 #:insufficient-implementation ; conditions regarding usocket support level
87 #:unsupported
88 #:unimplemented
89
90 #:socket-server
91 #:*remote-host*
92 #:*remote-port*
93
94 ;; added in 0.7.1
95 #:get-host-by-name
96 #:get-hosts-by-name
97 #:get-random-host-by-name
98 #:ns-host-not-found-error
99 #:ns-no-recovery-error
100 #:ns-try-again-condition
101 #:default-udp-handler
102 #:default-tcp-handler
103 #:echo-tcp-handler ;; server handlers
104
105 ;; added in 0.8.0
106 #:*backend*
107 #:*default-event-base*
108 #:host-to-hostname
109
110 ;; these're socket-related conditions from IOlib
111 #:ADDRESS-NOT-AVAILABLE-ERROR #:HOST-DOWN-ERROR
112 #:OPERATION-NOT-SUPPORTED-ERROR #:SOCKET-OPTION
113 #:NETWORK-DOWN-ERROR #:INVALID-SOCKET-ERROR
114 #:SOCKET-TYPE-NOT-SUPPORTED-ERROR #:DEADLINE-TIMEOUT-ERROR
115 #:SHUTDOWN-ERROR #:HOST-UNREACHABLE-ERROR
116 #:NETWORK-UNREACHABLE-ERROR #:CONNECTION-ABORTED-ERROR
117 #:BAD-FILE-DESCRIPTOR-ERROR #:PROTOCOL-NOT-SUPPORTED-ERROR
118 #:CONNECTION-RESET-ERROR #:TIMEOUT-ERROR
119 #:ADDRESS-IN-USE-ERROR #:NO-BUFFERS-ERROR
120 #:INVALID-SOCKET-STREAM-ERROR #:INTERRUPTED-CONDITION
121 #:INVALID-ARGUMENT-ERROR #:OPERATION-NOT-PERMITTED-ERROR
122 #:NETWORK-RESET-ERROR #:CONNECTION-REFUSED-ERROR
123
124 ;; added in 0.8.2
125 #:host-or-ip
126 ))