Struct asyncio::ip::MulticastJoinGroup [] [src]

pub struct MulticastJoinGroup(_);

Socket option to join a multicast group on a specified interface.

Implements the IPPROTO_IP/IP_ADD_MEMBERSHIP or IPPROTO_IPV6/IPV6_JOIN_GROUP socket option.

Examples

Setting the option:

use asyncio::*;
use asyncio::ip::*;

let ctx = &IoContext::new().unwrap();
let soc = UdpSocket::new(ctx, Udp::v4()).unwrap();

soc.set_option(MulticastJoinGroup::new(IpAddr::V4(IpAddrV4::new(225,0,0,1)))).unwrap();

Methods

impl MulticastJoinGroup
[src]

Trait Implementations

impl Clone for MulticastJoinGroup
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<P: IpProtocol> SocketOption<P> for MulticastJoinGroup
[src]

impl<P: IpProtocol> SetSocketOption<P> for MulticastJoinGroup
[src]