MeshProtocolSimulator  1.0.0
Classes | Enumerations | Functions
Emulator_helpers.h File Reference

This file contains helper classes or structured for Emulator class. More...

#include "meshNetGateway.h"
#include "Simulation_interface.h"
#include <deque>
#include <vector>
#include <thread>
#include <mutex>
#include <condition_variable>
#include <list>

Go to the source code of this file.

Classes

struct  NodeConnections
 This structure represents link connection between two nodes. Nodes are indentified by it's MeshMAC addresses. More...
 
struct  NeighborNode
 
struct  NodeSettings
 Settings for each node in simulation. Those settings can be get from scenario file. More...
 
struct  RawMessage
 This structure represents raw message, that was sent between two virtual radios. It has no header and data are not structured. More...
 
struct  RawMessageDescriptor
 Class, that holds description of shared pointer to RawMessage instance. This is most effective way, how to store RawMessage in all neighbor nodes without any data copying or allocating place for them. So only shared pointer to RawMessage is shared and other fields are not shared (can be changed on each neighbor node and this change will not be reflected to another neighbor node's messages). More...
 
class  NodeSimulator
 Structure, that runs simulation for one node in network and contains some info about that node. More...
 

Enumerations

enum  TableType {
  TT_RTable = 0, TT_IDTable, TT_OIDTable, TT_FIDTable,
  TT_DHCPTable, TT_WaitingFIFO, TT_OutFIFO
}
 This enum represents type of table of buffer used in MeshNet.
 

Functions

std::string ConvertToBase64 (const MeshNetScanResult &result)
 Converts MeshNetScanResult to Base64. Structure of data is: More...
 

Detailed Description

This file contains helper classes or structured for Emulator class.

See also
NodeConnections
NodeSettings
RawMessage
RawMessageDescriptor
NodeSimulator
Emulator

Credits

Author
Matej Fitoš
Date
May 4, 2022

Function Documentation

◆ ConvertToBase64()

std::string ConvertToBase64 ( const MeshNetScanResult &  result)

Converts MeshNetScanResult to Base64. Structure of data is:

  • 4 bytes - BSSID,
  • 1 bytes - Address,
  • 2 bytes - version,
  • 2 bytes - Flags,
  • 1 byte - HopsToGateway,
  • 1 byte - RSSI,
  • 1 byte - SSID length,
  • x bytes - SSID without null terminator.
    Returns
    Returns unique identifier of current message.