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
socket
and writes it tostdout
Finishes when the remote end of the socket closes (when (2) completes).