Skip to main content

tcp_connect

Function tcp_connect 

Source
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.