Function holoscan::get_preferred_network_ports

std::vector<int> holoscan::get_preferred_network_ports(const char *env_var_name)

Get the preferred network ports from the specified environment variable.

This method reads the specified environment variable and returns a vector of preferred network ports. The environment variable is expected to be a comma-separated list of integers. If the environment variable is not set, is empty, or contains invalid or non-integer values, an empty vector is returned.

Parameters

env_var_name – The name of the environment variable to read.

Returns

The vector containing the preferred network ports. If the environment variable is not set, is empty, or no valid port numbers are found, an empty vector is returned.

Previous Function holoscan::get_current_time_us
Next Function holoscan::get_unused_network_ports
© Copyright 2022-2024, NVIDIA. Last updated on Apr 23, 2024.