pub fn connected(stream: &Stream) -> boolExpand 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.