[][src]Function ssb_handshake::server_side

pub async fn server_side<S, '_, '_>(
    __arg0: S,
    net_key: &'_ NetworkKey,
    keypair: &'_ Keypair
) -> Result<HandshakeKeys, HandshakeError<Error>> where
    S: AsyncRead + AsyncWrite + Unpin

Perform the server side of the handshake using the given AsyncRead + AsyncWrite stream. Closes the stream on handshake failure.