21 #ifndef __EDELIB_LISTENER_H__
22 #define __EDELIB_LISTENER_H__
24 #include "edelib-global.h"
51 EDELIB_API
void listener_add_fd(
int fd,
int when,
void(*cb)(
int,
void*),
void* arg = 0);
56 EDELIB_API
inline void listener_add_fd(
int fd,
void(*cb)(
int,
void*),
void* arg = 0) {
66 EDELIB_API
void listener_remove_fd(
int fd,
int when);
87 EDELIB_API
double listener_wait(
double t);
callback is called when there is data to be written without blocking
Definition: Listener.h:30
void listener_add_fd(int fd, int when, void(*cb)(int, void *), void *arg=0)
double listener_wait(double t)
callback is called when there is data to be read
Definition: Listener.h:29
void listener_remove_fd(int fd, int when)
callback is called when exception happens on descriptor
Definition: Listener.h:31