RESULT_CLOSE
};
-enum io_state {
- IO_IO,
- IO_FINISHED
-};
-
/**
* struct io_plan - returned from a setup function.
*
*/
struct io_plan {
int pollflag;
- enum io_state state;
+ /* Only NULL if idle. */
enum io_result (*io)(struct io_conn *conn);
+ /* Only NULL if closing. */
struct io_plan (*next)(struct io_conn *, void *arg);
void *next_arg;