Leosac  0.8.0
Open Source Access Control
Leosac::Module::Rpleth::RplethPacket Class Reference

#include <rplethpacket.hpp>

+ Collaboration diagram for Leosac::Module::Rpleth::RplethPacket:

Public Types

enum  Sender { Sender::Client = 0, Sender::Server }
 

Public Member Functions

 RplethPacket (Sender packetSender)
 
 RplethPacket (const RplethPacket &other)
 
 ~RplethPacket ()=default
 
RplethPacketoperator= (const RplethPacket &other)
 
Byte checksum () const
 

Public Attributes

Byte status
 
Byte type
 
Byte command
 
Byte dataLen
 
std::vector< Bytedata
 
Byte sum
 
bool isGood
 
Sender sender
 

Detailed Description

Definition at line 39 of file rplethpacket.hpp.

Member Enumeration Documentation

◆ Sender

Enumerator
Client 
Server 

Definition at line 42 of file rplethpacket.hpp.

Constructor & Destructor Documentation

◆ RplethPacket() [1/2]

RplethPacket::RplethPacket ( Sender  packetSender)

Definition at line 30 of file rplethpacket.cpp.

◆ RplethPacket() [2/2]

RplethPacket::RplethPacket ( const RplethPacket other)

Definition at line 41 of file rplethpacket.cpp.

◆ ~RplethPacket()

Leosac::Module::Rpleth::RplethPacket::~RplethPacket ( )
default

Member Function Documentation

◆ checksum()

Byte RplethPacket::checksum ( ) const

Definition at line 66 of file rplethpacket.cpp.

◆ operator=()

RplethPacket & RplethPacket::operator= ( const RplethPacket other)

Definition at line 53 of file rplethpacket.cpp.

Member Data Documentation

◆ command

Byte Leosac::Module::Rpleth::RplethPacket::command

Definition at line 63 of file rplethpacket.hpp.

◆ data

std::vector<Byte> Leosac::Module::Rpleth::RplethPacket::data

Definition at line 65 of file rplethpacket.hpp.

◆ dataLen

Byte Leosac::Module::Rpleth::RplethPacket::dataLen

Definition at line 64 of file rplethpacket.hpp.

◆ isGood

bool Leosac::Module::Rpleth::RplethPacket::isGood

Definition at line 67 of file rplethpacket.hpp.

◆ sender

Sender Leosac::Module::Rpleth::RplethPacket::sender

Definition at line 68 of file rplethpacket.hpp.

◆ status

Byte Leosac::Module::Rpleth::RplethPacket::status

Definition at line 61 of file rplethpacket.hpp.

◆ sum

Byte Leosac::Module::Rpleth::RplethPacket::sum

Definition at line 66 of file rplethpacket.hpp.

◆ type

Byte Leosac::Module::Rpleth::RplethPacket::type

Definition at line 62 of file rplethpacket.hpp.


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