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

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 Writer for MulticastWriter

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

Derived Implementations

impl Debug for MulticastWriter

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