Skip to main content

udp

Function udp 

Source
pub fn udp(addr: SocketAddr) -> Result<UdpSocket>
Expand description

Bind a UDP socket, making an IPv6 socket dual-stack so it also serves IPv4.

The socket buffers are grown to 8 MiB where the OS allows it, and a warning names the sysctl to raise where it doesn’t.