NIOConnectionError

public struct NIOConnectionError

A representation of all the errors that happened during an attempt to connect to a given host and port.

  • The hostname SwiftNIO was trying to connect to.

    Declaration

    Swift

    public let host: String
  • The port SwiftNIO was trying to connect to.

    Declaration

    Swift

    public let port: Int
  • The error we encountered doing the DNS A lookup, if any.

    Declaration

    Swift

    public fileprivate(set) var dnsAError: Error?
  • The error we encountered doing the DNS AAAA lookup, if any.

    Declaration

    Swift

    public fileprivate(set) var dnsAAAAError: Error?
  • The errors we encountered during the connection attempts.

    Declaration

    Swift

    public fileprivate(set) var connectionErrors: [SingleConnectionFailure]