Electroneum
ub_event_base_vmt Struct Reference

#include <unbound-event.h>

Collaboration diagram for ub_event_base_vmt:

Public Attributes

void(* free )(struct ub_event_base *)
 
int(* dispatch )(struct ub_event_base *)
 
int(* loopexit )(struct ub_event_base *, struct timeval *)
 
struct ub_event *(* new_event )(struct ub_event_base *, int fd, short bits, void(*cb)(int, short, void *), void *arg)
 
struct ub_event *(* new_signal )(struct ub_event_base *, int fd, void(*cb)(int, short, void *), void *arg)
 
struct ub_event *(* winsock_register_wsaevent )(struct ub_event_base *, void *wsaevent, void(*cb)(int, short, void *), void *arg)
 

Detailed Description

The Virtual Method Table for and ub_event_base "object"

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

Member Data Documentation

◆ dispatch

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

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

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

◆ free

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

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

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

◆ loopexit

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

Exit the given event loop

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

◆ 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

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

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

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

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

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


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