NetworkEndpoint

public struct NetworkEndpoint : Hashable

Network endpoint.

  • The IP Address of the network endpoint.

    Declaration

    Swift

    public var address: IPAddress
  • Optional port number of the network endpoint.

    Declaration

    Swift

    public var port: UInt16?
  • Creates a new instance.

    Declaration

    Swift

    public init(address: IPAddress, port: UInt16?)
  • Creates a new instance.

    Declaration

    Swift

    public init(address: IPAddress)
  • Compare objects

    • Return true if objects are equal, false otherwise.

    Declaration

    Swift

    static func == (lhs: NetworkEndpoint, rhs: NetworkEndpoint) -> Bool

    Parameters

    lhs

    First object to compare

    rhs

    Second object to compare

  • Hashes object

    Declaration

    Swift

    func hash(into hasher: inout Hasher)

    Parameters

    hasher

    The hasher