Socket.DropMembership
---------------------

Removes this socket from a multicast group.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Socket](component_Socket.md) | [7.5](newinversion75.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Socket.DropMembership"; SocketID; MultiAddress; InterfaceAddress ) 

**MBS**( **"Socket.DropMembership";** /\* Removes this socket from a multicast group. \*/  
**$SocketID**; /\* The socket ID received by [Socket.Connect](SocketConnect.md) function.e.g. $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. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| SocketID | The socket ID received by [Socket.Connect](SocketConnect.md) 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

Removes this socket from a multicast group.  
Internally this uses IPPROTO\_IP/IP\_DROP\_MEMBERSHIP option.  
Lasterror is set.  
### See also

- [Socket.AddMembership](SocketAddMembership.md)
- [Socket.Connect](SocketConnect.md)

### Release notes

- **Version 7.5**
    - Added [Socket.AddMembership](http://www.mbsplugins.eu/SocketAddMembership.shtml) and [Socket.DropMembership](http://www.mbsplugins.eu/SocketDropMembership.shtml).

### Blog Entries

- [MBS FileMaker Plugin, version 7.5pr3](https://www.mbsplugins.de/archive/2017-10-23/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 19th October 2017 , last changed 19th October 2017

  
[Socket.Connect](SocketConnect.md) - [Socket.EnableKeepAlive](SocketEnableKeepAlive.md)

[HTML Version](SocketDropMembership.shtml)