Struct diffusion::MulticastReader [] [src]

pub struct MulticastReader {
    // some fields omitted
}

is reader for multicast. Reads the UDP packet multicasted from writer. Each packet is a message.

Methods

impl MulticastReader

fn new(addr: SocketAddrV4) -> Result<MulticastReader>

returns a new instance of MulticastReader. Binds to addr.

Trait Implementations

impl Reader for MulticastReader

fn read(&mut self) -> Result<Option<Vec<u8>>>

Derived Implementations

impl Debug for MulticastReader

fn fmt(&self, __arg_0: &mut Formatter) -> Result