Type Definition asyncio::ip::UdpSocket [] [src]

type UdpSocket = DgramSocket<Udp>;

The UDP socket type.

Examples

Constructs a UDP socket.

use asyncio::IoService;
use asyncio::ip::{Udp, UdpSocket};

let io = &IoService::new();
let udp4 = UdpSocket::new(io, Udp::v4()).unwrap();
let udp6 = UdpSocket::new(io, Udp::v6()).unwrap();