karyon_net::transports::udp

Function listen

Source
pub async fn listen<C>(
    endpoint: &Endpoint,
    config: UdpConfig,
    codec: C,
) -> Result<UdpConn<C>>
where C: Codec + Clone,
Expand description

Listens on the given UDP address and port.