so_linger
Linger on close if unsent data is present.
static var so_linger: NIOBSDSocket.Option { get }
Linger on close if unsent data is present.
static var so_linger: NIOBSDSocket.Option { get }
import NIOCore
The core abstractions that make up SwiftNIO.
struct Option
Defines configuration option names.
enum NIOBSDSocket
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_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.RawValue
typealias RawValue = CInt