unbound 0.1
ub_event_vmt Struct Reference

The Virtual Method Table for and ub_event "object". More...

#include <unbound-event.h>

Data Fields

void(*) add_bits (struct ub_event *, short)
 Add event bits for this event to fire on.
void(*) 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.
void(*) 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.
void(*) free (struct ub_event *)
 Destructor for the ub_event object.
int(*) add (struct ub_event *, struct timeval *)
 Activate the event.
int(*) del (struct ub_event *)
 Deactivate the event.
int(*) add_timer (struct ub_event *, struct ub_event_base *, void(*cb)(int, short, void *), void *arg, struct timeval *)
 Reconfigure and activate a timeout event.
int(*) del_timer (struct ub_event *)
 Deactivate the timeout event.
int(*) add_signal (struct ub_event *, struct timeval *)
 Activate a signal event (not called by libunbound).
int(*) del_signal (struct ub_event *)
 Deactivate a signal event (not called by libunbound).
void(*) winsock_unregister_wsaevent (struct ub_event *ev)
 Destructor for a ub_event associated with a wsaevent, (not called by libunbound).
void(*) 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.

Detailed Description

The Virtual Method Table for and ub_event "object".

Field Documentation

◆ 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.

Referenced by ub_event_add_bits().

◆ 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.

Referenced by ub_event_del_bits().

◆ 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.

Referenced by ub_event_set_fd().

◆ free

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

Destructor for the ub_event object.

Referenced by ub_event_free().

◆ add

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

Activate the event.

The given timeval is an timeout value.

Referenced by ub_event_add().

◆ del

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

Deactivate the event.

Referenced by ub_event_del().

◆ 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.

Referenced by ub_timer_add().

◆ del_timer

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

Deactivate the timeout event.

Referenced by ub_timer_del().

◆ add_signal

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

Activate a signal event (not called by libunbound).

Referenced by ub_signal_add().

◆ del_signal

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

Deactivate a signal event (not called by libunbound).

Referenced by ub_signal_del().

◆ 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).

Referenced by ub_winsock_unregister_wsaevent().

◆ 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.

Referenced by ub_winsock_tcp_wouldblock().


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