Skip to main content

UdpOutput.h File

UDP sink node wrapper. More...

Included Headers

#include "builder/Node.h" #include <memory> #include <string> #include <vector>

Namespaces Index

namespacesimaai
namespaceneat
namespacenodes

Classes Index

structUdpOutputOptions
classUdpOutput

Description

UDP sink node wrapper.

File Listing

The file content with the documentation metadata removed is:

1
6#pragma once
7
8#include "builder/Node.h"
9
10#include <memory>
11#include <string>
12#include <vector>
13
14namespace simaai::neat {
15
17 std::string host = "127.0.0.1";
18 int port = 5000;
19 bool sync = false;
20 bool async = false;
21};
22
23class UdpOutput final : public Node {
24public:
25 explicit UdpOutput(UdpOutputOptions opt) : opt_(std::move(opt)) {}
26
27 std::string kind() const override {
28 return "UdpOutput";
29 }
30 NodeCapsBehavior caps_behavior() const override {
31 return NodeCapsBehavior::Dynamic;
32 }
33 std::string backend_fragment(int node_index) const override;
34 std::vector<std::string> element_names(int node_index) const override;
35
36private:
38};
39
40} // namespace simaai::neat
41
42namespace simaai::neat::nodes {
43std::shared_ptr<simaai::neat::Node> UdpOutput(UdpOutputOptions opt = {});
44} // namespace simaai::neat::nodes

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.