Skip to main content

tcp_connect

Function tcp_connect 

Source
pub fn tcp_connect(
    addr: impl ToSocketAddrs,
    cap: &impl Has<NetConnect>,
) -> Result<TcpStream, CapSecError>
Expand description

Opens a TCP connection to the given address. Requires NetConnect permission.