MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / accept_client

Function accept_client

crates/hyperqueue/src/transfer/connection.rs:63–70  ·  view source on GitHub ↗

Server -> client connection

(
    socket: TcpStream,
    key: Option<Arc<SecretKey>>,
)

Source from the content-addressed store, hash-verified

61
62/// Server -> client connection
63pub async fn accept_client(
64 socket: TcpStream,
65 key: Option<Arc<SecretKey>>,
66) -> crate::Result<ServerConnection> {
67 Connection::init(socket, COMM_PROTOCOL, "hq-server", "hq-client", key)
68 .await
69 .map_err(|e| e.into())
70}

Callers 1

handle_clientFunction · 0.85

Calls 1

intoMethod · 0.80

Tested by

no test coverage detected