Electroneum
ub_event_vmt Struct Reference

#include <unbound-event.h>

Public Attributes

void(* add_bits )(struct ub_event *, short)
 
void(* del_bits )(struct ub_event *, short)
 
void(* set_fd )(struct ub_event *, int)
 
void(* free )(struct ub_event *)
 
int(* add )(struct ub_event *, struct timeval *)
 
int(* del )(struct ub_event *)
 
int(* add_timer )(struct ub_event *, struct ub_event_base *, void(*cb)(int, short, void *), void *arg, struct timeval *)
 
int(* del_timer )(struct ub_event *)
 
int(* add_signal )(struct ub_event *, struct timeval *)
 
int(* del_signal )(struct ub_event *)
 
void(* winsock_unregister_wsaevent )(struct ub_event *ev)
 
void(* winsock_tcp_wouldblock )(struct ub_event *, int eventbit)
 

Detailed Description

The Virtual Method Table for and ub_event "object"

Definition at line 125 of file unbound-event.h.

Member Data Documentation

◆ add

int(* ub_event_vmt::add) (struct ub_event *, struct timeval *)

Activate the event. The given timeval is an timeout value.

Definition at line 138 of file unbound-event.h.

◆ add_bits

void(* ub_event_vmt::add_bits) (struct ub_event *, short)

Add event bits for this event to fire on. The event will be deactivated before this function is called.

Definition at line 128 of file unbound-event.h.

◆ add_signal

int(* ub_event_vmt::add_signal) (struct ub_event *, struct timeval *)

Activate a signal event (not called by libunbound).

Definition at line 147 of file unbound-event.h.

◆ add_timer

int(* ub_event_vmt::add_timer) (struct ub_event *, struct ub_event_base *, void(*cb)(int, short, void *), void *arg, struct timeval *)

Reconfigure and activate a timeout event

Definition at line 142 of file unbound-event.h.

◆ del

int(* ub_event_vmt::del) (struct ub_event *)

Deactivate the event

Definition at line 140 of file unbound-event.h.

◆ del_bits

void(* ub_event_vmt::del_bits) (struct ub_event *, short)

Configure the event so it will not longer fire on given bits The event will be deactivated before this function is called.

Definition at line 131 of file unbound-event.h.

◆ del_signal

int(* ub_event_vmt::del_signal) (struct ub_event *)

Deactivate a signal event (not called by libunbound).

Definition at line 149 of file unbound-event.h.

◆ del_timer

int(* ub_event_vmt::del_timer) (struct ub_event *)

Deactivate the timeout event

Definition at line 145 of file unbound-event.h.

◆ free

void(* ub_event_vmt::free) (struct ub_event *)

Destructor for the ub_event object

Definition at line 136 of file unbound-event.h.

◆ set_fd

void(* ub_event_vmt::set_fd) (struct ub_event *, int)

Change or set the file descriptor on the event The event will be deactivated before this function is called.

Definition at line 134 of file unbound-event.h.

◆ winsock_tcp_wouldblock

void(* ub_event_vmt::winsock_tcp_wouldblock) (struct ub_event *, int eventbit)

Libunbound will signal the eventloop when a TCP windows socket will block on next read or write (given by the eventbits), to work around edge trigger event behaviour of select on windows with TCP.

Definition at line 158 of file unbound-event.h.

◆ winsock_unregister_wsaevent

void(* ub_event_vmt::winsock_unregister_wsaevent) (struct ub_event *ev)

Destructor for a ub_event associated with a wsaevent, (not called by libunbound)

Definition at line 153 of file unbound-event.h.


The documentation for this struct was generated from the following file: