| tpackage.lisp - clic - Clic is an command line interactive client for gopher wr… | |
| git clone git://bitreich.org/clic/ git://hg6vgqziawt5s4dj.onion/clic/ | |
| Log | |
| Files | |
| Refs | |
| Tags | |
| LICENSE | |
| --- | |
| tpackage.lisp (3154B) | |
| --- | |
| 1 ;;;; See the LICENSE file for licensing information. | |
| 2 | |
| 3 (defpackage :usocket | |
| 4 (:use #-genera :common-lisp | |
| 5 #+genera :future-common-lisp | |
| 6 #+abcl :java | |
| 7 :split-sequence) | |
| 8 (:export #:*version* | |
| 9 #:*wildcard-host* | |
| 10 #:*auto-port* | |
| 11 | |
| 12 #:+max-datagram-packet-size+ | |
| 13 | |
| 14 #:socket-connect ; socket constructors and methods | |
| 15 #:socket-listen | |
| 16 #:socket-accept | |
| 17 #:socket-close | |
| 18 #:socket-shutdown | |
| 19 #:get-local-address | |
| 20 #:get-peer-address | |
| 21 #:get-local-port | |
| 22 #:get-peer-port | |
| 23 #:get-local-name | |
| 24 #:get-peer-name | |
| 25 | |
| 26 #:socket-send ; udp function (send) | |
| 27 #:socket-receive ; udp function (receive) | |
| 28 | |
| 29 #:wait-for-input ; waiting for input-ready state (select() … | |
| 30 #:make-wait-list | |
| 31 #:add-waiter | |
| 32 #:remove-waiter | |
| 33 #:remove-all-waiters | |
| 34 | |
| 35 #:with-connected-socket ; convenience macros | |
| 36 #:with-server-socket | |
| 37 #:with-client-socket | |
| 38 #:with-socket-listener | |
| 39 | |
| 40 #:usocket ; socket object and accessors | |
| 41 #:stream-usocket | |
| 42 #:stream-server-usocket | |
| 43 #:socket | |
| 44 #:socket-stream | |
| 45 #:datagram-usocket | |
| 46 #:socket-state ; 0.6.4 | |
| 47 | |
| 48 ;; predicates (for version 0.6 or 1.0 ?) | |
| 49 #:usocket-p | |
| 50 #:stream-usocket-p | |
| 51 #:stream-server-usocket-p | |
| 52 #:datagram-usocket-p | |
| 53 | |
| 54 #:host-byte-order ; IPv4 utility functions | |
| 55 #:hbo-to-dotted-quad | |
| 56 #:hbo-to-vector-quad | |
| 57 #:vector-quad-to-dotted-quad | |
| 58 #:dotted-quad-to-vector-quad | |
| 59 | |
| 60 #:vector-to-ipv6-host ; IPv6 utility functions | |
| 61 #:ipv6-host-to-vector | |
| 62 | |
| 63 #:ip= ; IPv4+IPv6 utility function | |
| 64 #:ip/= | |
| 65 | |
| 66 #:integer-to-octet-buffer ; Network utility functions | |
| 67 #:octet-buffer-to-integer | |
| 68 #:port-to-octet-buffer | |
| 69 #:port-from-octet-buffer | |
| 70 #:ip-to-octet-buffer | |
| 71 #:ip-from-octet-buffer | |
| 72 | |
| 73 #:with-mapped-conditions | |
| 74 | |
| 75 #:socket-condition ; conditions | |
| 76 #:ns-condition | |
| 77 #:socket-error ; errors | |
| 78 #:ns-error | |
| 79 #:unknown-condition | |
| 80 #:ns-unknown-condition | |
| 81 #:unknown-error | |
| 82 #:ns-unknown-error | |
| 83 #:socket-warning ; warnings (udp) | |
| 84 | |
| 85 #:insufficient-implementation ; conditions regarding usocke… | |
| 86 #:unsupported | |
| 87 #:unimplemented | |
| 88 | |
| 89 #:socket-server | |
| 90 #:*remote-host* | |
| 91 #:*remote-port* | |
| 92 | |
| 93 ;; added in 0.7.1 | |
| 94 #:get-host-by-name | |
| 95 #:get-hosts-by-name | |
| 96 #:get-random-host-by-name | |
| 97 #:ns-host-not-found-error | |
| 98 #:ns-no-recovery-error | |
| 99 #:ns-try-again-condition | |
| 100 #:default-udp-handler | |
| 101 #:default-tcp-handler | |
| 102 #:echo-tcp-handler ;; server handlers | |
| 103 )) |