19#include <boost/asio.hpp>
45 [[nodiscard]] std::string
type()
const override;
65 constexpr static size_t INPUT_PORT_INDEX_NODE_DATA = 0;
68 bool initialize()
override;
71 void deinitialize()
override;
79 std::array<int, 4> _ip{};
85 static constexpr std::array<int, 2> IP_LIMITS = { 0, 255 };
87 static constexpr std::array<int, 2> PORT_LIMITS = { 0, 65535 };
90 boost::asio::io_context _io_context;
92 boost::asio::ip::udp::socket _socket;
94 boost::asio::ip::udp::resolver _resolver;
96 boost::asio::ip::udp::resolver::results_type _endpoints;
nlohmann::json json
json namespace
Definition FlowManager.hpp:21
Position, Velocity and Attitude Storage Class.
Abstract parent class for all nodes.
Definition Node.hpp:86
UDP Client.
Definition udpSend.hpp:26
UdpSend & operator=(UdpSend &&)=delete
Move assignment operator.
UdpSend()
Default constructor.
bool resetNode() override
Resets the node. Moves the read cursor to the start.
std::string type() const override
String representation of the Class Type.
void restore(const json &j) override
Restores the node from a json object.
void guiConfig() override
ImGui config window which is shown on double click.
UdpSend(UdpSend &&)=delete
Move constructor.
UdpSend(const UdpSend &)=delete
Copy constructor.
static std::string category()
String representation of the Class Category.
UdpSend & operator=(const UdpSend &)=delete
Copy assignment operator.
json save() const override
Saves the node into a json object.
~UdpSend() override
Destructor.
static std::string typeStatic()
String representation of the Class Type.