Displaying 2 results from an estimated 2 matches for "event_handler_t".
Did you mean:
event_handler
2009 Nov 14
1
drivers- dynamically adding filedescriptors to poll
...need this, in order to support asynchronous I/O in
libusb-1.0. The latter would be a huge improvement over the existing
libusb-0.1 (compatibility) interface we're using right now.
It is my intention to add something like the following:
typedef struct {
struct pollfd *fds;
nfds_t nfds;
event_handler_t *handler;
} event_t;
typedef struct {
struct pollfd fds;
void (*callback)(void *data);
void *data;
} event_handler_t;
int dstate_event_poll(event_t *events, int timeout);
int dstate_event_add(event_handler_t *handler);
int dstate_event_del(event_handler_t *handler);
When there is activity on...
2010 Sep 20
0
No subject
...mtu_probe(from);
-
+ if(from->options & OPTION_PMTU_DISCOVERY && !from->mtuevent) {
+ //if(strcmp(from->name, myself->name) > 0) {
+ // // delay mtu discovery to prevent synchronous bursts
+ // from->mtuevent =3D new_event();
+ // from->mtuevent->handler =3D (event_handler_t)send_mtu_probe;
+ // from->mtuevent->data =3D from;
+ // from->mtuevent->time =3D now + 1;
+ // event_add(from->mtuevent);
+ //}else
+ send_mtu_probe(from);
+ }
return true;
}
diff --git a/src/route.c b/src/route.c
index 1caf738..b1a6389 100644
--- a/src/route.c
+++ b/src/ro...