From 333643d48e8fb6e4906152f4d9f56fc5c0dc4593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Fri, 15 Sep 2017 15:54:59 +0200 Subject: [PATCH] Add interface_address parameter to UDPConnection.addMembership. --- dub.sdl | 2 +- source/vibe/core/net.d | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dub.sdl b/dub.sdl index 31ead3a..0f1a8d4 100644 --- a/dub.sdl +++ b/dub.sdl @@ -4,7 +4,7 @@ authors "Sönke Ludwig" copyright "Copyright © 2016, rejectedsoftware e.K." license "MIT" -dependency "eventcore" version="~>0.8.16" +dependency "eventcore" version="~>0.8.18" targetName "vibe_core" diff --git a/source/vibe/core/net.d b/source/vibe/core/net.d index 48b7431..94ceb18 100644 --- a/source/vibe/core/net.d +++ b/source/vibe/core/net.d @@ -800,10 +800,10 @@ struct UDPConnection { 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) + void addMembership(ref NetworkAddress multiaddr, uint interface_address = 0) { scope addr = new RefAddress(multiaddr.sockAddr, multiaddr.sockAddrMaxLen); - enforce(eventDriver.sockets.joinMulticastGroup(m_socket, addr), + enforce(eventDriver.sockets.joinMulticastGroup(m_socket, addr, interface_address), "Failed to add multicast membership."); }