OpenVPN
|
#include "event.h"
Go to the source code of this file.
Data Structures | |
struct | multi_tcp |
Functions | |
struct multi_tcp * | multi_tcp_init (int maxevents, int *maxclients) |
void | multi_tcp_free (struct multi_tcp *mtcp) |
void | multi_tcp_dereference_instance (struct multi_tcp *mtcp, struct multi_instance *mi) |
bool | multi_tcp_instance_specific_init (struct multi_context *m, struct multi_instance *mi) |
void | multi_tcp_instance_specific_free (struct multi_instance *mi) |
void | multi_tcp_link_out_deferred (struct multi_context *m, struct multi_instance *mi) |
void | tunnel_server_tcp (struct context *top) |
Main event loop for OpenVPN in TCP server mode. More... | |
void | multi_tcp_delete_event (struct multi_tcp *mtcp, event_t event) |
Definition at line 216 of file mtcp.c.
References multi_tcp::es, and event_del().
Referenced by management_delete_event().
void multi_tcp_dereference_instance | ( | struct multi_tcp * | mtcp, |
struct multi_instance * | mi | ||
) |
Definition at line 236 of file mtcp.c.
References context::c2, multi_instance::context, multi_tcp::es, event_del(), context_2::link_socket, multi_tcp::n_esr, socket_event_handle(), and multi_instance::socket_set_called.
Referenced by multi_close_instance().
void multi_tcp_free | ( | struct multi_tcp * | mtcp | ) |
Definition at line 225 of file mtcp.c.
References multi_tcp::es, multi_tcp::esr, and event_free().
Referenced by multi_uninit().
struct multi_tcp* multi_tcp_init | ( | int | maxevents, |
int * | maxclients | ||
) |
Definition at line 197 of file mtcp.c.
References ALLOC_ARRAY, ALLOC_OBJ_CLEAR, ASSERT, BASE_N_EVENTS, D_MULTI_LOW, multi_tcp::es, multi_tcp::esr, event_set_init(), max_int(), multi_tcp::maxevents, min_int(), msg, MTCP_SIG, and wait_signal().
Referenced by multi_init().
void multi_tcp_instance_specific_free | ( | struct multi_instance * | mi | ) |
Definition at line 191 of file mtcp.c.
References mbuf_free(), and multi_instance::tcp_link_out_deferred.
Referenced by multi_close_instance().
bool multi_tcp_instance_specific_init | ( | struct multi_context * | m, |
struct multi_instance * | mi | ||
) |
Definition at line 171 of file mtcp.c.
References link_socket_addr::actual, openvpn_sockaddr::addr, ASSERT, context::c2, multi_instance::context, D_MULTI_ERRORS, link_socket_actual::dest, link_socket::info, context_2::link_socket, LS_MODE_TCP_ACCEPT_FROM, link_socket_info::lsa, mbuf_init(), link_socket::mode, mroute_extract_openvpn_sockaddr(), msg, options::n_bcast_buf, context::options, multi_instance::real, openvpn_sockaddr::sa, multi_instance::tcp_link_out_deferred, and multi_context::top.
Referenced by multi_create_instance().
void multi_tcp_link_out_deferred | ( | struct multi_context * | m, |
struct multi_instance * | mi | ||
) |