* 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.4 2005-02-01 14:46:47 adam Exp $
*/
/**
time_t max_idle;
struct iochan *next;
+ int port; /* 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);
+IOCHAN iochan_create(int fd, IOC_CALLBACK cb, int flags, int port);
int event_loop(IOCHAN *iochans);
void statserv_remove (IOCHAN pIOChannel);
#endif