pub const ListenOptions = struct kernel_backlog: u31 = default_kernel_backlogHow many connections the kernel will accept on the application's behalf. If more than this many connections pool in the kernel, clients will start seeing "Connection refused".
reuse_address: bool = falseSets SO_REUSEADDR and SO_REUSEPORT on POSIX. Sets SO_REUSEADDR on Windows, which is roughly equivalent.
mode: Socket.Mode = .streamOnly connection-oriented modes may be used here, which includes:
Socket.Mode.streamSocket.Mode.seqpacketprotocol: Protocol = .tcpOnly connection-oriented protocols may be used here, which includes:
Protocol.tcpProtocol.tpProtocol.dccpProtocol.sctp226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244 pub const ListenOptions = struct {
/// How many connections the kernel will accept on the application's behalf.
/// If more than this many connections pool in the kernel, clients will start
/// seeing "Connection refused".
kernel_backlog: u31 = default_kernel_backlog,
/// Sets SO_REUSEADDR and SO_REUSEPORT on POSIX.
/// Sets SO_REUSEADDR on Windows, which is roughly equivalent.
reuse_address: bool = false,
/// Only connection-oriented modes may be used here, which includes:
/// * `Socket.Mode.stream`
/// * `Socket.Mode.seqpacket`
mode: Socket.Mode = .stream,
/// Only connection-oriented protocols may be used here, which includes:
/// * `Protocol.tcp`
/// * `Protocol.tp`
/// * `Protocol.dccp`
/// * `Protocol.sctp`
protocol: Protocol = .tcp,
}