[−][src]Function tmkms::connection::tcp::open_secret_connection
pub fn open_secret_connection(
host: &str,
port: u16,
identity_key_path: &Option<PathBuf>,
peer_id: &Option<Id>,
timeout: Option<u16>,
v0_33_handshake: bool
) -> Result<SecretConnection<TcpStream>, Error>
Open a TCP socket connection encrypted with SecretConnection