SSLConnection¶
Wrap another protocol in an SSL connection.
Implements¶
Constructors¶
create¶
Initialise with a wrapped protocol and an SSL session.
Parameters¶
- notify: TCPConnectionNotify iso
- ssl: SSL iso
Returns¶
- SSLConnection iso^
Public Functions¶
accepted¶
Swallow this event until the handshake is complete.
Parameters¶
- conn: TCPConnection ref
Returns¶
- None val
connecting¶
Forward to the wrapped protocol.
Parameters¶
- conn: TCPConnection ref
- count: U32 val
Returns¶
- None val
connected¶
Swallow this event until the handshake is complete.
Parameters¶
- conn: TCPConnection ref
Returns¶
- None val
connect_failed¶
Forward to the wrapped protocol.
Parameters¶
- conn: TCPConnection ref
Returns¶
- None val
sent¶
Pass the data to the SSL session and check for both new application data and new destination data.
fun ref sent(
conn: TCPConnection ref,
data: (String val | Array[U8 val] val))
: (String val | Array[U8 val] val)
Parameters¶
- conn: TCPConnection ref
- data: (String val | Array[U8 val] val)
Returns¶
sentv¶
Parameters¶
- conn: TCPConnection ref
- data: ByteSeqIter val
Returns¶
- ByteSeqIter val
received¶
Pass the data to the SSL session and check for both new application data and new destination data.
Parameters¶
- conn: TCPConnection ref
- data: Array[U8 val] iso
- times: USize val
Returns¶
- Bool val
expect¶
Keep track of the expect count for the wrapped protocol. Always tell the TCPConnection to read all available data.
Parameters¶
- conn: TCPConnection ref
- qty: USize val
Returns¶
- USize val
closed¶
Forward to the wrapped protocol.
Parameters¶
- conn: TCPConnection ref
Returns¶
- None val
throttled¶
Forward to the wrapped protocol.
Parameters¶
- conn: TCPConnection ref
Returns¶
- None val
unthrottled¶
Forward to the wrapped protocol.
Parameters¶
- conn: TCPConnection ref
Returns¶
- None val
proxy_via¶
Parameters¶
Returns¶
auth_failed¶
Parameters¶
- conn: TCPConnection ref
Returns¶
- None val