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) -> BoolParameters
lhsFirst object to compare
rhsSecond object to compare
-
Hashes object
Declaration
Swift
func hash(into hasher: inout Hasher)Parameters
hasherThe hasher