OpenVPN
|
Go to the source code of this file.
Data Structures | |
struct | event_set_functions |
struct | event_set_return |
struct | event_set |
Macros | |
#define | READ_SHIFT 0 |
#define | WRITE_SHIFT 1 |
#define | EVENT_UNDEF 4 |
#define | EVENT_READ (1 << READ_SHIFT) |
#define | EVENT_WRITE (1 << WRITE_SHIFT) |
#define | SOCKET_SHIFT 0 |
#define | SOCKET_READ (1 << (SOCKET_SHIFT + READ_SHIFT)) |
#define | SOCKET_WRITE (1 << (SOCKET_SHIFT + WRITE_SHIFT)) |
#define | TUN_SHIFT 2 |
#define | TUN_READ (1 << (TUN_SHIFT + READ_SHIFT)) |
#define | TUN_WRITE (1 << (TUN_SHIFT + WRITE_SHIFT)) |
#define | ERR_SHIFT 4 |
#define | ES_ERROR (1 << (ERR_SHIFT + READ_SHIFT)) |
#define | ES_TIMEOUT (1 << (ERR_SHIFT + WRITE_SHIFT)) |
#define | MANAGEMENT_SHIFT 6 |
#define | MANAGEMENT_READ (1 << (MANAGEMENT_SHIFT + READ_SHIFT)) |
#define | MANAGEMENT_WRITE (1 << (MANAGEMENT_SHIFT + WRITE_SHIFT)) |
#define | FILE_SHIFT 8 |
#define | FILE_CLOSED (1 << (FILE_SHIFT + READ_SHIFT)) |
#define | DCO_SHIFT 10 |
#define | DCO_READ (1 << (DCO_SHIFT + READ_SHIFT)) |
#define | DCO_WRITE (1 << (DCO_SHIFT + WRITE_SHIFT)) |
#define | EVENT_METHOD_US_TIMEOUT (1<<0) |
#define | EVENT_METHOD_FAST (1<<1) |
#define | UNDEFINED_EVENT (NULL) |
Typedefs | |
typedef const struct rw_handle * | event_t |
Functions | |
struct event_set * | event_set_init (int *maxevents, unsigned int flags) |
static void | event_free (struct event_set *es) |
static void | event_reset (struct event_set *es) |
static void | event_del (struct event_set *es, event_t event) |
static void | event_ctl (struct event_set *es, event_t event, unsigned int rwflags, void *arg) |
static int | event_wait (struct event_set *es, const struct timeval *tv, struct event_set_return *out, int outlen) |
static void | event_set_return_init (struct event_set_return *esr) |
static void | wait_signal (struct event_set *es, void *arg) |
#define DCO_READ (1 << (DCO_SHIFT + READ_SHIFT)) |
#define DCO_WRITE (1 << (DCO_SHIFT + WRITE_SHIFT)) |
#define ES_ERROR (1 << (ERR_SHIFT + READ_SHIFT)) |
#define ES_TIMEOUT (1 << (ERR_SHIFT + WRITE_SHIFT)) |
#define EVENT_READ (1 << READ_SHIFT) |
#define EVENT_WRITE (1 << WRITE_SHIFT) |
#define FILE_CLOSED (1 << (FILE_SHIFT + READ_SHIFT)) |
#define MANAGEMENT_READ (1 << (MANAGEMENT_SHIFT + READ_SHIFT)) |
#define MANAGEMENT_WRITE (1 << (MANAGEMENT_SHIFT + WRITE_SHIFT)) |
#define SOCKET_READ (1 << (SOCKET_SHIFT + READ_SHIFT)) |
#define SOCKET_WRITE (1 << (SOCKET_SHIFT + WRITE_SHIFT)) |
#define TUN_READ (1 << (TUN_SHIFT + READ_SHIFT)) |
#define TUN_WRITE (1 << (TUN_SHIFT + WRITE_SHIFT)) |
|
inlinestatic |
Definition at line 160 of file event.h.
References es.
Referenced by io_wait_dowork(), management_socket_set(), multi_tcp_wait(), socket_set(), socket_set_listen_persistent(), tun_set(), and wait_signal().
Definition at line 154 of file event.h.
References es.
Referenced by multi_tcp_delete_event(), and multi_tcp_dereference_instance().
|
inlinestatic |
Definition at line 139 of file event.h.
References es.
Referenced by do_close_event_set(), man_connection_close(), and multi_tcp_free().
|
inlinestatic |
Definition at line 148 of file event.h.
References es.
Referenced by io_wait_dowork(), and man_block().
struct event_set* event_set_init | ( | int * | maxevents, |
unsigned int | flags | ||
) |
Definition at line 1186 of file event.c.
References EVENT_METHOD_FAST, event_set_init_scalable(), and event_set_init_simple().
Referenced by do_event_set_init(), man_connection_init(), and multi_tcp_init().
|
inlinestatic |
Definition at line 176 of file event.h.
References event_set_return::arg, and event_set_return::rwflags.
|
inlinestatic |
Definition at line 166 of file event.h.
References es, PERF_IO_WAIT, perf_pop(), and perf_push().
Referenced by io_wait_dowork(), man_block(), and multi_tcp_wait().
|
inlinestatic |
Definition at line 185 of file event.h.
References es, event_ctl(), EVENT_READ, HANDLE_DEFINED, win32_signal::in, and rw_handle::read.
Referenced by io_wait_dowork(), and multi_tcp_init().