Option
Defines configuration option names.
struct Option
Defines configuration option names.
struct Option
import NIOCore
The core abstractions that make up SwiftNIO.
enum NIOBSDSocket
struct AddressFamily
Specifies the addressing scheme that the socket can use.
struct OptionLevel
Defines socket option levels.
struct ProtocolFamily
Specifies the type of protocol that the socket can use.
typealias Handle = CInt
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol Hashable : Equatable
A 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
init(rawValue: RawValue)
static let ip_add_membership: NIOBSDSocket.Option
Add a multicast group membership.
static let ip_drop_membership: NIOBSDSocket.Option
Drop a multicast group membership.
static let ip_hdrincl: NIOBSDSocket.Option
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 let ip_multicast_if: NIOBSDSocket.Option
Set the interface for outgoing multicast packets.
static let ip_multicast_loop: NIOBSDSocket.Option
Control multicast loopback.
static let ip_multicast_ttl: NIOBSDSocket.Option
Control multicast time-to-live.
static let ipv6_join_group: NIOBSDSocket.Option
Add an IPv6 group membership.
static let ipv6_leave_group: NIOBSDSocket.Option
Drop an IPv6 group membership.
static let ipv6_multicast_hops: NIOBSDSocket.Option
Specify the maximum number of router hops for an IPv6 packet.
static let ipv6_multicast_if: NIOBSDSocket.Option
Set the interface for outgoing multicast packets.
static let ipv6_multicast_loop: NIOBSDSocket.Option
Control multicast loopback.
static let ipv6_v6only: NIOBSDSocket.Option
Indicates if a socket created for the AF_INET6
address family is restricted to IPv6 only.
static let mptcp_info: NIOBSDSocket.Option
Get info about an MPTCP connection
static let so_broadcast: NIOBSDSocket.Option
Allows the socket to send broadcast messages.
static let so_error: NIOBSDSocket.Option
Get the error status and clear.
static let so_keepalive: NIOBSDSocket.Option
Use keep-alives.
static let so_linger: NIOBSDSocket.Option
Linger on close if unsent data is present.
static let so_rcvbuf: NIOBSDSocket.Option
Specifies the total per-socket buffer space reserved for receives.
static let so_rcvtimeo: NIOBSDSocket.Option
Specifies the receive timeout.
static let so_reuseaddr: NIOBSDSocket.Option
Allows the socket to be bound to an address that is already in use.
static let so_sndbuf: NIOBSDSocket.Option
Specifies the total per-socket buffer space reserved for sends.
static let so_timestamp: NIOBSDSocket.Option
Indicate when to generate timestamps.
static let tcp_info: NIOBSDSocket.Option
Get information about the TCP connection.
static let tcp_nodelay: NIOBSDSocket.Option
Disables the Nagle algorithm for send coalescing.
static let udp_gro: NIOBSDSocket.Option
Use UDP generic receive offload (GRO). Only available on Linux.
static let udp_segment: NIOBSDSocket.Option
Use UDP segmentation offload (UDP_SEGMENT, or ‘GSO’). Only available on Linux.
var rawValue: RawValue
typealias RawValue = CInt
var 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)