Skip to main content

connected

Function connected 

Source
pub fn connected(stream: &Stream) -> bool
Expand description

Whether the peer at the other end of stream is still connected, without consuming what it sent: a peek that finds the connection over says it is not, and one that finds bytes waiting or nothing yet says it is.