karyon_net::tcp

Function listen

Source
pub async fn listen<C>(
    endpoint: &Endpoint,
    config: TcpConfig,
    codec: C,
) -> Result<TcpListener<C>>
where C: Codec,
Expand description

Listens on the given TCP address and port.