rogue
Loading...
Searching...
No Matches
ControllerV1.h
Go to the documentation of this file.
1
17#ifndef __ROGUE_PROTOCOLS_PACKETIZER_CONTROLLER_V1_H__
18#define __ROGUE_PROTOCOLS_PACKETIZER_CONTROLLER_V1_H__
19#include "rogue/Directives.h"
20
21#include <stdint.h>
22
23#include <memory>
24
26#include "rogue/Logging.h"
27#include "rogue/Queue.h"
31
32namespace rogue {
33namespace protocols {
34namespace packetizer {
35
36class Application;
37class Transport;
38class Header;
39
47class ControllerV1 : public Controller, public rogue::EnableSharedFromThis<rogue::protocols::packetizer::ControllerV1> {
48 public:
63 static std::shared_ptr<rogue::protocols::packetizer::ControllerV1> create(
64 bool enSsi,
65 std::shared_ptr<rogue::protocols::packetizer::Transport> tran);
66
77 ControllerV1(bool enSsi, std::shared_ptr<rogue::protocols::packetizer::Transport> tran);
78
81
86 void transportRx(std::shared_ptr<rogue::interfaces::stream::Frame> frame);
87
93 void applicationRx(std::shared_ptr<rogue::interfaces::stream::Frame> frame, uint8_t id);
94};
95
96// Convenience
97typedef std::shared_ptr<rogue::protocols::packetizer::ControllerV1> ControllerV1Ptr;
98
99} // namespace packetizer
100} // namespace protocols
101}; // namespace rogue
102
103#endif
Typed shared-from-this helper for Rogue classes.
Packetizer controller implementation for protocol v1.
void applicationRx(std::shared_ptr< rogue::interfaces::stream::Frame > frame, uint8_t id)
Processes a frame received from one application endpoint.
~ControllerV1()
Destroys the controller instance.
static std::shared_ptr< rogue::protocols::packetizer::ControllerV1 > create(bool enSsi, std::shared_ptr< rogue::protocols::packetizer::Transport > tran)
Creates a packetizer v1 controller.
void transportRx(std::shared_ptr< rogue::interfaces::stream::Frame > frame)
Processes a frame received at the transport interface.
Packetizer base controller.
Definition Controller.h:46
std::shared_ptr< rogue::protocols::packetizer::ControllerV1 > ControllerV1Ptr