pub async fn dial<C>( endpoint: &Endpoint, config: TcpConfig, codec: C, ) -> Result<TcpConn<C>>where C: Codec + Clone,
Connects to the given TCP address and port.