MeshNet  1.0.0
Data Structures | Enumerations
meshPacketDecoders.h File Reference

This file contains static classes that can decode system packets. More...

#include "meshPacket.h"
Include dependency graph for meshPacketDecoders.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  ACKPD
 Static class, that groups static methods to decode ACK packet. More...
 
class  ERR_ACKPD
 Static class, that groups static methods to decode ERR_ACK packet. More...
 
class  NetScanRequestPD
 Static class, that groups static methods to decode network scan request packet. More...
 
class  NetScanRespPD
 Static class, that groups static methods to decode network scan response packet. More...
 
class  NetConRequestPD
 Static class, that groups static methods to decode network connection request packet. More...
 
class  NetConRespPD
 Static class, that groups static methods to decode network connection response packet. More...
 
class  RelNetConRequestPD
 Static class, that groups static methods to decode relayied network connection request packet. More...
 
class  RelNetConRespPD
 Static class, that groups static methods to decode relayied network connection response packet. More...
 
class  PathDiscPD
 Static class, that groups static methods to decode path discovery packet. More...
 
class  PathDiscRespPD
 Static class, that groups static methods to decode path discovery response packet. More...
 
class  DisconnectPD
 Static class, that groups static methods to decode node disconnect packet. More...
 
class  PingPD
 Static class, that groups static methods to decode ping packet. More...
 

Enumerations

enum  ERR_ACK_ErrorCode {
  EAET_None = 0, EAET_SamePacketReceived = 1, EAET_SameFrameReceived = 2, EAET_FrameSizeExceeded = 3,
  EAET_PacketSizeExceeded = 4, EAET_FrameOrderError = 5, EAET_AllocationError = 6, EAET_PacketResendNeeded = 7,
  EAET_InvalidPacket = 8
}
 
enum  NetConRespRefuseReason { NCRRR_None = 0, NCRRR_Refused = 253, NCRRR_Full = 254, NCRRR_Error = 255 }
 
enum  MeshNetDisconnectPacketType { MNDPT_Disconnecting = 1, MNDPT_DisconnectRequest = 2, MNDPT_NetworkDrop = 3 }
 

Detailed Description

This file contains static classes that can decode system packets.

Credits

Author
Matej Fitoš
Date
Jan 14, 2022
See also
ACKPD
ERR_ACKPD
NetScanRequestPD
NetScanRespPD

Enumeration Type Documentation

◆ ERR_ACK_ErrorCode

Enumerator
EAET_None 
EAET_SamePacketReceived 

Same packet has been already received.

EAET_SameFrameReceived 

Same frame has been already received during building.

EAET_FrameSizeExceeded 

Frame size exceeded. - This should never happened.

EAET_PacketSizeExceeded 

Packet size exceeded. - This should never happened too.

EAET_FrameOrderError 

Frames was not ordered correctly.

EAET_AllocationError 

Space for packet cannot be allocated in receiver RAM.

EAET_PacketResendNeeded 

Packet has to be resent.

EAET_InvalidPacket 

Packet is invalid.

◆ MeshNetDisconnectPacketType

Enumerator
MNDPT_Disconnecting 

Node is disconnecting from network.

MNDPT_DisconnectRequest 

Gateway sends disconnect request to specified node.

MNDPT_NetworkDrop 

Network dropped, all nodes has to be disconnected.

◆ NetConRespRefuseReason

Enumerator
NCRRR_None 
NCRRR_Refused 
NCRRR_Full 
NCRRR_Error