==(_:_:)
Interfaces.swift:193This declaration has been renamed to NIONetworkDevice.
This declaration is deprecated.
static func == (lhs: NIONetworkInterface, rhs: NIONetworkInterface) -> Bool
This declaration has been renamed to NIONetworkDevice.
This declaration is deprecated.
static func == (lhs: NIONetworkInterface, rhs: NIONetworkInterface) -> Bool
import NIOCore
The core abstractions that make up SwiftNIO.
final class NIONetworkInterface
A representation of a single network interface on a system.
struct NIONetworkDevice
A representation of a single network device on a system.
@frozen struct Bool
A value type whose instances are either true
or false
.
let address: SocketAddress
The address associated with the given network interface.
let 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 { get }
let interfaceIndex: Int
The index of the interface, as provided by if_nametoindex
.
let multicastSupported: Bool
If the Interface supports Multicast
let name: String
The name of the network interface.
let netmask: SocketAddress?
The netmask associated with this address, if any.
let 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.