pub fn tcp_connect(
addr: &str,
cap: &impl CapProvider<NetConnect>,
) -> Result<TcpStream, CapSecError>Expand description
Opens a TCP connection to the given address.
Requires NetConnect permission.
pub fn tcp_connect(
addr: &str,
cap: &impl CapProvider<NetConnect>,
) -> Result<TcpStream, CapSecError>Opens a TCP connection to the given address.
Requires NetConnect permission.