Function mpstthree::transport::tcp::send::send_tcp[][src]

pub fn send_tcp<T, S>(
    x: T,
    data: &[u8; 128],
    s: Send<(T, [u8; 128]), S>,
    stream: TcpStream,
    tcp: bool
) -> Result<(S, TcpStream), Box<dyn Error>> where
    T: Send,
    S: Session
This is supported on crate features transport or transport_tcp only.
Expand description

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

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