Function rcl_publisher_get_network_flow_endpoints
Defined in File network_flow_endpoints.h
Function Documentation
-
rcl_ret_t rcl_publisher_get_network_flow_endpoints(const rcl_publisher_t *publisher, rcutils_allocator_t *allocator, rcl_network_flow_endpoint_array_t *network_flow_endpoint_array)
Get network flow endpoints of a publisher.
Query the underlying middleware for a given publisher’s network flow endpoints
The
publisher
argument must point to a valid publisher.The
allocator
argument must be a valid allocator.The
network_flow_endpoint_array
argument must be allocated and zero-initialized. The function returns network flow endpoints in thenetwork_flow_endpoint_array
argument, using the allocator to allocate memory for thenetwork_flow_endpoint_array
argument’s internal data structures whenever required. The caller is reponsible for memory deallocation by passing thenetwork_flow_endpoint_array
argument torcl_network_flow_endpoint_array_fini
function.Attribute
Adherence
Allocates Memory
Yes
Thread-Safe
No
Uses Atomics
No
Lock-Free
Maybe [1]
- Parameters:
publisher – [in] the publisher instance to inspect
allocator – [in] allocator to be used when allocating space for network_flow_endpoint_array_t
network_flow_endpoint_array – [out] the network flow endpoints
- Returns:
RCL_RET_OK
if successful, or- Returns:
RCL_RET_INVALID_ARGUMENT
if any argument is null, or- Returns:
RCL_RET_BAD_ALLOC
if memory allocation fails, or- Returns:
RCL_RET_UNSUPPORTED
if not supported, or- Returns:
RCL_RET_ERROR
if an unexpected error occurs.