struct ListenOptions [src]
Fields
kernel_backlog: u31 = 128How 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.
force_nonblocking: bool = falseSets O_NONBLOCK.
Source
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 = 128,
/// Sets SO_REUSEADDR and SO_REUSEPORT on POSIX.
/// Sets SO_REUSEADDR on Windows, which is roughly equivalent.
reuse_address: bool = false,
/// Sets O_NONBLOCK.
force_nonblocking: bool = false,
}