Skip to main content

UdpOutput.h File

UdpOutput Node — terminal sink that writes packets to a UDP destination. More...

Included Headers

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

Namespaces Index

namespacesimaai
namespaceneat
namespacenodes

Classes Index

structUdpOutputOptions

Destination + sync options for the UdpOutput Node. More...

classUdpOutput

UDP sink Node — writes packets to a UDP destination. More...

Description

UdpOutput Node — terminal sink that writes packets to a UDP destination.

Wraps udpsink. Place at the tail of a Session that streams over the network (RTP video, telemetry forwarding, etc.). Pair with an upstream payloader for RTP, or feed raw packets directly for custom protocols.

File Listing

The file content with the documentation metadata removed is:

1
10#pragma once
11
12#include "builder/Node.h"
13
14#include <memory>
15#include <string>
16#include <vector>
17
18namespace simaai::neat {
19
26 std::string host = "127.0.0.1";
27 int port = 5000;
28 bool sync = false;
29 bool async = false;
30};
31
40class UdpOutput final : public Node {
41public:
43 explicit UdpOutput(UdpOutputOptions opt) : opt_(std::move(opt)) {}
44
46 std::string kind() const override {
47 return "UdpOutput";
48 }
50 NodeCapsBehavior caps_behavior() const override {
51 return NodeCapsBehavior::Dynamic;
52 }
54 std::string backend_fragment(int node_index) const override;
56 std::vector<std::string> element_names(int node_index) const override;
57
58private:
60};
61
62} // namespace simaai::neat
63
64namespace simaai::neat::nodes {
66std::shared_ptr<simaai::neat::Node> UdpOutput(UdpOutputOptions opt = {});
67} // namespace simaai::neat::nodes

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.