mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
Merge 64287a98fb into 29396c22c9
This commit is contained in:
commit
523ef157c6
2 changed files with 20 additions and 0 deletions
|
|
@ -797,6 +797,14 @@ bool DatagramSocket::joinMulticast (const String& multicastIPAddress)
|
|||
|
||||
return SocketHelpers::multicast (handle, multicastIPAddress, lastBindAddress, true);
|
||||
}
|
||||
|
||||
bool DatagramSocket::joinMulticast (const String& multicastIPAddress, const String& localIPAddress)
|
||||
{
|
||||
if (handle < 0 || ! isBound)
|
||||
return false;
|
||||
|
||||
return SocketHelpers::multicast (handle, multicastIPAddress, localIPAddress, true);
|
||||
}
|
||||
|
||||
bool DatagramSocket::leaveMulticast (const String& multicastIPAddress)
|
||||
{
|
||||
|
|
@ -805,6 +813,14 @@ bool DatagramSocket::leaveMulticast (const String& multicastIPAddress)
|
|||
|
||||
return SocketHelpers::multicast (handle, multicastIPAddress, lastBindAddress, false);
|
||||
}
|
||||
|
||||
bool DatagramSocket::leaveMulticast (const String& multicastIPAddress, const String& localIPAddress)
|
||||
{
|
||||
if (handle < 0 || ! isBound)
|
||||
return false;
|
||||
|
||||
return SocketHelpers::multicast (handle, multicastIPAddress, localIPAddress, false);
|
||||
}
|
||||
|
||||
bool DatagramSocket::setMulticastLoopbackEnabled (bool enable)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -425,12 +425,16 @@ public:
|
|||
@returns true if it succeeds
|
||||
*/
|
||||
bool joinMulticast (const String& multicastIPAddress);
|
||||
|
||||
bool joinMulticast (const String& multicastIPAddress, const String& localIPAddress);
|
||||
|
||||
/** Leave a multicast group.
|
||||
|
||||
@returns true if it succeeds
|
||||
*/
|
||||
bool leaveMulticast (const String& multicastIPAddress);
|
||||
|
||||
bool leaveMulticast (const String& multicastIPAddress, const String& localIPAddress);
|
||||
|
||||
/** Enables or disables multicast loopback.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue