aboutsummaryrefslogtreecommitdiff
path: root/docs/src
Commit message (Collapse)AuthorAge
...
* doc: fix unescaped characterPhilip Chimento2020-04-22
| | | | | | | | This was causing a warning during the documentation build. PR-URL: https://github.com/libuv/libuv/pull/2797 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* doc: uv_cancel() handles uv_random_t requestsPhilip Chimento2020-04-22
| | | | | | | | | | This seems to be the case from reading the code of uv_cancel(). Also fixes a broken link due to a markup typo. PR-URL: https://github.com/libuv/libuv/pull/2797 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* doc: correct source linesShohei YOSHIDA2020-04-22
| | | | | PR-URL: https://github.com/libuv/libuv/pull/2802 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
* unix,win: add uv_library_shutdown()Ben Noordhuis2020-04-22
| | | | | | | | | | | | | | | | | Make it possible to explicitly tell libuv to release any resources it's still holding onto (memory, threads, file descriptors, etc.) Before this commit, cleanup was performed in various destructors. This commit centralizes the cleanup logic, enabling the addition of `uv_library_shutdown()`, but maintains the current observable behavior of cleaning up when libuv is unloaded by means of `dlclose(3)`. Fixes: https://github.com/libuv/libuv/issues/2763 PR-URL: https://github.com/libuv/libuv/pull/2764 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
* linux: make cpu_times consistently be millisecondsJames Ross2020-04-22
| | | | | | | | | | | | | | | | On Linux, cpu_times have been calculated differently to all other platforms for a while. Other platforms (FreeBSD, Mac, Windows) are all in milliseconds, but Linux has been returning values ten times larger. libuv has not previously documented what unit cpu_times uses, even though NodeJS did - as milliseconds. Here we're both documenting that the cpu_times are indeed in milliseconds, and fixing the inconsistency on Linux. Fixes: https://github.com/libuv/libuv/issues/2773 PR-URL: https://github.com/libuv/libuv/pull/2796 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
* udp: add flag to enable recvmmsg(2) explicitlySaúl Ibarra Corretgé2020-04-19
| | | | | | | | | | | 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>
* fs: add uv_fs_lutime()Sk Sajidul Kadir2020-04-14
| | | | | | | PR-URL: https://github.com/libuv/libuv/pull/2723 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* ibmi: set the highest process priority to -10Xu Meng2020-04-06
| | | | | | | | | On IBMi PASE, the highest process priority is -10. PR-URL: https://github.com/libuv/libuv/pull/2642 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* udp: return recvmmsg-ed datagrams in orderSaúl Ibarra Corretgé2020-03-24
| | | | | | | | | | | | 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>
* freebsd,linux: add recvmmsg() + sendmmsg() udp implementationMarek Vavrusa2020-02-20
| | | | | | | | | | | | | | | 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>
* docs: uv_setup_args() may take ownership of argvBen Noordhuis2020-02-08
| | | | | | | PR-URL: https://github.com/libuv/libuv/pull/2668 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
* unix: make uv_tcp_keepalive predictableManuel BACHMANN2020-02-07
| | | | | | | | | | | | | | | | | Current UNIX systems define various defaults for TCP_KEEPINTVL and TCP_KEEPCNT, which makes the time between TCP_KEEPIDLE delay is reached and timeout effectively occurs unpredictable (Linux: /proc/sys /net/ipv4/tcp_keepalive_intvl;tcp_keepalive_probes). Do the following: set TCP_KEEPINTVL to 1 second (same as Win32 default) and TCP_KEEPCNT to 10 times (same as Win32 hardcoded value). Fixes: https://github.com/libuv/libuv/issues/2664 PR-URL: https://github.com/libuv/libuv/pull/2669 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
* doc: strip ICC profile from 2 jpg filesDominique Dumont2020-02-07
| | | | | | | | | | | | | | | | | | | | | | The embedded color profiles are proprietary data. Considering that embedding a color profile in a image is not necessary when color accuracy is not important, it's better to strip them. This was done with: convert -strip docs/src/static/diagrams.key/Data/st0-311.jpg \ docs/src/static/diagrams.key/Data/st0-311.jpg convert -strip docs/src/static/diagrams.key/Data/st1-475.jpg \ docs/src/static/diagrams.key/Data/st1-475.jpg convert command comes from ImageMagick project. Fixes: https://github.com/libuv/libuv/issues/2670 PR-URL: https://github.com/libuv/libuv/pull/2672 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
* pipe: disallow listening on an IPC pipeWitold Kręcicki2020-01-31
| | | | | | PR-URL: https://github.com/libuv/libuv/pull/2559 Reviewed-By: Jameson Nash <vtjnash@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <s@saghul.net>
* docs: clarify that uv_pipe_t is a pipeJameson Nash2020-01-09
| | | | | | | | | | | Some people have misread this section to imply that libuv does not support Unix `pipe` objects, while it only should be saying that the UV_CREATE_PIPE makes a socketpair. Clarify the docs to say specifically that `uv_pipe_t` represents any local file stream. PR-URL: https://github.com/libuv/libuv/pull/2607 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
* docs: switch from linux.die.net to man7.orgJameson Nash2020-01-08
| | | | | | | | | | The former was missing `urandom`, while the later is the host site for https://www.kernel.org/doc/man-pages PR-URL: https://github.com/libuv/libuv/pull/2608 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
* docs: fix linkcheckJameson Nash2020-01-08
| | | | | | | | | | Prefer https when available, follow permanent redirects, and find alternate sources for dead links. PR-URL: https://github.com/libuv/libuv/pull/2608 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
* docs: fix formattingJameson Nash2020-01-07
| | | | | | | | | Introduced in https://github.com/libuv/libuv/pull/2404 and https://github.com/libuv/libuv/pull/2347. PR-URL: https://github.com/libuv/libuv/pull/2609 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
* fs: add uv_fs_mkstempSaúl Ibarra Corretgé2019-12-03
| | | | | | | | | | Thanks to Andreas Hauptmann and Bastian Schmitz for their earlier work. Supersedes: https://github.com/libuv/libuv/pull/2074 Closes: https://github.com/libuv/libuv/issues/2555 PR-URL: https://github.com/libuv/libuv/pull/2557 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* unix,win: add uv_sleep()cjihrig2019-11-25
| | | | | | | | | This commit exposes the uv_sleep() function that previously only existed in the test runner. PR-URL: https://github.com/libuv/libuv/pull/2548 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
* netbsd: use KERN_ARND sysctl to get entropynia2019-10-29
| | | | | | | | PR-URL: https://github.com/libuv/libuv/pull/2528 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <s@saghul.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
* unix: update uv_fs_copyfile() fallback logicStefan Bender2019-10-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | This commit fixes uv_fs_copyfile() in cases where an unknown error occurs when copy-on-write is requested by setting UV_FS_COPYFILE_FICLONE. The original approach tried to catch some of the errors raised by the ioctl() call, assuming that sendfile() would also fail in those cases. This is not necessarily true, as some variants of ioctl() also raise EINVAL (some maybe EBADF), but sendfile() works just fine. This patch reverses the logic, falling back to sendfile() in any case where ioctl() returns an error. In other words, it tries much harder to make uv_fs_copyfile() work. Related to that, the original approach returned UV_ENOTSUP unconditionally in cases where ioctl() failed and UV_FS_COPYFILE_FICLONE_FORCE was set. However, ioctl() may have failed for other reasons than being not supported. The function now returns the actual error raised by ioctl(), leaving it to the caller to deal with it. Fixes: https://github.com/libuv/libuv/issues/2483 PR-URL: https://github.com/libuv/libuv/pull/2514 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* doc: improve uv_{send,recv}_buffer_size() docsRyan Liptak2019-10-14
| | | | | | PR-URL: https://github.com/libuv/libuv/pull/2508 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* win,tty: add uv_tty_{get,set}_vterm_stateerw72019-10-09
| | | | | | | PR-URL: https://github.com/libuv/libuv/pull/2501 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <s@saghul.net> Reviewed-By: Jameson Nash <vtjnash+github@gmail.com>
* doc: improve uv_fs_readdir() cleanup docscjihrig2019-10-06
| | | | | | | | | | When cleaning up after uv_fs_readdir(), it is important to call uv_fs_req_cleanup() on the readdir request prior to calling uv_fs_closedir(), because the latter frees memory that the former needs in order to do its job. PR-URL: https://github.com/libuv/libuv/pull/2497 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
* docs: fix literal-includes in User GuideNhan Khong2019-09-25
| | | | | | | | | | Using raw copies in place of sphinx literalinclude directives as the API of v1.x is now stable. Fixes: https://github.com/libuv/libuv/issues/2350 PR-URL: https://github.com/libuv/libuv/pull/2353 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <s@saghul.net>
* unix,win: add uv_random()Ben Noordhuis2019-09-18
| | | | | | | | | | | Add an API for obtaining cryptographically strong random data from the system PRNG. Co-authored-by: Saúl Ibarra Corretgé <s@saghul.net> Refs: https://github.com/libuv/libuv/pull/1055 PR-URL: https://github.com/libuv/libuv/pull/2347 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
* doc: uv_handle_t documentation suggestionDaniel Bevenius2019-09-09
| | | | | | | | | This commit contains a suggestion to hopefully improve the documentation of uv_handle_t's member uv_loop_t. PR-URL: https://github.com/libuv/libuv/pull/2446 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
* win, tty: improve SIGWINCH performanceBartosz Sosnowski2019-09-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Continuing improvement of SIGWINCH from PR #2308. Running SetWinEventHook without filtering for the specific PIDs has significant impact on the performance of the entire system. This PR changes the way SIGWINCH is handled. The SetWinEventHook callback now signals a separate thread, uv__tty_console_resize_watcher_thread. This thread calls uv__tty_console_signal_resize() which checks if the console was actually resized. The uv__tty_console_resize_watcher_thread makes sure to not to call the uv__tty_console_signal_resize function more than 30 times per second. The SetWinEventHook will not be installed, if the PID of the conhost.exe process that owns the console window cannot be determinated. This can happen when a 32bit libuv app is running on a 64bit Windows. For such cases PR #1408 is partially reverted - when tty reads WINDOW_BUFFER_SIZE_EVENT, it will also trigger a call to uv__tty_console_signal_resize(). This will also help when the app is running under console emulators. Documentation was also updated to reflect that. Refs: https://github.com/microsoft/terminal/issues/1811 Refs: https://github.com/microsoft/terminal/issues/410 Refs: https://github.com/libuv/libuv/pull/2308 PR-URL: https://github.com/libuv/libuv/pull/2381 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
* udp: add source-specific multicast supportVladimir Karnushin2019-08-23
| | | | | | 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>
* doc: clarify uv_buf_t usage in uv_alloc_cbTomas Krizek2019-08-23
| | | | | | | | | | | | | 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>
* tcp: add uv_tcp_close_reset methodSantiago Gimeno2019-08-19
| | | | | | | | | | | | | It resets a TCP connection by sending a RST packet. Due to some platform inconsistencies, mixing of `uv_shutdown` and `uv_tcp_close_reset` calls is not allowed. Fixes: https://github.com/libuv/libuv/issues/1991 PR-URL: https://github.com/libuv/libuv/pull/2425 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* win: remove try-except outside MSVCCrunkle2019-08-09
| | | | | | | | | Fixes: https://github.com/libuv/libuv/issues/2407 PR-URL: https://github.com/libuv/libuv/pull/2412 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: João Reis <reis@janeasystems.com>
* doc: fix typo in basics.rstNan Xiao2019-08-06
| | | | | | PR-URL: https://github.com/libuv/libuv/pull/2366 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* unix,win: add ability to retrieve all env variablesSaúl Ibarra Corretgé2019-08-03
| | | | | | | | | | Fixes: https://github.com/libuv/libuv/issues/2400 PR-URL: https://github.com/libuv/libuv/pull/2404 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
* unix,win: add uv_fs_statfs()cjihrig2019-08-01
| | | | | | | | | Fixes: https://github.com/libuv/libuv/issues/2386 PR-URL: https://github.com/libuv/libuv/pull/2396 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
* win: add UV_FS_O_FILEMAPJoão Reis2019-07-16
| | | | | | | | Reading and writing files using a memory file mapping can be significantly faster on Windows. PR-URL: https://github.com/libuv/libuv/pull/2295 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
* doc: fix incorrect versionchangedcjihrig2019-06-27
| | | | | | | | Version 1.29.2 never happened. Update the versionchanged from 9a10058e72fb62c3e6ffd82e1f3f393c717e63f5 to be 1.30.0. PR-URL: https://github.com/libuv/libuv/pull/2354 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
* doc: fix wrong mutex function prototypesLeo Chung2019-06-25
| | | | | The `:lines:` numbers were wrong, they showed the signatures of the uv_fs_access and uv_fs_chmod functions.
* doc: add link to nodejs.orgJenil Christo2019-06-24
| | | | | | PR-URL: https://github.com/libuv/libuv/pull/2325 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* threadpool: increase UV_THREADPOOL_SIZE limitVlad A2019-06-07
| | | | | | | | | | Increase the UV_THREADPOOL_SIZE limit to 1024 and update the docs. Fixes: https://github.com/libuv/libuv/pull/2296 PR-URL: https://github.com/libuv/libuv/pull/2314 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
* unix,win: add uv_get_constrained_memory()Kelvin Jin2019-05-15
| | | | | | | Fixes: https://github.com/libuv/libuv/issues/2286 PR-URL: https://github.com/libuv/libuv/pull/2289 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* doc: fix build with sphinx 2.xFX Coudert2019-05-13
| | | | | | | | | | app.info() was deprecated on Jan 4, 2017 (sphinx-doc/sphinx#3267), and removed as of Sphinx 2.0.0. This commit removes the usage of app.info(). PR-URL: https://github.com/libuv/libuv/pull/2265 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
* doc: add missing uv_fs_type entriesMichele Caini2019-05-13
| | | | | PR-URL: https://github.com/libuv/libuv/pull/2280 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* doc: mark uv_async_send() as async-signal-safeBen Noordhuis2019-04-23
| | | | | | | Refs: https://github.com/libuv/libuv/issues/2173 PR-URL: https://github.com/libuv/libuv/pull/2273 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* doc: document uv_timeval_t and uv_timeval64_tcjihrig2019-04-11
| | | | | PR-URL: https://github.com/libuv/libuv/pull/2246 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
* unix,win: introduce uv_timeval64_tcjihrig2019-04-11
| | | | | | Fixes: https://github.com/libuv/libuv/issues/2243 PR-URL: https://github.com/libuv/libuv/pull/2246 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
* unix,win: add uv_fs_{open,read,close}dir()cjihrig2019-03-26
| | | | | | | | | | | | | | Co-authored-by: Julien Gilli <jgilli@nodejs.org> Co-authored-by: Jeremy Whitlock <jwhitlock@apache.org> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> PR-URL: https://github.com/libuv/libuv/pull/2057 Refs: https://github.com/joyent/libuv/issues/1430 Refs: https://github.com/joyent/libuv/pull/1521 Refs: https://github.com/joyent/libuv/pull/1574 Refs: https://github.com/libuv/libuv/pull/175 Refs: https://github.com/nodejs/node/issues/583 Refs: https://github.com/libuv/libuv/pull/416 Refs: https://github.com/libuv/libuv/issues/170
* unix,win: add uv_gettimeofday()cjihrig2019-03-25
| | | | | | | | PR-URL: https://github.com/libuv/libuv/pull/2221 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
* udp: add support for UDP connected socketsSantiago Gimeno2019-03-16
| | | | | | | | | | | | | | | | | 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>