Struct cobalt::UdpSocket [] [src]

pub struct UdpSocket { /* fields omitted */ }

Non-blocking abstraction over a UDP socket.

Trait Implementations

impl Socket for UdpSocket
[src]

Tries to create a new UDP socket by binding to the specified address.

Attempts to return a incoming packet on this socket without blocking.

Send data on the socket to the given address. On success, returns the number of bytes written.

Returns the socket address of the underlying net::UdpSocket.

impl Debug for UdpSocket
[src]

Formats the value using the given formatter.