Struct diffusion::MulticastWriter [] [src]

pub struct MulticastWriter {
    // some fields omitted
}

is writer for multicast. MulticastWriter uses the natual UDP packet as message boundary.

Methods

impl MulticastWriter
[src]

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

returns a new instance of MulticastWriter. addr is the address the sending socket binds to, and also the address that it sends to.

Trait Implementations

impl Debug for MulticastWriter
[src]

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

Formats the value using the given formatter.

impl Writer for MulticastWriter
[src]

fn write(&mut self, buf: &[u8]) -> Result<()>

returns Ok(()) if write is successful.