pub fn attach_tcp_stream_to_stdio(stream: &mut TcpStream) -> Result<()>