libuv/src
Saúl Ibarra Corretgé f8f59824c4 unix, win: add ability to create tcp/udp sockets early
Introduce two new APIs:

int uv_tcp_init_ex(uv_loop_t*, uv_tcp_t* handle, int flags)
int uv_udp_init_ex(uv_loop_t*, uv_udp_t* handle, int flags)

The lower 8 bits of the flags field are used for the socket domain.
AF_INET, AF_INET6 and AF_UNSPEC are supported. If AF_UNSPEC is specified
the socket is created lazily, just like uv_{tcp,udp}_init.

Some Windows notes:

getsockname fails with WSAEINVAL if the socket is not bound. This could
potentially be improved by detecting the socket family and filling
the sockaddr_in/6 struct manually.

bind returns WSAEFAULT if we try to bind a socket to the wrong family.
Unix returns EINVAL.

PR-URL: https://github.com/libuv/libuv/pull/400
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-06-19 09:37:19 +02:00
..
unix unix, win: add ability to create tcp/udp sockets early 2015-06-19 09:37:19 +02:00
win unix, win: add ability to create tcp/udp sockets early 2015-06-19 09:37:19 +02:00
fs-poll.c core: add ability to customize memory allocator 2015-06-02 12:05:20 +02:00
heap-inl.h heap: fix heap_remove() 2014-05-23 20:04:42 +04:00
inet.c unix, windows: fix parsing scoped IPv6 addresses 2014-05-25 23:30:46 +02:00
queue.h queue: strengthen type checks 2013-11-02 13:55:57 +01:00
threadpool.c core: add ability to customize memory allocator 2015-06-02 12:05:20 +02:00
uv-common.c win: include "malloc.h" 2015-06-15 09:50:20 +02:00
uv-common.h win,stream: add slot to remember CRT fd 2015-06-14 16:22:17 -07:00
version.c Now working on v0.10.31 2014-12-09 19:49:50 +01:00