* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: eventl.h,v 1.3 2005-01-15 19:47:13 adam Exp $
+ * $Id: eventl.h,v 1.9 2007-11-12 08:41:56 adam Exp $
*/
/**
#define EVENT_OUTPUT 0x02
#define EVENT_EXCEPT 0x04
#define EVENT_TIMEOUT 0x08
-#define EVENT_WORK 0x10
int force_event;
IOC_CALLBACK fun;
void *data;
time_t max_idle;
struct iochan *next;
+ int chan_id; /* listening port (0 if none ) */
} *IOCHAN;
#define iochan_destroy(i) (void)((i)->destroyed = 1)
#define iochan_getnext(i) ((i)->next)
#define iochan_settimeout(i, t) ((i)->max_idle = (t), (i)->last_event = time(0))
-IOCHAN iochan_create(int fd, IOC_CALLBACK cb, int flags);
-int event_loop(IOCHAN *iochans);
+IOCHAN iochan_create(int fd, IOC_CALLBACK cb, int flags, int port);
+int iochan_is_alive(IOCHAN chan);
+int iochan_event_loop(IOCHAN *iochans);
void statserv_remove (IOCHAN pIOChannel);
#endif
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+