System
Utilities.swift:72enum System
enum System
import NIOCore
The core abstractions that make up SwiftNIO.
struct NIONetworkDevice
A representation of a single network device on a system.
final class NIONetworkInterface
A representation of a single network interface on a system.
enum SocketAddress
Represent a socket address to which we may want to connect or bind.
enum NIOBSDSocket
struct NIOIPProtocol
In the Internet Protocol version 4 (IPv4) [RFC791] there is a field called “Protocol” to identify the next level protocol. This is an 8 bit field. In Internet Protocol version 6 (IPv6) [RFC8200], this field is called the “Next Header” field.
static var coreCount: Int { get }
A utility function that returns an estimate of the number of logical cores on the system available for use.
static let supportsUDPReceiveOffload: Bool
Returns true if the platform supports UDP_GRO
.
static let supportsUDPSegmentationOffload: Bool
Returns true if the platform supports UDP_SEGMENT
(GSO).
static var udpMaxSegments: Int? { get }
Returns the UDP maximum segment count if the platform supports and defines it.
static func enumerateDevices() throws -> [NIONetworkDevice]
A utility function that enumerates the available network devices on this machine.
static func enumerateInterfaces() throws -> [NIONetworkInterface]
A utility function that enumerates the available network interfaces on this machine.