Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 73e3482

Browse files
committed
Addressed comments by @bnoordhuis
1 parent 64f4089 commit 73e3482

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

XXX-create-sockets-early.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ need to close the socket and replace it with the given one, which is unnecessary
4141
So, a new initialisation API function is proposed:
4242

4343
~~~~
44-
int uv_tcp_init2(uv_loop_t* loop, uv_tcp_t* handle, uv_os_fd_t fd);
45-
int uv_udp_init2(uv_loop_t* loop, uv_udp_t* handle, uv_os_fd_t fd);
46-
int uv_pipe_init2(uv_loop_t* loop, uv_pipe_t* handle, uv_os_fd_t fd);
44+
int uv_tcp_init_fd(uv_loop_t* loop, uv_tcp_t* handle, uv_os_fd_t fd);
45+
int uv_udp_init_fd(uv_loop_t* loop, uv_udp_t* handle, uv_os_fd_t fd);
46+
int uv_pipe_init_fd(uv_loop_t* loop, uv_pipe_t* handle, uv_os_fd_t fd);
4747
~~~~
4848

4949
This function will initialize the handle with the given fd instead of creating a new
@@ -56,4 +56,3 @@ Optionally, since users might need to manually set the fd to non-blocking, we co
5656
~~~~
5757
int uv_nonblock(uv_os_fd_t fd, int enable)
5858
~~~~
59-

0 commit comments

Comments
 (0)