vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

Class BotanTLSStream

class BotanTLSStream ;

Constructors

NameDescription
this (underlying, ctx, alert_cb, hs_cb, peer_name, peer_address)
this (underlying, ctx, state, peer_name, peer_address)

Fields

NameTypeDescription
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

NameTypeDescription
alpn[get] string
cipher[get] TLSCiphersuiteReturns the complete ciphersuite details from the negotiated TLS connection
dataAvailableForRead[get] bool
empty[get] bool
leastSize[get] ulong
peerCertificate[get] TLSCertificateInformation
protocol[get] TLSProtocolVersionReturns the negotiated version of the TLS Protocol
sessionId[get] const(ubyte[])Get the session ID
started[get] SysTimeReturns the date/time the session was started
x509Certificate[get] const(X509Certificate)Returns the remote public certificate from the chain

Methods

NameDescription
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

NameDescription
read
write
Authors

Sönke Ludwig, Etienne Cimon

Copyright

© 2015 RejectedSoftware e.K., GlobecSys Inc

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.