* Copyright (C) 1995-2007, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: eventl.c,v 1.15 2007-11-09 22:08:14 adam Exp $
+ * $Id: eventl.c,v 1.16 2007-11-12 08:41:56 adam Exp $
*/
/**
* \brief Implements event loop handling for GFS.
*
* This source implements the main event loop for the Generic Frontend
- * Server. It uses select(2).
+ * Server.
*/
#include <assert.h>
return 1;
}
-int event_loop(IOCHAN *iochans)
+int iochan_event_loop(IOCHAN *iochans)
{
do /* loop as long as there are active associations to process */
{
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: eventl.h,v 1.8 2007-01-03 08:42:15 adam Exp $
+ * $Id: eventl.h,v 1.9 2007-11-12 08:41:56 adam Exp $
*/
/**
IOCHAN iochan_create(int fd, IOC_CALLBACK cb, int flags, int port);
int iochan_is_alive(IOCHAN chan);
-int event_loop(IOCHAN *iochans);
+int iochan_event_loop(IOCHAN *iochans);
void statserv_remove (IOCHAN pIOChannel);
#endif
/*
* NT threaded server code by
* Chas Woodfield, Fretwell Downing Informatics.
*
- * $Id: statserv.c,v 1.50 2007-08-13 16:46:47 mike Exp $
+ * $Id: statserv.c,v 1.51 2007-11-12 08:41:56 adam Exp $
*/
/**
control_block.one_shot = 1;
if (control_block.threads)
{
- event_loop(&new_chan);
+ iochan_event_loop(&new_chan);
}
else
{
if (pListener == NULL)
return 1;
yaz_log(YLOG_DEBUG, "Entering event loop.");
- return event_loop(&pListener);
+ return iochan_event_loop(&pListener);
}
static void option_copy(char *dst, const char *src)