karyon_net::tcp

Function dial

Source
pub async fn dial<C>(
    endpoint: &Endpoint,
    config: TcpConfig,
    codec: C,
) -> Result<TcpConn<C>>
where C: Codec + Clone,
Expand description

Connects to the given TCP address and port.