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.
reuse_port: bool = falseDeprecated. Does the same thing as reuse_address.
force_nonblocking: bool = false
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,
/// Deprecated. Does the same thing as reuse_address.
reuse_port: bool = false,
force_nonblocking: bool = false,
}