Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Socket.SetMulticastLoop
Sets whether multicast packets are also sent to the sending socket.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Socket | 5.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Socket.SetMulticastLoop"; SocketID; Value ) More
Parameters
Parameter | Description | Example |
---|---|---|
SocketID | The socket ID received by Socket.Connect function. | $sock |
Value | The new setting. Either 1 to loop or 0 to not loop. | 1 |
Result
Returns OK or error.
Description
Sets whether multicast packets are also sent to the sending socket.Examples
Enable multicast loop:
Set Variable [$r; Value:MBS("Socket.SetMulticastLoop"; $$sock; 0)]
See also
Example Databases
Blog Entries
This function checks for a license.
Created 22nd August 2015, last changed 26th January 2016
Socket.SetMulticastInterface - Socket.SetMulticastTimeToLive