TLSOutputStream

class TLSOutputStream : WrappedOutputStream, TlsSessionDelegate

This class is TLS encrypted output stream.

  • Delegate function for the wrapped stream.

    Declaration

    Swift

    override func stream(_ aStream: Stream, handle eventCode: Stream.Event)

    Parameters

    aStream

    The stream calling the delegate. Has to be the wrapped output stream.

    eventCode

    The event that occurred.

  • This function is called, once a TLS session was established, i.e., after the TLS handshake was successfully performed. It indicates that the implementing stream’s state can be set to open.

    Declaration

    Swift

    func finishOpen()
  • This function is called, once an error occurs.

    Declaration

    Swift

    func setError(_ error: TlsStreamError)