s-net-Tools
SnetServiceMessage Class Reference

#include <SnetServiceMessage.h>

Inheritance diagram for SnetServiceMessage:
Collaboration diagram for SnetServiceMessage:

Public Member Functions

 SnetServiceMessage (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 SetPayload (const std::vector< unsigned char > &a_Payload)
 
std::vector< unsigned char > GetPayload () const
 
size_t GetSize () 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 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)
 
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
 
- 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
 

Additional Inherited Members

Detailed Description

Definition at line 42 of file SnetServiceMessage.h.

Constructor & Destructor Documentation

SnetServiceMessage::SnetServiceMessage ( 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 SnetServiceMessage.h.

Member Function Documentation

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

Reimplemented from SnetAppMessage.

Definition at line 60 of file SnetServiceMessage.h.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reimplemented from SnetAppMessage.

Definition at line 71 of file SnetServiceMessage.h.

Here is the call graph for this function:

Here is the caller graph for this function:

std::vector<unsigned char> SnetServiceMessage::GetPayload ( ) const
inline

Definition at line 48 of file SnetServiceMessage.h.

size_t SnetServiceMessage::GetSize ( ) const
inlinevirtual

Reimplemented from SnetAppMessage.

Definition at line 51 of file SnetServiceMessage.h.

Here is the call graph for this function:

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

Reimplemented from SnetAppMessage.

Definition at line 54 of file SnetServiceMessage.h.

Here is the call graph for this function:

void SnetServiceMessage::SetPayload ( const std::vector< unsigned char > &  a_Payload)
inline

Definition at line 47 of file SnetServiceMessage.h.


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