forked from Wukix/usocket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.lisp
87 lines (72 loc) · 2.51 KB
/
package.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
;;;; $Id$
;;;; $URL$
;;;; See the LICENSE file for licensing information.
(defpackage :usocket
(:use :common-lisp #+abcl :java)
(:export #:*wildcard-host*
#:*auto-port*
#:*remote-host* ; special variables (udp)
#:*remote-port*
#:+max-datagram-packet-size+
#:socket-connect ; socket constructors and methods
#:socket-listen
#:socket-accept
#:socket-close
#:get-local-address
#:get-peer-address
#:get-local-port
#:get-peer-port
#:get-local-name
#:get-peer-name
#:socket-send ; udp function (send)
#:socket-receive ; udp function (receive)
#:socket-server ; udp server
#:socket-option ; 0.6.x
#:wait-for-input ; waiting for input-ready state (select() like)
#:make-wait-list
#:add-waiter
#:remove-waiter
#:remove-all-waiters
#:with-connected-socket ; convenience macros
#:with-server-socket
#:with-client-socket
#:with-socket-listener
#:usocket ; socket object and accessors
#:stream-usocket
#:stream-server-usocket
#:socket
#:socket-stream
#:datagram-usocket
;; predicates (for version 0.6 or 1.0 ?)
#|
#:usocket-p
#:stream-usocket-p
#:stream-server-usocket-p
#:datagram-usocket-p
|#
#:host-byte-order ; IP(v4) utility functions
#:hbo-to-dotted-quad
#:hbo-to-vector-quad
#:vector-quad-to-dotted-quad
#:dotted-quad-to-vector-quad
#:ip=
#:ip/=
#:integer-to-octet-buffer ; Network utility functions
#:octet-buffer-to-integer
#:port-to-octet-buffer
#:port-from-octet-buffer
#:ip-to-octet-buffer
#:ip-from-octet-buffer
#:with-mapped-conditions
#:socket-condition ; conditions
#:ns-condition
#:socket-error ; errors
#:ns-error
#:unknown-condition
#:ns-unknown-condition
#:unknown-error
#:ns-unknown-error
#:socket-warning ; warnings (udp)
#:insufficient-implementation ; conditions regarding usocket support level
#:unsupported
#:unimplemented))