aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/tcp.rst7
-rw-r--r--docs/src/udp.rst7
2 files changed, 14 insertions, 0 deletions
diff --git a/docs/src/tcp.rst b/docs/src/tcp.rst
index a1a58245..e761b460 100644
--- a/docs/src/tcp.rst
+++ b/docs/src/tcp.rst
@@ -102,7 +102,14 @@ API
and an uninitialized :c:type:`uv_connect_t`. `addr` should point to an
initialized ``struct sockaddr_in`` or ``struct sockaddr_in6``.
+ On Windows if the `addr` is initialized to point to an unspecified address
+ (``0.0.0.0`` or ``::``) it will be changed to point to ``localhost``.
+ This is done to match the behavior of Linux systems.
+
The callback is made when the connection has been established or when a
connection error happened.
+ .. versionchanged:: 1.19.0 added ``0.0.0.0`` and ``::`` to ``localhost``
+ mapping
+
.. seealso:: The :c:type:`uv_stream_t` API functions also apply.
diff --git a/docs/src/udp.rst b/docs/src/udp.rst
index 8704a099..81488285 100644
--- a/docs/src/udp.rst
+++ b/docs/src/udp.rst
@@ -243,6 +243,10 @@ API
with :c:func:`uv_udp_bind` it will be bound to 0.0.0.0
(the "all interfaces" IPv4 address) and a random port number.
+ On Windows if the `addr` is initialized to point to an unspecified address
+ (``0.0.0.0`` or ``::``) it will be changed to point to ``localhost``.
+ This is done to match the behavior of Linux systems.
+
:param req: UDP request handle. Need not be initialized.
:param handle: UDP handle. Should have been initialized with
@@ -259,6 +263,9 @@ API
:returns: 0 on success, or an error code < 0 on failure.
+ .. versionchanged:: 1.19.0 added ``0.0.0.0`` and ``::`` to ``localhost``
+ mapping
+
.. c:function:: int uv_udp_try_send(uv_udp_t* handle, const uv_buf_t bufs[], unsigned int nbufs, const struct sockaddr* addr)
Same as :c:func:`uv_udp_send`, but won't queue a send request if it can't