Option
Defines configuration option names.
struct OptionDefines configuration option names.
struct Optionimport NIOCoreThe core abstractions that make up SwiftNIO.
enum NIOBSDSocketstruct AddressFamilySpecifies the addressing scheme that the socket can use.
struct OptionLevelDefines socket option levels.
struct PipeHandlestruct ProtocolFamilySpecifies the type of protocol that the socket can use.
typealias Handle = CIntprotocol CopyableA type whose values can be implicitly or explicitly copied.
protocol EquatableA type that can be compared for value equality.
protocol Escapableprotocol Hashable : EquatableA type that can be hashed into a Hasher to produce an integer hash value.
protocol RawRepresentable<RawValue>A type that can be converted to and from an associated raw value.
protocol Sendable : SendableMetatypeA thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
protocol SendableMetatype : ~Copyable, ~EscapableA type whose metatype can be shared across arbitrary concurrent contexts without introducing a risk of data races. When a generic type T conforms to SendableMetatype, its metatype T.Type conforms to Sendable. All concrete types implicitly conform to the SendableMetatype protocol, so its primary purpose is in generic code to prohibit the use of isolated conformances along with the generic type.
init(rawValue: NIOBSDSocket.Option.RawValue) static var ip_add_membership: NIOBSDSocket.Option { get }Add a multicast group membership.
static var ip_drop_membership: NIOBSDSocket.Option { get }Drop a multicast group membership.
static var ip_hdrincl: NIOBSDSocket.Option { get }The IPv4 layer generates an IP header when sending a packet unless the ip_hdrincl socket option is enabled on the socket. When it is enabled, the packet must contain an IP header. For receiving, the IP header is always included in the packet.
static var ip_multicast_if: NIOBSDSocket.Option { get }Set the interface for outgoing multicast packets.
static var ip_multicast_loop: NIOBSDSocket.Option { get }Control multicast loopback.
static var ip_multicast_ttl: NIOBSDSocket.Option { get }Control multicast time-to-live.
static var ipv6_join_group: NIOBSDSocket.Option { get }Add an IPv6 group membership.
static var ipv6_leave_group: NIOBSDSocket.Option { get }Drop an IPv6 group membership.
static var ipv6_multicast_hops: NIOBSDSocket.Option { get }Specify the maximum number of router hops for an IPv6 packet.
static var ipv6_multicast_if: NIOBSDSocket.Option { get }Set the interface for outgoing multicast packets.
static var ipv6_multicast_loop: NIOBSDSocket.Option { get }Control multicast loopback.
static var ipv6_v6only: NIOBSDSocket.Option { get }Indicates if a socket created for the AF_INET6 address family is restricted to IPv6 only.
static var mptcp_info: NIOBSDSocket.Option { get }Get info about an MPTCP connection
static var so_broadcast: NIOBSDSocket.Option { get }Allows the socket to send broadcast messages.
static var so_error: NIOBSDSocket.Option { get }Get the error status and clear.
static var so_keepalive: NIOBSDSocket.Option { get }Use keep-alives.
static var so_linger: NIOBSDSocket.Option { get }Linger on close if unsent data is present.
static var so_rcvbuf: NIOBSDSocket.Option { get }Specifies the total per-socket buffer space reserved for receives.
static var so_rcvtimeo: NIOBSDSocket.Option { get }Specifies the receive timeout.
static var so_reuseaddr: NIOBSDSocket.Option { get }Allows the socket to be bound to an address that is already in use.
static var so_sndbuf: NIOBSDSocket.Option { get }Specifies the total per-socket buffer space reserved for sends.
static var so_timestamp: NIOBSDSocket.Option { get }Indicate when to generate timestamps.
static var tcp_info: NIOBSDSocket.Option { get }Get information about the TCP connection.
static var tcp_nodelay: NIOBSDSocket.Option { get }Disables the Nagle algorithm for send coalescing.
static var udp_gro: NIOBSDSocket.Option { get }Use UDP generic receive offload (GRO). Only available on Linux.
static var udp_segment: NIOBSDSocket.Option { get }Use UDP segmentation offload (UDP_SEGMENT, or ‘GSO’). Only available on Linux.
var rawValue: NIOBSDSocket.Option.RawValuetypealias RawValue = CIntvar hashValue: Int { get }static func != (lhs: Self, rhs: Self) -> Bool Returns a Boolean value indicating whether two values are not equal.
func hash(into hasher: inout Hasher)