unbound 0.1
ub_event_base_vmt Struct Reference

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

#include <unbound-event.h>

Data Fields

void(*) free (struct ub_event_base *)
 Destructor for the ub_event_base object, (not called by libunbound).
int(*) dispatch (struct ub_event_base *)
 Run the event loop (not called by libunbound when using ub_resolve_event).
int(*) loopexit (struct ub_event_base *, struct timeval *)
 Exit the given event loop.
struct ub_event *(*) new_event (struct ub_event_base *, int fd, short bits, void(*cb)(int, short, void *), void *arg)
 Instantiate a new ub_event associated with this event base.
struct ub_event *(*) new_signal (struct ub_event_base *, int fd, void(*cb)(int, short, void *), void *arg)
 Instantiate a new signal associated with this event base, (not called by libunbound).
struct ub_event *(*) winsock_register_wsaevent (struct ub_event_base *, void *wsaevent, void(*cb)(int, short, void *), void *arg)
 Create a new ub_event associated with the given wsaevent, (not called by libunbound).

Detailed Description

The Virtual Method Table for and ub_event_base "object".

Field Documentation

◆ free

void(*) ub_event_base_vmt::free(struct ub_event_base *)

Destructor for the ub_event_base object, (not called by libunbound).

Referenced by ub_event_base_free().

◆ dispatch

int(*) ub_event_base_vmt::dispatch(struct ub_event_base *)

Run the event loop (not called by libunbound when using ub_resolve_event).

Referenced by ub_event_base_dispatch().

◆ loopexit

int(*) ub_event_base_vmt::loopexit(struct ub_event_base *, struct timeval *)

Exit the given event loop.

Referenced by ub_event_base_loopexit().

◆ new_event

struct ub_event *(*) ub_event_base_vmt::new_event(struct ub_event_base *, int fd, short bits, void(*cb)(int, short, void *), void *arg)

Instantiate a new ub_event associated with this event base.

Referenced by ub_event_new().

◆ new_signal

struct ub_event *(*) ub_event_base_vmt::new_signal(struct ub_event_base *, int fd, void(*cb)(int, short, void *), void *arg)

Instantiate a new signal associated with this event base, (not called by libunbound).

Referenced by ub_signal_new().

◆ winsock_register_wsaevent

struct ub_event *(*) ub_event_base_vmt::winsock_register_wsaevent(struct ub_event_base *, void *wsaevent, void(*cb)(int, short, void *), void *arg)

Create a new ub_event associated with the given wsaevent, (not called by libunbound).

Referenced by ub_winsock_register_wsaevent().


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