Struct secret_handshake::ServerHandshaker
[−]
[src]
pub struct ServerHandshaker<'a, S>(_);
Performs the server side of a handshake.
Methods
impl<'a, S: AsyncRead + AsyncWrite> ServerHandshaker<'a, S>
[src]
pub fn new(
stream: S,
network_identifier: &'a [u8; 32],
server_longterm_pk: &'a PublicKey,
server_longterm_sk: &'a SecretKey,
server_ephemeral_pk: &'a PublicKey,
server_ephemeral_sk: &'a SecretKey
) -> ServerHandshaker<'a, S>
[src]
stream: S,
network_identifier: &'a [u8; 32],
server_longterm_pk: &'a PublicKey,
server_longterm_sk: &'a SecretKey,
server_ephemeral_pk: &'a PublicKey,
server_ephemeral_sk: &'a SecretKey
) -> ServerHandshaker<'a, S>
Creates a new ServerHandshakerWithFilter to accept a connection from a
client which knows the server's public key and uses the right app key
over the given stream
.
Trait Implementations
impl<'a, S: AsyncRead + AsyncWrite> Future for ServerHandshaker<'a, S>
[src]
Future implementation to asynchronously drive a handshake.