[][src]Function tmkms::connection::tcp::open_secret_connection

pub fn open_secret_connection(
    host: &str,
    port: u16,
    secret_key: &Seed,
    peer_id: &Option<Id>,
    timeout: Option<u16>
) -> Result<SecretConnection<TcpStream>, Error>

Open a TCP socket connection encrypted with SecretConnection