aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2020-04-28 20:15:14 +0200
committerJameson Nash <vtjnash@gmail.com>2020-10-27 13:00:59 -0400
commit03185b785b74c6dad282aab10ac53f20f28b6966 (patch)
tree3f4e502d7afea32f9ee8227fe5eb11ba7a5f7806 /docs/src
parent726af5ebc37af1aafd0b3d2fb563ada53c8f4d06 (diff)
downloadlibuv-03185b785b74c6dad282aab10ac53f20f28b6966.tar.gz
libuv-03185b785b74c6dad282aab10ac53f20f28b6966.zip
doc: uv_tcp_bind() never returns UV_EADDRINUSE
It defers the error to uv_listen() or uv_tcp_connect(). PR-URL: https://github.com/libuv/libuv/pull/2218 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Jameson Nash <vtjnash@gmail.com>
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/tcp.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/src/tcp.rst b/docs/src/tcp.rst
index 3cc8efaa..e85d0317 100644
--- a/docs/src/tcp.rst
+++ b/docs/src/tcp.rst
@@ -81,10 +81,9 @@ API
initialized ``struct sockaddr_in`` or ``struct sockaddr_in6``.
When the port is already taken, you can expect to see an ``UV_EADDRINUSE``
- error from either :c:func:`uv_tcp_bind`, :c:func:`uv_listen` or
- :c:func:`uv_tcp_connect`. That is, a successful call to this function does
- not guarantee that the call to :c:func:`uv_listen` or :c:func:`uv_tcp_connect`
- will succeed as well.
+ error from :c:func:`uv_listen` or :c:func:`uv_tcp_connect`. That is,
+ a successful call to this function does not guarantee that the call
+ to :c:func:`uv_listen` or :c:func:`uv_tcp_connect` will succeed as well.
`flags` can contain ``UV_TCP_IPV6ONLY``, in which case dual-stack support
is disabled and only IPv6 is used.