glisten/socket/options
Types
Mapping to the {active, _} option
pub type ActiveState {
Once
Passive
Count(Int)
Active
}
Constructors
-
Once -
Passive -
Count(Int) -
Active
pub type IpAddress {
IpV4(Int, Int, Int, Int)
IpV6(Int, Int, Int, Int, Int, Int, Int, Int)
}
Constructors
-
IpV4(Int, Int, Int, Int) -
IpV6(Int, Int, Int, Int, Int, Int, Int, Int)
Mode for the socket. Currently list is not supported
pub type SocketMode {
Binary
}
Constructors
-
Binary
Options for the TCP socket
pub type TcpOption {
Backlog(Int)
Nodelay(Bool)
Linger(#(Bool, Int))
SendTimeout(Int)
SendTimeoutClose(Bool)
Reuseaddr(Bool)
ActiveMode(ActiveState)
Mode(SocketMode)
CertKeyConfig(TlsCerts)
AlpnPreferredProtocols(List(String))
Ipv6
Buffer(Int)
Ip(Interface)
}
Constructors
-
Backlog(Int) -
Nodelay(Bool) -
Linger(#(Bool, Int)) -
SendTimeout(Int) -
SendTimeoutClose(Bool) -
Reuseaddr(Bool) -
ActiveMode(ActiveState) -
Mode(SocketMode) -
CertKeyConfig(TlsCerts) -
AlpnPreferredProtocols(List(String)) -
Ipv6 -
Buffer(Int) -
Ip(Interface)
Values
pub const default_options: List(TcpOption)
pub fn to_dict(
options: List(TcpOption),
) -> dict.Dict(dynamic.Dynamic, dynamic.Dynamic)