Skip to main content

remote_query

Function remote_query 

Source
pub fn remote_query(
    dest_hash: [u8; 16],
    dest_sig_pub: [u8; 32],
    identity_prv_key: [u8; 64],
    path: &str,
    data: &[u8],
    config_path: Option<&Path>,
    timeout: Duration,
) -> Option<RemoteQueryResult>
Expand description

Perform a remote management query.

  1. Connects as a shared client
  2. Creates a link to the management destination
  3. Identifies on the link
  4. Sends a request to the specified path
  5. Returns the response data

Returns None if the query fails or times out.