Function hi_tension::hidelimiter [−][src]
pub fn hidelimiter<S: Read + Write>(stream: &mut S) -> Result<()>
Expand description
Signal the ending of a High Tension Message to the other end of the
stream
.
Takes care of reception acknowledgements from the other side. This function is blocking.
This function is generally used after one or more calls to hiwrite
.
Examples
Basic usage:
use std::net::TcpStream; let stream = TcpStream::connect("127.0.0.1:34567") let data = vec![0.0; 1_000_000]; // 8 MB hiwrite(&mut stream, &data)?; hidelimiter(&mut stream);