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

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

Provided methods

pub fn set_keep_alive(&self, enabled: bool) -> Result<()>[src]

pub fn keep_alive(&self) -> Result<bool>[src]

pub fn set_keep_idle(&self, secs: i32) -> Result<()>[src]

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

pub fn keep_idle(&self) -> Result<i32>[src]

pub fn set_keep_intvl(&self, secs: i32) -> Result<()>[src]

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). */ 前后两次探测之间的时间间隔,单位是秒

pub fn keep_intvl(&self) -> Result<i32>[src]

pub fn set_keep_cnt(&self, count: i32) -> Result<()>[src]

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

pub fn keep_cnt(&self) -> Result<i32>[src]

Loading content...

Implementations on Foreign Types

impl TcpExt for TcpStream[src]

Loading content...

Implementors

Loading content...