pub async fn connect_socket_to_stdio(
socket: Socket,
stdout: Stdout<'_>,
) -> Result<()>Expand description
Concurrently:
- locks stdin and copies the input to
socket - reads data from
socketand writes it tostdoutFinishes when the remote end of the socket closes (when (2) completes).