pub struct UdpNonBlockingSocket { /* private fields */ }
Expand description

A simple non-blocking UDP socket tu use with GGRS Sessions. Listens to 0.0.0.0 on a given port.

Implementations

Binds an UDP Socket to 0.0.0.0:port and set it to non-blocking mode.

Trait Implementations

Formats the value using the given formatter. Read more

Takes an UdpMessage and sends it to the given address.

This method should return all messages received since the last time this method was called. The pairs (A, UdpMessage) indicate from which address each packet was received. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.