You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

11 lines
268 B

#include "custom_poller.h"
void poller_blocked(struct poller *p, void *fdp) {
p->state = PS_WRITE_BLOCKED;
}
bool poller_isblocked(struct poller *p, void *fdp) {
return p->state != PS_OPEN;
}
void poller_error(struct poller *p, void *fdp) {
p->state = PS_ERROR;
}