Sets the socket up to accept multicast messages from a particular source.
impl Socket {
fn ipv4_add_multicast_source(&self, multi_addr: Ipv4Addr, source_addr: Ipv4Addr, local_addr: Option<Ipv4Addr>) -> Result<(), Errno>
}| Name | Description |
|---|---|
| multi_addr | The address of the multicast group on which the messages are sent. |
| source_addr | The address of the sender of the messages. |
| local_addr | The local address that will accept the messages. |
If local_addr is None, the system will choose an appropriate value.
ip(7) and IP_ADD_SOURCE_MEMBERSHIP therein