event

event

Functions

Types and Values

  Event

Description

Functions

EventIOFunc ()

int
(*EventIOFunc) (int fd,
                void *data);

EventTimeoutFunc ()

int
(*EventTimeoutFunc) (void *data);

event_new ()

Event *
event_new (void);

event_delete ()

void
event_delete (Event *event);

event_loop ()

int
event_loop (Event *event);

event_loop_quit ()

void
event_loop_quit (Event *event);

event_loop_while ()

int
event_loop_while (Event *event,
                  const int *flag);

event_register_idle ()

int
event_register_idle (Event *event,
                     EventTimeoutFunc func,
                     void *userdata);

event_register_io_read ()

int
event_register_io_read (Event *event,
                        int fd,
                        EventIOFunc func,
                        void *userdata);

event_register_io_write ()

int
event_register_io_write (Event *event,
                         int fd,
                         EventIOFunc func,
                         void *userdata);

event_register_timeout ()

int
event_register_timeout (Event *event,
                        struct timeval *timeout,
                        EventTimeoutFunc func,
                        void *userdata);

event_unregister_io_read ()

int
event_unregister_io_read (Event *event,
                          int fd);

event_unregister_io_write ()

int
event_unregister_io_write (Event *event,
                           int fd);

event_unregister_timeout ()

int
event_unregister_timeout (Event *event,
                          EventTimeoutFunc func);

Types and Values

Event

typedef struct _Event Event;