Struct caesar::TlsTcpListener
[−]
[src]
pub struct TlsTcpListener { // some fields omitted }
Abstracts over a TcpListener
, and layers TLSv1.2 on top.
Methods
impl TlsTcpListener
[src]
fn bind<A: ToSocketAddrs>(addr: A, key: &str, cert: &str) -> Result<TlsTcpListener>
Behaves exactly like TcpStream::bind
. It expects paths to key and certificate files in
PEM format.