kernal-api 0.1.14

Async OS HAL, profiling, symbolization, and allocator instrumentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Portable local-socket relay for Windows named pipes.

use crate::platform_win::ipc::AsyncStream;

/// Relay a pair of established local sockets through Tokio's bounded buffers.
pub async fn relay_local_socket_session(
    mut client: AsyncStream,
    mut daemon: AsyncStream,
) -> std::io::Result<()> {
    tokio::io::copy_bidirectional(&mut client, &mut daemon).await?;
    Ok(())
}