35 #include "flowcontrol.pb.h" 37 class EMANE::Controls::FlowControlControlMessage::Implementation
40 Implementation(std::uint16_t u16Tokens):
41 u16Tokens_{u16Tokens}{}
49 const std::uint16_t u16Tokens_;
52 EMANE::Controls::FlowControlControlMessage::
53 FlowControlControlMessage(
const FlowControlControlMessage & msg):
55 pImpl_{
new Implementation{*msg.pImpl_}}
58 EMANE::Controls::FlowControlControlMessage::FlowControlControlMessage(std::uint16_t u16Tokens):
59 ControlMessage{IDENTIFIER},
60 pImpl_{
new Implementation{u16Tokens}}
68 return pImpl_->getTokens();
76 EMANEMessage::FlowControlControlMessage msg;
77 msg.set_tokens(pImpl_->getTokens());
79 if(!msg.SerializeToString(&serialization))
96 EMANEMessage::FlowControlControlMessage msg;
98 if(!msg.ParseFromString(serialization))
std::string Serialization
SerializationException is thrown when an exception occurs during serialization or deserialization of ...
FlowControlControlMessage * clone() const override
static FlowControlControlMessage * create(const Serialization &serialization)
~FlowControlControlMessage()
Serialization serialize() const override
Flow Control Control Messages are sent between a MAC layer and a transport in order to communicate da...
std::uint16_t getTokens() const
ControlMessage(ControlMessageId id)