Function dfir_rs::util::udp_framed

source ยท
pub fn udp_framed<Codec, Item>(
    socket: UdpSocket,
    codec: Codec,
) -> (UdpFramedSink<Codec, Item>, UdpFramedStream<Codec>, SocketAddr)
where Codec: Encoder<Item> + Decoder,
Expand description

Returns a UDP Stream, Sink, and address for the given socket, using the given Codec to handle delineation between inputs/outputs.