pub fn open_secret_connection(
    host: &str,
    port: u16,
    identity_key_path: &Option<PathBuf>,
    peer_id: &Option<Id>,
    timeout: Option<u16>,
    protocol_version: Version
) -> Result<SecretConnection<TcpStream>, Error>
Expand description

Open a TCP socket connection encrypted with SecretConnection