55 #ifndef _UB_UNBOUND_EVENT_H 56 #define _UB_UNBOUND_EVENT_H 67 #define UB_EV_TIMEOUT 0x01 69 #define UB_EV_READ 0x02 71 #define UB_EV_WRITE 0x04 73 #define UB_EV_SIGNAL 0x08 75 #define UB_EV_PERSIST 0x10 78 #define UB_EVENT_MAGIC 0x44d74d78 98 int fd,
short bits, void (*cb)(int, short,
void*),
void* arg);
102 void (*cb)(int, short,
void*),
void* arg);
106 void* wsaevent, void (*cb)(int, short,
void*),
void* arg);
143 void (*cb)(int, short,
void*),
void* arg,
struct timeval*);
struct ub_event_base * event_base
struct ub_ctx * ub_ctx_create_event(struct event_base *base)
int ub_ctx_set_event(struct ub_ctx *ctx, struct event_base *base)
int(* dispatch)(struct ub_event_base *)
struct ub_event_vmt * vmt
void(* ub_event_callback_type)(void *, int, void *, int, int, char *)
int(* loopexit)(struct ub_event_base *, struct timeval *)
void(* free)(struct ub_event_base *)
int(* del_timer)(struct ub_event *)
void(* del_bits)(struct ub_event *, short)
struct ub_event_base_vmt * vmt
void(* winsock_tcp_wouldblock)(struct ub_event *, int eventbit)
int(* add_signal)(struct ub_event *, struct timeval *)
void(* winsock_unregister_wsaevent)(struct ub_event *ev)
void(* set_fd)(struct ub_event *, int)
int ub_resolve_event(struct ub_ctx *ctx, const char *name, int rrtype, int rrclass, void *mydata, ub_event_callback_type callback, int *async_id)
int(* del_signal)(struct ub_event *)
int(* add_timer)(struct ub_event *, struct ub_event_base *, void(*cb)(int, short, void *), void *arg, struct timeval *)
void(* add_bits)(struct ub_event *, short)
struct ub_ctx * ub_ctx_create_ub_event(struct ub_event_base *base)
void(* free)(struct ub_event *)
int(* add)(struct ub_event *, struct timeval *)
int(* del)(struct ub_event *)