libuv/ol-unix.h
Ryan Dahl fa85f4ac59 Use dashes in name
modern looking
2011-03-24 01:53:26 -07:00

35 lines
507 B
C

/**
* Note can be cast to io_vec.
*/
typedef struct {
char* buf;
size_t len;
} ol_buf;
typedef struct {
ol_buf* bufs;
int bufcnt;
int current_index;
size_t written;
ol_write_cb write_cb;
ol_handle* handle;
ngx_queue_s write_queue;
} ol_bucket;
typedef struct {
int fd;
ol_handle_type type;
ol_read_cb read_cb;
ol_close_cb close_cb;
ol_connect_cb connect_cb;
ev_io read_watcher;
ev_io write_watcher;
ngx_queue_s write_queue;
ngx_queue_s all_handles;
} ol_handle;