Trait queen::net::tcp_ext::TcpExt[][src]

pub trait TcpExt: AsRawFd {
    fn set_keep_alive(&self, enabled: bool) -> Result<()> { ... }
fn keep_alive(&self) -> Result<bool> { ... }
fn set_keep_idle(&self, secs: i32) -> Result<()> { ... }
fn keep_idle(&self) -> Result<i32> { ... }
fn set_keep_intvl(&self, secs: i32) -> Result<()> { ... }
fn keep_intvl(&self) -> Result<i32> { ... }
fn set_keep_cnt(&self, count: i32) -> Result<()> { ... }
fn keep_cnt(&self) -> Result<i32> { ... } }

Provided methods

Send first probe after `interval’ seconds 设置连接上如果没有数据发送的话,多久后发送 keepalive 探测分组,单位是秒

Send next probes after the specified interval. Note that we set the delay as interval / 3, as we send three probes before detecting an error (see the next setsockopt call). */ 前后两次探测之间的时间间隔,单位是秒

Consider the socket in error state after three we send three ACK probes without getting a reply. */ 关闭一个非活跃连接之前的最大重试次数

Implementations on Foreign Types

Implementors