#
d05ed869 |
| 25-Mar-2024 |
Ben Noordhuis |
doc: correct udp socket options documentation (#4371) uv_udp_init() creates the UDP socket lazily but to set socket options there must be, well, a socket to set the options on. Document
doc: correct udp socket options documentation (#4371) uv_udp_init() creates the UDP socket lazily but to set socket options there must be, well, a socket to set the options on. Document how and when that requirement is met. Fixes: https://github.com/libuv/libuv/issues/4370
show more ...
|
#
3990fcad |
| 12-May-2023 |
cui fliter |
docs: fix some typos (#3984)
|
#
5c85d67b |
| 13-Jul-2021 |
Ryan Liptak |
doc,udp: note that suggested_size is 1 max-sized dgram The intention here is to make working with recvmmsg more straight-forward, since internally libuv expects buffers that are mult
doc,udp: note that suggested_size is 1 max-sized dgram The intention here is to make working with recvmmsg more straight-forward, since internally libuv expects buffers that are multiples of UV__UDP_DGRAM_MAXSIZE, but previously the availability of that value wasn't readily apparent to the caller. Closes: https://github.com/libuv/libuv/issues/2822 Closes: https://github.com/libuv/libuv/issues/1025 Closes: https://github.com/libuv/libuv/pull/1114 PR-URL: https://github.com/libuv/libuv/pull/2986 Reviewed-By: Jameson Nash <vtjnash@gmail.com>
show more ...
|
Revision tags: v1.41.0, v1.40.0, v1.39.0, v1.38.1 |
|
#
c382d39a |
| 29-May-2020 |
Ondřej Surý |
linux,udp: enable full ICMP error reporting The Linux kernel suppresses some ICMP error messages by default for UDP sockets. This commit sets IP_RECVERR/IPV6_RECVERR on the socket to
linux,udp: enable full ICMP error reporting The Linux kernel suppresses some ICMP error messages by default for UDP sockets. This commit sets IP_RECVERR/IPV6_RECVERR on the socket to enable full ICMP error reporting, hopefully resulting in faster failover to working name servers. PR-URL: https://github.com/libuv/libuv/pull/2872 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
#
9cc2667f |
| 03-Dec-2020 |
Ethel Weston <66453757+ethelweston@users.noreply.github.com> |
doc: clarify UDP errors and recvmmsg PR-URL: https://github.com/libuv/libuv/pull/3061 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
doc: clarify UDP errors and recvmmsg PR-URL: https://github.com/libuv/libuv/pull/3061 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
#
45478378 |
| 03-Sep-2020 |
cjihrig |
doc: correct UV_UDP_MMSG_FREE version added Refs: https://github.com/libuv/libuv/pull/2836 PR-URL: https://github.com/libuv/libuv/pull/2985 Reviewed-By: Richard Lau <riclau@uk.ibm.co
doc: correct UV_UDP_MMSG_FREE version added Refs: https://github.com/libuv/libuv/pull/2836 PR-URL: https://github.com/libuv/libuv/pull/2985 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
Revision tags: v1.38.0 |
|
#
ea17e1cf |
| 06-May-2020 |
Ryan Liptak |
udp: add UV_UDP_MMSG_FREE recv_cb flag Refs: https://github.com/libuv/libuv/issues/2822 PR-URL: https://github.com/libuv/libuv/pull/2836 Reviewed-By: Ben Noordhuis <info@bnoordhuis.n
udp: add UV_UDP_MMSG_FREE recv_cb flag Refs: https://github.com/libuv/libuv/issues/2822 PR-URL: https://github.com/libuv/libuv/pull/2836 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Jameson Nash <vtjnash@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
#
707dd7f1 |
| 18-Aug-2020 |
Jameson Nash |
doc: fix most sphinx warnings PR-URL: https://github.com/libuv/libuv/pull/2956 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
|
#
6b5aa669 |
| 29-Jul-2020 |
Ryan Liptak |
udp: add uv_udp_using_recvmmsg query Allows for determining if a buffer large enough for multiple dgrams should be allocated in alloc_cb of uv_udp_recvstart, for example. Contributes
udp: add uv_udp_using_recvmmsg query Allows for determining if a buffer large enough for multiple dgrams should be allocated in alloc_cb of uv_udp_recvstart, for example. Contributes towards #2822. PR-URL: https://github.com/libuv/libuv/pull/2830 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Jameson Nash <vtjnash@gmail.com>
show more ...
|
Revision tags: v1.37.0 |
|
#
5736658b |
| 18-Apr-2020 |
Saúl Ibarra Corretgé |
udp: add flag to enable recvmmsg(2) explicitly Instead of implicitly enabling it by checking the supplied buffer size to alloc_cb, have a dedicated flag that must be set on `uv_udp_init_
udp: add flag to enable recvmmsg(2) explicitly Instead of implicitly enabling it by checking the supplied buffer size to alloc_cb, have a dedicated flag that must be set on `uv_udp_init_ex`. Fixes: https://github.com/libuv/libuv/issues/2791 Closes: https://github.com/libuv/libuv/pull/2792 PR-URL: https://github.com/libuv/libuv/pull/2799 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
Revision tags: v1.36.0 |
|
#
d9cd7d43 |
| 12-Mar-2020 |
Saúl Ibarra Corretgé |
udp: return recvmmsg-ed datagrams in order When recvmmsg support was added it returned the datagrams in reverse received order, which may impact some applications. To restore th
udp: return recvmmsg-ed datagrams in order When recvmmsg support was added it returned the datagrams in reverse received order, which may impact some applications. To restore the previous behavior, we call recv_cb one last time with nread == 0 and addr == NULL so applications can free the buffer. PR-URL: https://github.com/libuv/libuv/pull/2736 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
Revision tags: v1.35.0, v1.34.2, v1.34.1, v1.34.0, v1.33.1, v1.33.0, v1.32.0, v1.31.0, v1.30.1, v1.30.0, v1.29.1, v1.29.0, v1.28.0, v1.27.0, v1.26.0, v1.25.0, v1.24.1, v1.24.0, v1.23.2, v1.23.1, v1.23.0, v1.22.0, v1.21.0, v1.20.3, v1.20.2, v1.20.1, v1.20.0, v1.19.2, v1.19.1, v1.19.0, v1.18.0, v1.17.0, v1.16.1, v1.16.0, v1.15.0, v1.14.1, v1.14.0, v1.13.1, v1.13.0, v1.12.0, v1.11.0, v1.10.2, v1.10.1, v1.10.0, v0.10.37, v1.9.1, v1.9.0, v1.8.0, v1.7.5, v1.7.4, v1.7.3, v1.7.2, v1.7.1, v1.7.0 |
|
#
3d713663 |
| 08-Jul-2015 |
Marek Vavrusa |
freebsd,linux: add recvmmsg() + sendmmsg() udp implementation This commits adds support for recvmmsg() and sendmmsg() extensions to recvmsg() and sendmsg() that allows the caller to rece
freebsd,linux: add recvmmsg() + sendmmsg() udp implementation This commits adds support for recvmmsg() and sendmmsg() extensions to recvmsg() and sendmsg() that allows the caller to receive and send multiple message from a socket using a single system call. This has performance benefits for some applications. Co-authored-by: Ondřej Surý <ondrej@sury.org> Co-authored-by: Witold Kręcicki <wpk@culm.net> PR-URL: https://github.com/libuv/libuv/pull/2532 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <s@saghul.net> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
#
91d95f8c |
| 31-Jul-2016 |
Vladimir Karnushin |
udp: add source-specific multicast support PR-URL: https://github.com/libuv/libuv/pull/2202 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Santiago Gimeno <santiag
udp: add source-specific multicast support PR-URL: https://github.com/libuv/libuv/pull/2202 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
#
641ec772 |
| 22-Aug-2019 |
Tomas Krizek |
doc: clarify uv_buf_t usage in uv_alloc_cb Clarify the uv_buf_t isn't reused and the user is responsible for freeing it in the recv/read callback. Previously, this wasn't clear
doc: clarify uv_buf_t usage in uv_alloc_cb Clarify the uv_buf_t isn't reused and the user is responsible for freeing it in the recv/read callback. Previously, this wasn't clear when reading only the docs for uv_udp_recv_cb and uv_alloc_cb. PR-URL: https://github.com/libuv/libuv/pull/2438 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
#
90415a33 |
| 20-Mar-2017 |
Santiago Gimeno |
udp: add support for UDP connected sockets Add two new methods: `uv_udp_connect()` to connect / disconnect an UDP handle. `uv_udp_getpeername()` to get the remote peer address o
udp: add support for UDP connected sockets Add two new methods: `uv_udp_connect()` to connect / disconnect an UDP handle. `uv_udp_getpeername()` to get the remote peer address of a connected UDP handle. Modify `uv_udp_send()` and `uv_udp_try_send()` to accept a `NULL` `addr` to send messages over an "UDP connection". Refs: https://github.com/libuv/leps/pull/10 PR-URL: https://github.com/libuv/libuv/pull/1872 Backport-PR-URL: https://github.com/libuv/libuv/pull/2217 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
#
2b32e77b |
| 28-Dec-2017 |
Bartosz Sosnowski |
win: map 0.0.0.0 and :: addresses to localhost On Linux when connecting IP addresses 0.0.0.0 and :: are automatically converted to localhost. This adds same functionality to Windows.
win: map 0.0.0.0 and :: addresses to localhost On Linux when connecting IP addresses 0.0.0.0 and :: are automatically converted to localhost. This adds same functionality to Windows. PR-URL: https://github.com/libuv/libuv/pull/1515 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|
#
0d6525ac |
| 29-Nov-2017 |
Anna Henningsen |
core: add getter/setter functions for easier ABI compat Add getter/setter functions for the fields of public structs that might be relevant to e.g. Node.js addons. Through these
core: add getter/setter functions for easier ABI compat Add getter/setter functions for the fields of public structs that might be relevant to e.g. Node.js addons. Through these methods, ABI compatibility for a subset of the ABI is easier to achieve, since using them makes code independent of the exact offsets of these fields. The intended use case that prompted this are N-API addons for Node.js, which look for more long-term ABI compatibility guarantees than typical Node code. With these helper functions, using libuv directly should no longer be an obstacle for such addons. PR-URL: https://github.com/libuv/libuv/pull/1657 Refs: https://github.com/nodejs/node/issues/13512 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
#
e110c46b |
| 09-Jul-2015 |
Yosuke Furukawa |
doc: add missing variable name PR-URL: https://github.com/libuv/libuv/pull/432 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> |
#
f8f59824 |
| 16-Jun-2015 |
Saúl Ibarra Corretgé |
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_
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>
show more ...
|
Revision tags: v1.6.1, v1.6.0, v1.5.0 |
|
#
db39a6ce |
| 23-Mar-2015 |
Saúl Ibarra Corretgé |
doc: clarify what uv_*_open accepts Fixes: https://github.com/libuv/libuv/issues/281 PR-URL: https://github.com/libuv/libuv/pull/284 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> |
Revision tags: v0.10.36, v1.4.2, v0.10.35, v1.4.1, v0.10.34, v1.4.0, v1.3.0, v0.10.33, v1.2.1 |
|
#
393c1c59 |
| 13-Jan-2015 |
Ben Noordhuis |
unix: set non-block mode in uv_{pipe,tcp,udp}_open The contract specifies that the file descriptor should already be in non-blocking mode before passing it to libuv. However, no
unix: set non-block mode in uv_{pipe,tcp,udp}_open The contract specifies that the file descriptor should already be in non-blocking mode before passing it to libuv. However, node users don't really have an opportunity to do so, never mind the fact that the call to uv_pipe_open() or uv_tcp_open() is an implementation detail that most users won't be aware of. Let's be nice and set the non-blocking flag explicitly. It's a cheap operation anyway. Fixes: https://github.com/libuv/libuv/issues/124 PR: https://github.com/libuv/libuv/pull/134 Reviewed-by: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
Revision tags: v1.2.0, v0.10.32, v1.1.0, v0.10.31, v1.0.2, v0.10.30, v1.0.1, v1.0.0, v0.10.29, v1.0.0-rc2, v1.0.0-rc1 |
|
#
32e2e75f |
| 06-Sep-2014 |
Saúl Ibarra Corretgé |
doc: add API documentation |