Add an interface_index argument to joinMulticastGroup.

This commit is contained in:
Sönke Ludwig 2017-09-11 13:35:34 +02:00
parent 8b95e9fb2d
commit 28e1a83057
3 changed files with 7 additions and 7 deletions

View file

@ -279,7 +279,7 @@ interface EventDriverSockets {
bool setBroadcast(DatagramSocketFD socket, bool enable);
/// Joins the multicast group associated with the given IP address.
bool joinMulticastGroup(DatagramSocketFD socket, scope Address multicast_address);
bool joinMulticastGroup(DatagramSocketFD socket, scope Address multicast_address, uint interface_index = 0);
/// Receives a single datagram.
void receive(DatagramSocketFD socket, ubyte[] buffer, IOMode mode, DatagramIOCallback on_receive_finish);