aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorVladimir Karnushin <v.karnushin@mail.ru>2016-07-31 21:03:16 +0300
committerSantiago Gimeno <santiago.gimeno@gmail.com>2019-08-23 21:09:47 +0200
commit91d95f8ceb13e52cfcbc759434831c16d067503e (patch)
tree5902efe6a9e0f5d739cb87ad8243fe3340b387f6 /docs/src
parent2ee2d4622a6f00133f2a46f5cf5956ea1485c5ba (diff)
downloadlibuv-91d95f8ceb13e52cfcbc759434831c16d067503e.tar.gz
libuv-91d95f8ceb13e52cfcbc759434831c16d067503e.zip
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>
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/udp.rst19
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/src/udp.rst b/docs/src/udp.rst
index c3fc8260..53b1fea4 100644
--- a/docs/src/udp.rst
+++ b/docs/src/udp.rst
@@ -222,6 +222,25 @@ API
:returns: 0 on success, or an error code < 0 on failure.
+.. c:function:: int uv_udp_set_source_membership(uv_udp_t* handle, const char* multicast_addr, const char* interface_addr, const char* source_addr, uv_membership membership)
+
+ Set membership for a source-specific multicast group.
+
+ :param handle: UDP handle. Should have been initialized with
+ :c:func:`uv_udp_init`.
+
+ :param multicast_addr: Multicast address to set membership for.
+
+ :param interface_addr: Interface address.
+
+ :param source_addr: Source address.
+
+ :param membership: Should be ``UV_JOIN_GROUP`` or ``UV_LEAVE_GROUP``.
+
+ :returns: 0 on success, or an error code < 0 on failure.
+
+ .. versionadded:: 1.32.0
+
.. c:function:: int uv_udp_set_multicast_loop(uv_udp_t* handle, int on)
Set IP multicast loop flag. Makes multicast packets loop back to