Function mpstthree::transport::udp::send::send_udp[][src]

pub fn send_udp<T, S>(
    x: T,
    data: &[u8; 128],
    s: Send<(T, [u8; 128]), S>,
    socket: UdpSocket,
    udp: bool
) -> Result<(S, usize, UdpSocket), Box<dyn Error>> where
    T: Send,
    S: Session
This is supported on crate features transport or transport_udp only.
Expand description

Send a value of type T over UDP. Returns the continuation of the session S and the UdpSocket. May fail.

This function is available only if MultiCrusty is built with the "transport" feature or the "transport_udp" feature.