TLSBlockingChannel

Blocking TLS Channel

Constructors

this
this()
Undocumented in source.
this
this(DataReader read_fn, DataWriter write_fn, OnAlert alert_cb, OnHandshakeComplete hs_cb, TLSSessionManager session_manager, TLSCredentialsManager creds, TLSPolicy policy, RandomNumberGenerator rng, TLSServerInformation server_info, TLSProtocolVersion offer_version, Vector!string next_protocols)

Client constructor

this
this(DataReader read_fn, DataWriter write_fn, OnAlert alert_cb, OnHandshakeComplete hs_cb, TLSSessionManager session_manager, TLSCredentialsManager creds, TLSPolicy policy, RandomNumberGenerator rng, NextProtocolHandler next_proto, SNIHandler sni_handler, bool is_datagram, size_t io_buf_sz)

Server constructor

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
doHandshake
void doHandshake()

Blocks until the full handhsake is complete

isClosed
bool isClosed()
Undocumented in source. Be warned that the author may not have intended to support it.
peek
const(ubyte)[] peek()

Returns an array of pending data

peerCertChain
const(Vector!X509Certificate) peerCertChain()
Undocumented in source. Be warned that the author may not have intended to support it.
pending
size_t pending()

Number of bytes pending read in the plaintext buffer (bytes readable without blocking)

read
void read(ubyte[] dest)

Reads until the destination ubyte array is full, utilizing internal buffers if necessary

readBuf
ubyte[] readBuf(ubyte[] buf)

Blocking ( if !pending() ) read, will return at least 1 ubyte or 0 on connection close supports replacement of internal read buffer when called until buf.length != returned buffer length

underlyingChannel
inout(TLSChannel) underlyingChannel()
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(ubyte[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

isBusy
bool isBusy [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
onAlertNotification
OnAlert onAlertNotification [@property setter]

get notification of alerts

onHandshakeComplete
OnHandshakeComplete onHandshakeComplete [@property setter]

* get handshake complete notifications

Meta