Satellite-Gateway
SnetAppMessage Class Reference

#include <SnetAppMessage.h>

Inheritance diagram for SnetAppMessage:
Collaboration diagram for SnetAppMessage:

Public Member Functions

 SnetAppMessage (uint8_t a_SrcServiceId=0, uint8_t a_DstServiceId=0, uint8_t a_Token=0, uint16_t a_SrcSSA=0xFFFE, uint16_t a_DstSSA=0xFFFE, bool a_OnAirARQ=true)
 
void SetSrcServiceId (uint8_t a_SrcServiceId=0)
 
uint8_t GetSrcServiceId () const
 
void SetDstServiceId (uint8_t a_DstServiceId=0)
 
uint8_t GetDstServiceId () const
 
void SetToken (uint8_t a_Token=0)
 
uint16_t GetToken () const
 
std::vector< unsigned char > Serialize () const
 
size_t Deserialize (const std::vector< unsigned char > &a_Buffer)
 
std::string Dissect () const
 
- Public Member Functions inherited from SnetPacket
 SnetPacket (uint16_t a_SrcSSA=0xFFFE, uint16_t a_DstSSA=0xFFFE, bool a_OnAirARQ=true)
 
virtual ~SnetPacket ()
 
void SetSrcSSA (uint16_t a_SrcSSA=0xFFFE)
 
uint16_t GetSrcSSA () const
 
void SetDstSSA (uint16_t a_DstSSA=0xFFFE)
 
uint16_t GetDstSSA () const
 
void SetOnAirARQ (bool a_OnAirARQ=true)
 
bool GetOnAirARQ () const
 

Protected Member Functions

size_t GetSize () const
 

Detailed Description

Definition at line 42 of file SnetAppMessage.h.

Constructor & Destructor Documentation

SnetAppMessage::SnetAppMessage ( uint8_t  a_SrcServiceId = 0,
uint8_t  a_DstServiceId = 0,
uint8_t  a_Token = 0,
uint16_t  a_SrcSSA = 0xFFFE,
uint16_t  a_DstSSA = 0xFFFE,
bool  a_OnAirARQ = true 
)
inline

Definition at line 44 of file SnetAppMessage.h.

Member Function Documentation

size_t SnetAppMessage::Deserialize ( const std::vector< unsigned char > &  a_Buffer)
inlinevirtual

Reimplemented from SnetPacket.

Reimplemented in SnetServiceMessage.

Definition at line 66 of file SnetAppMessage.h.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string SnetAppMessage::Dissect ( ) const
inlinevirtual

Reimplemented from SnetPacket.

Reimplemented in SnetServiceMessage.

Definition at line 82 of file SnetAppMessage.h.

Here is the call graph for this function:

Here is the caller graph for this function:

uint8_t SnetAppMessage::GetDstServiceId ( ) const
inline

Definition at line 50 of file SnetAppMessage.h.

size_t SnetAppMessage::GetSize ( ) const
inlineprotectedvirtual

Reimplemented from SnetPacket.

Reimplemented in SnetServiceMessage.

Definition at line 93 of file SnetAppMessage.h.

Here is the call graph for this function:

Here is the caller graph for this function:

uint8_t SnetAppMessage::GetSrcServiceId ( ) const
inline

Definition at line 48 of file SnetAppMessage.h.

uint16_t SnetAppMessage::GetToken ( ) const
inline

Definition at line 52 of file SnetAppMessage.h.

std::vector<unsigned char> SnetAppMessage::Serialize ( ) const
inlinevirtual

Reimplemented from SnetPacket.

Reimplemented in SnetServiceMessage.

Definition at line 55 of file SnetAppMessage.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void SnetAppMessage::SetDstServiceId ( uint8_t  a_DstServiceId = 0)
inline

Definition at line 49 of file SnetAppMessage.h.

void SnetAppMessage::SetSrcServiceId ( uint8_t  a_SrcServiceId = 0)
inline

Definition at line 47 of file SnetAppMessage.h.

void SnetAppMessage::SetToken ( uint8_t  a_Token = 0)
inline

Definition at line 51 of file SnetAppMessage.h.


The documentation for this class was generated from the following file: