TlsSessionDelegate

protocol TlsSessionDelegate

This protocol defines a deletgate for TLS sessions. It is implemented by input and output streams.

  • 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)