Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Socket.AddMembership
Adds this socket to a multicast group.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Socket | 7.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Socket.AddMembership"; SocketID; MultiAddress; InterfaceAddress ) More
Parameters
Parameter | Description | Example |
---|---|---|
SocketID | The socket ID received by Socket.Connect function. | $sock |
MultiAddress | The IPv4 address of the gorup to join. | |
InterfaceAddress | The IPv4 address of the network interface to use. Can be empty for any interface. |
Result
Returns OK or error.
Description
Adds this socket to a multicast group.Internally this uses IPPROTO_IP/IP_ADD_MEMBERSHIP option.
Lasterror is set.
See also
Release notes
- Version 7.5
- Added Socket.AddMembership and Socket.DropMembership.
Blog Entries
This function is free to use.
Created 19th October 2017, last changed 19th October 2017