15 #ifndef RCLCPP__NETWORK_FLOW_ENDPOINT_HPP_
16 #define RCLCPP__NETWORK_FLOW_ENDPOINT_HPP_
22 #include "rcl/network_flow_endpoints.h"
24 #include "rclcpp/visibility_control.hpp"
30 class NetworkFlowEndpoint;
34 bool operator==(
const NetworkFlowEndpoint & left,
const NetworkFlowEndpoint & right);
38 bool operator!=(
const NetworkFlowEndpoint & left,
const NetworkFlowEndpoint & right);
42 std::ostream &
operator<<(std::ostream & os,
const NetworkFlowEndpoint & network_flow_endpoint);
54 : transport_protocol_(
55 rcl_network_flow_endpoint_get_transport_protocol_string(network_flow_endpoint.
58 rcl_network_flow_endpoint_get_internet_protocol_string(
62 dscp_(network_flow_endpoint.
dscp),
105 std::string transport_protocol_;
106 std::string internet_protocol_;
107 uint16_t transport_port_;
108 uint32_t flow_label_;
110 std::string internet_address_;
RCLCPP_PUBLIC uint32_t flow_label() const
Get flow label.
RCLCPP_PUBLIC const std::string & internet_protocol() const
Get internet protocol.
RCLCPP_PUBLIC uint16_t transport_port() const
Get transport port.
RCLCPP_PUBLIC const std::string & transport_protocol() const
Get transport protocol.
RCLCPP_PUBLIC const std::string & internet_address() const
Get internet address.
RCLCPP_PUBLIC NetworkFlowEndpoint(const rcl_network_flow_endpoint_t &network_flow_endpoint)
Construct from rcl_network_flow_endpoint_t.
RCLCPP_PUBLIC uint8_t dscp() const
Get DSCP.
Versions of rosidl_typesupport_cpp::get_message_type_support_handle that handle adapted types.
RCLCPP_PUBLIC bool operator==(const NetworkFlowEndpoint &left, const NetworkFlowEndpoint &right)
Check if two NetworkFlowEndpoint instances are equal.
RCLCPP_PUBLIC std::ostream & operator<<(std::ostream &os, const FutureReturnCode &future_return_code)
Stream operator for FutureReturnCode.
RCLCPP_PUBLIC bool operator!=(const NetworkFlowEndpoint &left, const NetworkFlowEndpoint &right)
Check if two NetworkFlowEndpoint instances are not equal.