From ca2f9dbe9109ebdca50b4730b67435f57d96776a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Sat, 8 Jul 2017 10:44:42 +0200 Subject: [PATCH] Add UDP multicast declarations matching rejectedsoftware/vibe.d#1806. The actual functionality still needs to be implemented in eventcore. --- source/vibe/core/net.d | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/source/vibe/core/net.d b/source/vibe/core/net.d index 7404f70..e95681c 100644 --- a/source/vibe/core/net.d +++ b/source/vibe/core/net.d @@ -765,6 +765,27 @@ struct UDPConnection { return naddr; } + /** Set IP multicast loopback mode. + + This is on by default. All packets send will also loopback if enabled. + Useful if more than one application is running on same host and both need each other's packets. + */ + @property void multicastLoopback(bool loop) + { + assert(false, "not implemented."); + } + + /** Become a member of an IP multicast group. + + The multiaddr parameter should be in the range 239.0.0.0-239.255.255.255. + See https://www.iana.org/assignments/multicast-addresses/multicast-addresses.xml#multicast-addresses-12 + and https://www.iana.org/assignments/ipv6-multicast-addresses/ipv6-multicast-addresses.xhtml + */ + void addMembership(ref NetworkAddress multiaddr) + { + assert(false, "not implemented."); + } + /** Stops listening for datagrams and frees all resources. */ void close() { eventDriver.sockets.releaseRef(m_socket); m_socket = DatagramSocketFD.init; }