Struct boringssl::Client [] [src]

pub struct Client {
    // some fields omitted
}

Methods

impl Client
[src]

fn new_socket(ctx: &Context, fd: RawFd) -> Result<Client>

fn handshake(&mut self) -> Result<()>

If <0 is returned, it must be called again when the underlying stream is ready to contiue the handshake.

fn set_hostname(&mut self, hostname: &str) -> Result<()>

Configures ssl to advertise name in the server_name extension (RFC 3546).

fn read(&mut self, buf: &mut [u8]) -> Result<usize>

fn pending(&mut self) -> usize

fn write(&mut self, buf: &[u8]) -> Result<usize>

Trait Implementations

impl Drop for Client
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more