pub async fn tcp_connect(addr: SocketAddr, cfg: SharedCfg) -> Result<Io>Expand description
Opens a TCP connection to a remote host.
ยงPanics
Panics if called outside an ntex runtime, for example from a plain thread
or a runtime from another crate. Call it from code running under
#[ntex::main], #[ntex::test], or an ntex System.