Struct unreliable_message::network::Receiver [] [src]

pub struct Receiver {
    pub datagram_length: u16,
    pub max_connection_size: Option<usize>,
    pub filter: ReceiverFilter,
    // some fields omitted
}

The receiving end of an unreliable message socket.

Fields

Methods

impl Receiver
[src]

Constructs a receiver from a socket.

datagram_length is the max-size of the UDP packet that you expect to receive.

Blocks until a completed message is received, and returns the Socket Address that the message came from.

Removes all stored incomplete messages from a specific address.