EMANE
1.2.1
|
Flow Control Control Messages are sent between a MAC layer and a transport in order to communicate data rate and congestion. More...
#include <flowcontrolcontrolmessage.h>
Public Types | |
enum | { IDENTIFIER = EMANE_CONTROL_MEASSGE_FLOW_CONTROL } |
Public Member Functions | |
FlowControlControlMessage * | clone () const override |
~FlowControlControlMessage () | |
std::uint16_t | getTokens () const |
Serialization | serialize () const override |
ControlMessageId | getId () const |
Static Public Member Functions | |
static FlowControlControlMessage * | create (const Serialization &serialization) |
static FlowControlControlMessage * | create (std::uint16_t u16Tokens) |
Flow Control Control Messages are sent between a MAC layer and a transport in order to communicate data rate and congestion.
Definition at line 58 of file flowcontrolcontrolmessage.h.
anonymous enum |
Enumerator | |
---|---|
IDENTIFIER |
Definition at line 124 of file flowcontrolcontrolmessage.h.
EMANE::Controls::FlowControlControlMessage::~FlowControlControlMessage | ( | ) |
Destroys an instance
Definition at line 63 of file flowcontrolcontrolmessage.cc.
|
overridevirtual |
Clones the control message on the heap
Implements EMANE::Cloneable< ControlMessage >.
Definition at line 107 of file flowcontrolcontrolmessage.cc.
|
static |
Creates a FlowControlControlMessage instance from a serialization on the heap
serialization | Message serialization |
SerializationException | when a valid message cannot be de-serialized |
Definition at line 94 of file flowcontrolcontrolmessage.cc.
|
static |
Creates a FlowControlControlMessage instance on the heap
u16Tokens | The current number of tokens |
Definition at line 88 of file flowcontrolcontrolmessage.cc.
|
inlineinherited |
Gets the control message id
Definition at line 64 of file controlmessage.h.
std::uint16_t EMANE::Controls::FlowControlControlMessage::getTokens | ( | ) | const |
Gets the token count
Definition at line 66 of file flowcontrolcontrolmessage.cc.
|
overridevirtual |
Serializes the instance
SerializationException | if the instance cannot be serialized |
Reimplemented from EMANE::Serializable.
Definition at line 72 of file flowcontrolcontrolmessage.cc.