diff options
Diffstat (limited to 'deps/uv/include/uv-win.h')
-rw-r--r-- | deps/uv/include/uv-win.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/deps/uv/include/uv-win.h b/deps/uv/include/uv-win.h index 83dbebe3b8..a3ad457751 100644 --- a/deps/uv/include/uv-win.h +++ b/deps/uv/include/uv-win.h @@ -48,7 +48,8 @@ typedef struct uv_buf_t { UV_ARES_CLEANUP_REQ, \ UV_GETADDRINFO_REQ, \ UV_PROCESS_EXIT, \ - UV_PROCESS_CLOSE + UV_PROCESS_CLOSE, \ + UV_UDP_RECV #define UV_REQ_PRIVATE_FIELDS \ union { \ @@ -58,7 +59,6 @@ typedef struct uv_buf_t { size_t queued_bytes; \ }; \ }; \ - uv_err_t error; \ struct uv_req_s* next_req; #define UV_WRITE_PRIVATE_FIELDS \ @@ -70,6 +70,9 @@ typedef struct uv_buf_t { #define UV_SHUTDOWN_PRIVATE_FIELDS \ /* empty */ +#define UV_UDP_SEND_PRIVATE_FIELDS \ + /* empty */ + #define UV_PRIVATE_REQ_TYPES \ typedef struct uv_pipe_accept_s { \ UV_REQ_FIELDS \ @@ -109,11 +112,22 @@ typedef struct uv_buf_t { #define UV_TCP_PRIVATE_FIELDS \ SOCKET socket; \ + uv_err_t bind_error; \ union { \ struct { uv_tcp_server_fields }; \ struct { uv_tcp_connection_fields }; \ }; +#define UV_UDP_PRIVATE_FIELDS \ + SOCKET socket; \ + unsigned int reqs_pending; \ + uv_req_t recv_req; \ + uv_buf_t recv_buffer; \ + struct sockaddr_storage recv_from; \ + int recv_from_len; \ + uv_udp_recv_cb recv_cb; \ + uv_alloc_cb alloc_cb; + #define uv_pipe_server_fields \ uv_pipe_accept_t accept_reqs[4]; \ uv_pipe_accept_t* pending_accepts; @@ -157,8 +171,7 @@ typedef struct uv_buf_t { #define UV_HANDLE_PRIVATE_FIELDS \ uv_handle_t* endgame_next; \ - unsigned int flags; \ - uv_err_t error; + unsigned int flags; #define UV_ARES_TASK_PRIVATE_FIELDS \ struct uv_req_s ares_req; \ |