|
YAZ 5.37.0
|
Definitions for event loop handling for GFS. More...
#include <time.h>Go to the source code of this file.
Data Structures | |
| struct | iochan |
Macros | |
| #define | EVENT_INPUT 0x01 |
| #define | EVENT_OUTPUT 0x02 |
| #define | EVENT_EXCEPT 0x04 |
| #define | EVENT_TIMEOUT 0x08 |
| #define | iochan_destroy(i) |
| #define | iochan_getfd(i) |
| #define | iochan_setfd(i, f) |
| #define | iochan_getdata(i) |
| #define | iochan_setdata(i, d) |
| #define | iochan_getflags(i) |
| #define | iochan_setflags(i, d) |
| #define | iochan_setflag(i, d) |
| #define | iochan_clearflag(i, d) |
| #define | iochan_getflag(i, d) |
| #define | iochan_getfun(i) |
| #define | iochan_setfun(i, d) |
| #define | iochan_setevent(i, e) |
| #define | iochan_getnext(i) |
| #define | iochan_settimeout(i, t) |
Typedefs | |
| typedef void(* | IOC_CALLBACK) (struct iochan *i, int event) |
| typedef struct iochan * | IOCHAN |
Functions | |
| IOCHAN | iochan_create (int fd, IOC_CALLBACK cb, int flags, int port) |
| int | iochan_is_alive (IOCHAN chan) |
| int | iochan_event_loop (IOCHAN *iochans, int *watch_sig) |
| void | statserv_remove (IOCHAN pIOChannel) |
Definitions for event loop handling for GFS.
This "private" header defines various functions for the main event loop in GFS.
Definition in file eventl.h.
| #define EVENT_EXCEPT 0x04 |
Definition at line 51 of file eventl.h.
Referenced by add_listener(), iochan_event_loop(), ir_session(), and listener().
| #define EVENT_INPUT 0x01 |
Definition at line 49 of file eventl.h.
Referenced by add_listener(), inetd_connection(), iochan_event_loop(), iochan_is_alive(), ir_read(), ir_session(), listener(), and new_session().
| #define EVENT_OUTPUT 0x02 |
Definition at line 50 of file eventl.h.
Referenced by iochan_event_loop(), ir_read(), ir_session(), new_session(), and process_gdu_response().
| #define EVENT_TIMEOUT 0x08 |
Definition at line 52 of file eventl.h.
Referenced by do_close_req(), iochan_event_loop(), ir_session(), and listener().
| #define iochan_clearflag | ( | i, | |
| d ) |
| #define iochan_destroy | ( | i | ) |
Definition at line 64 of file eventl.h.
Referenced by ir_read(), ir_session(), listener(), remove_listeners(), and statserv_closedown().
| #define iochan_getdata | ( | i | ) |
Definition at line 67 of file eventl.h.
Referenced by ir_read(), ir_session(), and listener().
| #define iochan_getflag | ( | i, | |
| d ) |
| #define iochan_getnext | ( | i | ) |
| #define iochan_setdata | ( | i, | |
| d ) |
Definition at line 68 of file eventl.h.
Referenced by add_listener(), inetd_connection(), and new_session().
| #define iochan_setevent | ( | i, | |
| e ) |
Definition at line 76 of file eventl.h.
Referenced by do_close_req(), and ir_session().
| #define iochan_setflag | ( | i, | |
| d ) |
Definition at line 71 of file eventl.h.
Referenced by ir_read(), ir_session(), and process_gdu_response().
| #define iochan_setflags | ( | i, | |
| d ) |
| #define iochan_settimeout | ( | i, | |
| t ) |
Definition at line 78 of file eventl.h.
Referenced by do_close_req(), inetd_connection(), new_session(), process_http_request(), and process_initRequest().
| IOCHAN iochan_create | ( | int | fd, |
| IOC_CALLBACK | cb, | ||
| int | flags, | ||
| int | port ) |
Definition at line 42 of file eventl.c.
References iochan::chan_id, iochan::destroyed, iochan::fd, iochan::flags, iochan::force_event, iochan::fun, iochan::last_event, log_level, log_level_initialized, iochan::max_idle, iochan::next, xmalloc, and yaz_log_module_level().
Referenced by add_listener(), inetd_connection(), and new_session().
| int iochan_event_loop | ( | IOCHAN * | iochans, |
| int * | watch_sig ) |
Definition at line 81 of file eventl.c.
References iochan::destroyed, EVENT_EXCEPT, EVENT_INPUT, EVENT_OUTPUT, EVENT_TIMEOUT, iochan::fd, yaz_poll_fd::fd, iochan::flags, iochan::force_event, iochan::fun, yaz_poll_fd::input_mask, iochan::last_event, log_level, iochan::max_idle, iochan::next, yaz_poll_fd::output_mask, statserv_remove(), xfree, xmalloc, yaz_errno(), yaz_log(), yaz_poll(), yaz_poll_add, yaz_poll_except, yaz_poll_none, yaz_poll_read, yaz_poll_write, YLOG_ERRNO, and YLOG_WARN.
Referenced by daemon_handler(), and new_session().
| int iochan_is_alive | ( | IOCHAN | chan | ) |
Definition at line 66 of file eventl.c.
References EVENT_INPUT, iochan::fd, yaz_poll_fd::fd, yaz_poll_fd::input_mask, ir_read(), yaz_poll(), and yaz_poll_read.
Referenced by bend_assoc_is_alive().
| void statserv_remove | ( | IOCHAN | pIOChannel | ) |
Definition at line 927 of file statserv.c.
Referenced by iochan_event_loop().