Function rcl_subscription_get_network_flow_endpoints
Defined in File network_flow_endpoints.h
Function Documentation
-
rcl_ret_t rcl_subscription_get_network_flow_endpoints(const rcl_subscription_t *subscription, rcutils_allocator_t *allocator, rcl_network_flow_endpoint_array_t *network_flow_endpoint_array)
Get network flow endpoints of a subscription.
Query the underlying middleware for a given subscription’s network flow endpoints
The
subscriptionargument must point to a valid subscription.The
allocatorargument must be a valid allocator.The
network_flow_endpoint_arrayargument must be allocated and zero-initialized. The function returns network flow endpoints in thenetwork_flow_endpoint_arrayargument, using the allocator to allocate memory for thenetwork_flow_endpoint_arrayargument’s internal data structures whenever required. The caller is reponsible for memory deallocation by passing thenetwork_flow_endpoint_arrayargument torcl_network_flow_endpoint_array_finifunction.
[1] implementation may need to protect the data structure with a lockAttribute
Adherence
Allocates Memory
Yes
Thread-Safe
No
Uses Atomics
No
Lock-Free
Maybe [1]
- Parameters:
subscription – [in] the subscription 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_OKif successful, or- Returns:
RCL_RET_INVALID_ARGUMENTif any argument is null, or- Returns:
RCL_RET_BAD_ALLOCif memory allocation fails, or- Returns:
RCL_RET_UNSUPPORTEDif not supported, or- Returns:
RCL_RET_ERRORif an unexpected error occurs.