libuv/ol_unix.h

26 lines
362 B
C
Raw Normal View History

2011-03-23 12:56:06 +00:00
/**
* Note can be cast to io_vec.
*/
2011-03-24 03:40:55 +00:00
typedef struct {
2011-03-23 12:56:06 +00:00
char* buf;
size_t len;
ngx_queue_s write_queue;
} ol_buf;
2011-03-24 03:40:55 +00:00
typedef struct {
2011-03-23 12:56:06 +00:00
int fd;
2011-03-24 03:40:55 +00:00
ol_handle_type type;
2011-03-23 12:56:06 +00:00
ol_read_cb read_cb;
ol_close_cb close_cb;
2011-03-24 03:40:55 +00:00
ol_connect_cb connect_cb;
ev_io read_watcher;
ev_io write_watcher;
2011-03-23 12:56:06 +00:00
ngx_queue_s write_queue;
ngx_queue_s all_handles;
} ol_handle;