Type Definition internet2::transport::encrypted::Connection

source ·
pub type Connection<const LEN_SIZE: usize> = Connection<Stream<LEN_SIZE>>;
Expand description

Type alias for Noise_XK-encrypted connection which is connect::Connection with TCP Stream.

Implementations§

source§

impl<const LEN_SIZE: usize> Connection<LEN_SIZE>

source

pub fn connect(inet_addr: InetSocketAddr) -> Result<Self, Error>

source

pub fn accept(listener: &TcpListener) -> Result<Self, Error>