Add UDP multicast declarations matching rejectedsoftware/vibe.d#1806.

The actual functionality still needs to be implemented in eventcore.
This commit is contained in:
Sönke Ludwig 2017-07-08 10:44:42 +02:00
parent 429d5dcb77
commit ca2f9dbe91

View file

@ -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; }