rcl  master
C API providing common ROS client library functionality.
Functions | Variables
localhost.h File Reference
#include "rcl/types.h"
#include "rcl/visibility_control.h"
Include dependency graph for localhost.h:

Go to the source code of this file.

Functions

bool rcl_localhost_only ()
 Determine if the user wants to communicate using loopback only. More...
 

Variables

const char *const RCL_LOCALHOST_ENV_VAR
 

Function Documentation

◆ rcl_localhost_only()

bool rcl_localhost_only ( )

Determine if the user wants to communicate using loopback only.

Checks if localhost should be used for network communication checking ROS_LOCALHOST_ONLY env variable

Returns
true if ROS_LOCALHOST_ONLY is set and is 1, false otherwise.

Variable Documentation

◆ RCL_LOCALHOST_ENV_VAR

const char* const RCL_LOCALHOST_ENV_VAR