Rewrote the I/O multiplexer.
[iolib.git] / io-multiplex / defpackage.lisp
blobaf0226a7957bf5f8f5b75417b70617f3e90896e6
1 ;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp -*-
3 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
4 ; Copyright (C) 2006,2007 by Stelian Ionescu ;
5 ; ;
6 ; This program is free software; you can redistribute it and/or modify ;
7 ; it under the terms of the GNU General Public License as published by ;
8 ; the Free Software Foundation; either version 2 of the License, or ;
9 ; (at your option) any later version. ;
10 ; ;
11 ; This program is distributed in the hope that it will be useful, ;
12 ; but WITHOUT ANY WARRANTY; without even the implied warranty of ;
13 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;
14 ; GNU General Public License for more details. ;
15 ; ;
16 ; You should have received a copy of the GNU General Public License ;
17 ; along with this program; if not, write to the ;
18 ; Free Software Foundation, Inc., ;
19 ; 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ;
20 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
22 (in-package :common-lisp-user)
24 (defpackage :io.multiplex
25 (:nicknames #:iomux)
26 (:use #:common-lisp #:cffi)
27 (:export
28 ;; classes
29 #:event-base #:event
30 #:multiplexer
31 #:select-multiplexer
32 #+linux #:epoll-multiplexer
33 #+linux #:kqueue-multiplexer
35 #:add-fd #:add-timeout #:remove-event
36 #:unmonitor-fd #:event-dispatch
38 #:timeout #:timeout-sec #:timeout-usec
39 #:timeout-lessp
40 #:timeout-add #:timeout-sub))