amber/conn/tcp_conn

Types

pub type TcpConn

Values

pub fn set_keep_alive(
  of conn: TcpConn,
  to keep_alive: Bool,
) -> Result(Nil, error.Error)

Enable/disable keep-alive functionality.

pub fn set_no_delay(
  of conn: TcpConn,
  to no_delay: Bool,
) -> Result(Nil, error.Error)

Enable/disable the use of Nagle’s algorithm.

pub fn to_conn(conn: TcpConn) -> conn.Conn

Converts a TcpConn to a Conn for use with generic connection functions.

Search Document