SSLConnection

Wrap another protocol in an SSL connection.

class ref SSLConnection is
  TCPConnectionNotify ref

Implements


Constructors

create

new iso create(
  notify: TCPConnectionNotify iso,
  ssl: SSL iso)
: SSLConnection iso^

Parameters

Returns


Public Functions

accepted

Forward to the wrapped protocol.

fun ref accepted(
  conn: TCPConnection ref)
: None val

Parameters

Returns


connecting

Forward to the wrapped protocol.

fun ref connecting(
  conn: TCPConnection ref,
  count: U32 val)
: None val

Parameters

Returns


connected

Swallow this event until the handshake is complete.

fun ref connected(
  conn: TCPConnection ref)
: None val

Parameters

Returns


connect_failed

Forward to the wrapped protocol.

fun ref connect_failed(
  conn: TCPConnection ref)
: None val

Parameters

Returns


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

Returns


sentv

fun ref sentv(
  conn: TCPConnection ref,
  data: ByteSeqIter val)
: ByteSeqIter val

Parameters

Returns


received

Pass the data to the SSL session and check for both new application data and new destination data.

fun ref received(
  conn: TCPConnection ref,
  data: Array[U8 val] iso,
  times: USize val)
: Bool val

Parameters

Returns


expect

Keep track of the expect count for the wrapped protocol. Always tell the TCPConnection to read all available data.

fun ref expect(
  conn: TCPConnection ref,
  qty: USize val)
: USize val

Parameters

Returns


closed

Forward to the wrapped protocol.

fun ref closed(
  conn: TCPConnection ref)
: None val

Parameters

Returns


auth_failed

fun ref auth_failed(
  conn: TCPConnection ref)
: None val

Parameters

Returns


throttled

fun ref throttled(
  conn: TCPConnection ref)
: None val

Parameters

Returns


unthrottled

fun ref unthrottled(
  conn: TCPConnection ref)
: None val

Parameters

Returns


Private Functions

_poll

Checks for both new application data and new destination data. Informs the wrapped protocol that is has connected when the handshake is complete.

fun ref _poll(
  conn: TCPConnection ref)
: None val

Parameters

Returns