YAZ  5.34.0
Functions | Variables
eventl.c File Reference

Implements event loop handling for GFS. More...

#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <yaz/poll.h>
#include <yaz/log.h>
#include <yaz/comstack.h>
#include <yaz/xmalloc.h>
#include "eventl.h"
#include "session.h"
#include <yaz/statserv.h>

Go to the source code of this file.

Functions

IOCHAN iochan_create (int fd, IOC_CALLBACK cb, int flags, int chan_id)
 
int iochan_is_alive (IOCHAN chan)
 
int iochan_event_loop (IOCHAN *iochans, int *watch_sig)
 

Variables

static int log_level =0
 
static int log_level_initialized =0
 

Detailed Description

Implements event loop handling for GFS.

This source implements the main event loop for the Generic Frontend Server.

Definition in file eventl.c.

Function Documentation

◆ iochan_create()

IOCHAN iochan_create ( int  fd,
IOC_CALLBACK  cb,
int  flags,
int  chan_id 
)

◆ iochan_event_loop()

int iochan_event_loop ( IOCHAN iochans,
int *  watch_sig 
)

◆ iochan_is_alive()

int iochan_is_alive ( IOCHAN  chan)

Variable Documentation

◆ log_level

int log_level =0
static

Definition at line 39 of file eventl.c.

Referenced by iochan_create(), iochan_event_loop(), yaz_log_xml_errors(), and yaz_mutex_set_name().

◆ log_level_initialized

int log_level_initialized =0
static

Definition at line 40 of file eventl.c.

Referenced by initlog(), and iochan_create().