Struct telos::TlsServer [] [src]

pub struct TlsServer {
    // some fields omitted
}

TLS Server, used to start TLS session over existing sockets.

Methods

impl TlsServer

fn accept_socket<R: AsRawFd>(&mut self, r: &R) -> Result<TlsStream<()>>

Start a new TLS connection over an existing file descriptor (server-side) Unlike connect() this does not take ownership, see the main crate docs for an example.

fn accept<F: AsRawFd>(&mut self, inner_stream: F) -> Result<TlsStream<F>>