Fix CLOSE method on MY-FILE-STREAM in the stream test suite.
[iolib.git] / io.event / pkgdcl.lisp
blobcede3c0432ad5cb5c510b680764ea1f5fad02930
1 ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Indent-tabs-mode: NIL -*-
2 ;;;
3 ;;; pkgdcl.lisp --- Package definition.
4 ;;;
5 ;;; Copyright (C) 2007, Stelian Ionescu <sionescu@common-lisp.net>
6 ;;; Copyright (C) 2007, Luis Oliveira <loliveira@common-lisp.net>
7 ;;;
8 ;;; This code is free software; you can redistribute it and/or
9 ;;; modify it under the terms of the version 2.1 of
10 ;;; the GNU Lesser General Public License as published by
11 ;;; the Free Software Foundation, as clarified by the
12 ;;; preamble found here:
13 ;;; http://opensource.franz.com/preamble.html
14 ;;;
15 ;;; This program is distributed in the hope that it will be useful,
16 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;;; GNU General Public License for more details.
19 ;;;
20 ;;; You should have received a copy of the GNU Lesser General
21 ;;; Public License along with this library; if not, write to the
22 ;;; Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
23 ;;; Boston, MA 02110-1301, USA
25 (in-package :common-lisp-user)
27 (defpackage :io.event
28 (:nicknames #:evie)
29 (:use #:common-lisp :io.streams :io.multiplex :net.sockets :alexandria)
30 (:export
31 ;; Transports
32 #:transport
33 #:buffered-transport
34 #:socket-transport
35 #:tcp-transport
36 #:udp-transport
38 #:on-transport-readable
39 #:on-transport-writable
40 #:on-transport-error
42 #:write-data
43 #:write-datagram
44 #:close-transport
46 ;; Protocols
47 #:protocol
48 #:stream-protocol
49 #:datagram-protocol
50 #:protocol-debug-mixin
52 #:transport-of
53 ;; #:on-protocol-start
54 ;; #:on-procotol-stop
55 #:on-connection-made
56 #:on-connection-lost
57 #:on-connection-end
58 #:on-data-received
59 #:on-datagram-received
61 ;; Factories
62 #:factory
63 #:server
64 #:network-server
65 #:tcp-server
66 #:udp-server
67 #:client
68 #:network-client
69 #:tcp-client
70 #:udp-client
72 #:on-server-connection-received
73 #:on-server-connection-error
75 #:listen-tcp
76 #:listen-udp
78 #:add-connection
80 #:init-default-event-base
82 ;; Deferreds
83 #:with-async-handler
84 #:with-deferred-result
85 #:deferred
86 #:result-callback-of
87 #:error-callback-of