17#ifndef __ROGUE_PROTOCOLS_PACKETIZER_TRANSPORT_H__
18#define __ROGUE_PROTOCOLS_PACKETIZER_TRANSPORT_H__
55 std::weak_ptr<rogue::protocols::packetizer::Controller> cntl_;
59 std::unique_ptr<std::thread> thread_;
60 std::atomic<bool> threadEn_{
false};
78 static std::shared_ptr<rogue::protocols::packetizer::Transport>
create();
104 void setController(std::shared_ptr<rogue::protocols::packetizer::Controller> cntl);
116 void acceptFrame(std::shared_ptr<rogue::interfaces::stream::Frame> frame);
120typedef std::shared_ptr<rogue::protocols::packetizer::Transport>
TransportPtr;
Stream slave endpoint and default frame pool.
Packetizer transport endpoint.
~Transport()
Destroys the packetizer transport endpoint.
void stop()
Stops and joins the outbound worker thread.
static std::shared_ptr< rogue::protocols::packetizer::Transport > create()
Creates a packetizer transport endpoint.
void setController(std::shared_ptr< rogue::protocols::packetizer::Controller > cntl)
Attaches the packetizer controller.
static void setup_python()
Registers Python bindings for this class.
void acceptFrame(std::shared_ptr< rogue::interfaces::stream::Frame > frame)
Accepts a frame from the upstream stream interface.
Transport()
Constructs a packetizer transport endpoint.
std::shared_ptr< rogue::protocols::packetizer::Transport > TransportPtr