ProtocolFamily
public struct ProtocolFamily : RawRepresentable
extension NIOBSDSocket.ProtocolFamily: Equatable
extension NIOBSDSocket.ProtocolFamily: Hashable
Specifies the type of protocol that the socket can use.
-
Declaration
Swift
public typealias RawValue = CInt
-
Declaration
Swift
public var rawValue: RawValue
-
Declaration
Swift
public init(rawValue: RawValue)
-
IP network 4 protocol.
Declaration
Swift
public static let inet: NIOBSDSocket.ProtocolFamily
-
IP network 6 protocol.
Declaration
Swift
public static let inet6: NIOBSDSocket.ProtocolFamily
-
UNIX local to the host.
Declaration
Swift
public static let unix: NIOBSDSocket.ProtocolFamily
-
UNIX local to the host, alias for
PF_UNIX
(.unix
)Declaration
Swift
public static let local: NIOBSDSocket.ProtocolFamily