This repository has been archived by the owner on May 4, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Igor Zinkovsky
committed
Oct 5, 2011
1 parent
29881be
commit 6f3e89b
Showing
14 changed files
with
762 additions
and
290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,11 @@ typedef struct uv_buf_t { | |
char* base; | ||
} uv_buf_t; | ||
|
||
typedef struct uv_duplicate_socket_info_s { | ||
WSAPROTOCOL_INFOW socket_info; | ||
struct uv_duplicate_socket_info_s* next; | ||
} uv_duplicate_socket_info_t; | ||
|
||
typedef int uv_file; | ||
|
||
RB_HEAD(uv_timer_tree_s, uv_timer_s); | ||
|
@@ -120,6 +125,8 @@ RB_HEAD(uv_timer_tree_s, uv_timer_s); | |
UV_REQ_FIELDS \ | ||
SOCKET accept_socket; \ | ||
char accept_buffer[sizeof(struct sockaddr_storage) * 2 + 32]; \ | ||
HANDLE event_handle; \ | ||
This comment has been minimized.
Sorry, something went wrong. |
||
HANDLE wait_handle; \ | ||
struct uv_tcp_accept_s* next_pending; \ | ||
} uv_tcp_accept_t; | ||
|
||
|
@@ -140,10 +147,12 @@ RB_HEAD(uv_timer_tree_s, uv_timer_s); | |
|
||
#define uv_tcp_server_fields \ | ||
uv_tcp_accept_t* accept_reqs; \ | ||
uv_tcp_accept_t* pending_accepts; | ||
uv_tcp_accept_t* pending_accepts; \ | ||
LPFN_ACCEPTEX func_acceptex; | ||
|
||
#define uv_tcp_connection_fields \ | ||
uv_buf_t read_buffer; | ||
uv_buf_t read_buffer; \ | ||
LPFN_CONNECTEX func_connectex; | ||
|
||
#define UV_TCP_PRIVATE_FIELDS \ | ||
SOCKET socket; \ | ||
|
@@ -164,11 +173,15 @@ RB_HEAD(uv_timer_tree_s, uv_timer_s); | |
uv_alloc_cb alloc_cb; | ||
|
||
#define uv_pipe_server_fields \ | ||
uv_pipe_accept_t accept_reqs[4]; \ | ||
uv_pipe_accept_t* pending_accepts; | ||
uv_pipe_accept_t accept_reqs[4]; \ | ||
uv_pipe_accept_t* pending_accepts; | ||
|
||
#define uv_pipe_connection_fields \ | ||
uv_timer_t* eof_timer; | ||
uv_timer_t* eof_timer; \ | ||
uv_write_t ipc_header_write_req; \ | ||
This comment has been minimized.
Sorry, something went wrong.
piscisaureus
|
||
int ipc_pid; \ | ||
uint64_t remaining_ipc_rawdata_bytes; \ | ||
uv_duplicate_socket_info_t* pending_ipc_sockets; | ||
This comment has been minimized.
Sorry, something went wrong.
piscisaureus
|
||
|
||
#define UV_PIPE_PRIVATE_FIELDS \ | ||
HANDLE handle; \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
For now, this seems right; eventually it may be better to add these handles to uv_req_s. Maybe we can also unify the life cycles of these handles then.