Class BotanTLSStream
class BotanTLSStream
;
Constructors
Name | Description |
---|---|
this
(underlying, ctx, alert_cb, hs_cb, peer_name, peer_address)
|
|
this
(underlying, ctx, state, peer_name, peer_address)
|
Fields
Name | Type | Description |
---|---|---|
m_alertCB
|
OnAlert | |
m_cert_compat
|
TLSCertificateInformation | |
m_cipher
|
TLSCiphersuite | |
m_ctx
|
BotanTLSContext | |
m_ex
|
Exception | |
m_handshakeComplete
|
OnHandshakeComplete | |
m_peer_cert
|
X509Certificate | |
m_sess_id
|
ubyte[] | |
m_session_age
|
SysTime | |
m_stream
|
InterfaceProxy!Stream | |
m_tlsChannel
|
TLSBlockingChannel | |
m_ver
|
TLSProtocolVersion |
Properties
Name | Type | Description |
---|---|---|
alpn [get]
|
string | |
cipher [get]
|
TLSCiphersuite | Returns the complete ciphersuite details from the negotiated TLS connection |
dataAvailableForRead [get]
|
bool | |
empty [get]
|
bool | |
leastSize [get]
|
ulong | |
peerCertificate [get]
|
TLSCertificateInformation | |
protocol [get]
|
TLSProtocolVersion | Returns the negotiated version of the TLS Protocol |
sessionId [get]
|
const(ubyte[]) | Get the session ID |
started [get]
|
SysTime | Returns the date/time the session was started |
x509Certificate [get]
|
const(X509Certificate) | Returns the remote public certificate from the chain |
Methods
Name | Description |
---|---|
finalize
()
|
|
flush
()
|
|
onAlert
(alert, data)
|
|
onHandhsakeComplete
(session)
|
|
onRead
(buf)
|
|
onWrite
(src)
|
|
peek
()
|
|
processException
()
|
|
read
(dst, )
|
|
readChunk
(buf)
|
|
setAlertCallback
(alert_cb)
|
|
setHandshakeCallback
(hs_cb)
|
|
write
(src, )
|
Aliases
Name | Description |
---|---|
read
|
|
write
|