Initializerswift-nio 2.81.0NIOPosix->NIOCore
init(_:)
Construct a protocol subtype from an IP protocol.
init(_ protocol: NIOIPProtocol)
Construct a protocol subtype from an IP protocol.
init(_ protocol: NIOIPProtocol)
s7NIOCore12NIOBSDSocketO8NIOPosixE15ProtocolSubtypeVyAfA13NIOIPProtocolVcfc
What are these?4SEXT
import NIOCore
The core abstractions that make up SwiftNIO.
import NIOPosix
struct ProtocolSubtype
Defines a protocol subtype.
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.
init(rawValue: RawValue)
Construct a protocol subtype from its underlying value.
static let `default`: NIOBSDSocket.ProtocolSubtype
Refers to the “default” protocol subtype for a given socket type.
static var mptcp: Self? { get }
The protocol subtype for MPTCP.
var rawValue: RawValue
The underlying value of the protocol subtype.
typealias RawValue = CInt