TlsStreamError

enum TlsStreamError : Error

Errors that might occur while handling TLS streams.

  • This error indicates that reading from the TLS stream failed. The first argument is the error return from the TLS processing function and the second argument is the number of bytes that have been successfully processed before the error occurred.

    Declaration

    Swift

    case readingFailed(OSStatus, Int)
  • This error indicates that writing from the TLS stream failed. The first argument is the error return from the TLS processing function and the second argument is the number of bytes that have been successfully processed before the error occurred.

    Declaration

    Swift

    case writingFailed(OSStatus, Int)
  • This error indicates that the TLS stream could not be closed correctly.

    Declaration

    Swift

    case closingFailed(OSStatus)
  • This error indicates that the TLS handshake did not succeed.

    Declaration

    Swift

    case handshakeFailed(OSStatus)