netmask
The netmask associated with this address, if any.
var netmask: SocketAddress? { get set }
The netmask associated with this address, if any.
var netmask: SocketAddress? { get set }
s7NIOCore16NIONetworkDeviceV7netmaskAA13SocketAddressOSgvp
What are these?7UT5K
import NIOCore
The core abstractions that make up SwiftNIO.
struct NIONetworkDevice
A representation of a single network device on a system.
enum SocketAddress
Represent a socket address to which we may want to connect or bind.
init(name: String, address: SocketAddress?, netmask: SocketAddress?, broadcastAddress: SocketAddress?, pointToPointDestinationAddress: SocketAddress, multicastSupported: Bool, interfaceIndex: Int)
var address: SocketAddress? { get set }
The address associated with the given network device.
var broadcastAddress: SocketAddress? { get set }
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 { get }
var interfaceIndex: Int { get set }
The index of the interface, as provided by if_nametoindex
.
var multicastSupported: Bool { get set }
If the Interface supports Multicast
var name: String { get set }
The name of the network device.
var pointToPointDestinationAddress: SocketAddress? { get set }
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.
static func == (lhs: NIONetworkDevice, rhs: NIONetworkDevice) -> Bool
func hash(into hasher: inout Hasher)
init(_ interface: NIONetworkInterface)
Convert a NIONetworkInterface
to a NIONetworkDevice
. As NIONetworkDevice
s are a superset of NIONetworkInterface
s, it is always possible to perform this conversion.