Operatorswift-nio 2.72.0NIOCore
==(_:_:)
Interfaces.swift:493static func == (lhs: NIONetworkDevice, rhs: NIONetworkDevice) -> Bool
Other members in extension
Type members
init(name: String, address: SocketAddress?, netmask: SocketAddress?, broadcastAddress: SocketAddress?, pointToPointDestinationAddress: SocketAddress, multicastSupported: Bool, interfaceIndex: Int
)
Show obsolete interfaces (1)
Hide obsolete interfaces
init(NIONetworkInterface
) Convert a
NIONetworkInterface
to aNIONetworkDevice
. AsNIONetworkDevice
s are a superset ofNIONetworkInterface
s, it is always possible to perform this conversion.
Instance members
var address: SocketAddress?
The address associated with the given network device.
var broadcastAddress: SocketAddress?
The broadcast address associated with this socket interface, if it has one. Some interfaces do not, especially those that have a
pointToPointDestinationAddress
.var debugDescription: String
var interfaceIndex: Int
The index of the interface, as provided by
if_nametoindex
.var multicastSupported: Bool
If the Interface supports Multicast
var name: String
The name of the network device.
var netmask: SocketAddress?
The netmask associated with this address, if any.
var pointToPointDestinationAddress: SocketAddress?
The address of the peer on a point-to-point interface, if this is one. Some interfaces do not have such an address: most of those have a
broadcastAddress
instead.func hash(into: inout Hasher
)