Static Propertyswift-nio 2.72.0NIOCore
datagramSegmentSize
ChannelOption.swift:436static var datagramSegmentSize: Self { get }
static var datagramSegmentSize: Self { get }
s7NIOCore13ChannelOptionPA2A0B7OptionsV5TypesO19DatagramSegmentSizeVRszrlE08datagramgH0AIvpZ
What are these?
FNV24: [4N7HQ]
where Self == ChannelOptions.Types.DatagramSegmentSize
import NIOCore
The core abstractions that make up SwiftNIO.
protocol ChannelOption : _NIOPreconcurrencySendable, Equatable
A configuration option that can be set on a Channel
to configure different behaviour.
struct DatagramSegmentSize
DatagramSegmentSize
controls the UDP_SEGMENT
socket option (sometimes reffered to as ‘GSO’) which allows for large writes to be sent via sendmsg
and sendmmsg
and segmented into separate datagrams by the kernel (or in some cases, the NIC). The size of segments the large write is split into is controlled by the value of this option (note that writes do not need to be a multiple of this option).