Instance Propertyswift-nio 2.72.0NIOCore
broadcastAddress
The broadcast address associated with this socket interface, if it has one. Some interfaces do not, especially those that have a pointToPointDestinationAddress
.
var broadcastAddress: SocketAddress? { get set }
Other members in extension
Type members
init(name: String, address: SocketAddress?, netmask: SocketAddress?, broadcastAddress: SocketAddress?, pointToPointDestinationAddress: SocketAddress, multicastSupported: Bool, interfaceIndex: Int
) static func == (lhs: NIONetworkDevice, rhs: NIONetworkDevice
) -> Bool
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 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
)