pub fn add_mcast_membership(&self, groups: U32Bitmask) -> Result<(), io::Error> {
        match unsafe {
            libc::setsockopt(
                self.fd,
                libc::SOL_NETLINK,
                libc::NETLINK_ADD_MEMBERSHIP,
                &*groups as *const _ as *const libc::c_void,
                size_of::<u32>() as libc::socklen_t,
            )
        } {
            i if i == 0 => Ok(()),
            _ => Err(io::Error::last_os_error()),
        }
    }
/// Join multicast groups for a socket.
Join multicast groups for a socket.
Join multicast groups for a socket .
pub fn add_mcast_membership(&self, groups: U32Bitmask) -> Result<(), io::Error> {
        match unsafe {
            libc::setsockopt(
                self.fd,
                libc::SOL_NETLINK,
                libc::NETLINK_ADD_MEMBERSHIP,
                &*groups as *const _ as *const libc::c_void,
                size_of::<u32>() as libc::socklen_t,
            )
        } {
            i if i == 0 => Ok(()),
            _ => Err(io::Error::last_os_error()),
        }
    }
pub fn add_mcast_membership ( & self , groups : U32Bitmask ) -> Result < ( ) , io :: Error > { match unsafe { libc :: setsockopt ( self . fd , libc :: SOL_NETLINK , libc :: NETLINK_ADD_MEMBERSHIP , & * groups as * const _ as * const libc :: c_void , size_of :: < u32 > ( ) as libc :: socklen_t , ) } { i if i == 0 => Ok ( ( ) ) , _ => Err ( io :: Error :: last_os_error ( ) ) , } }
Join multicast groups for a socket.
Join multicast groups for a socket .
&self
groups
U32Bitmask
&self
groups
U32Bitmask