Beacon.h
Go to the documentation of this file.
00001 /*
00002  * \file Beacon.h
00003  *
00004  * \date 19.07.2013
00005  * \author G√ľnther Cwioro, Torsten Andre
00006  */
00007 
00008 #ifndef Beacon_H_
00009 #define Beacon_H_
00010 
00016 class Beacon {
00017 public:
00022         Beacon(unsigned char* source, std::string hostname);
00023 
00027         Beacon(unsigned char* buffer);
00028 
00029         virtual ~Beacon();
00030 
00036         std::string getFrameAsNetworkString();
00037 
00043         int GetCrc32(const std::string& my_string);
00044         
00045 
00046         bool correct_crc_;                      
00047         unsigned char mac_source_[6];           
00048         struct ethhdr *eh_;                     
00049         std::string hostname_;                  
00050 
00051         static uint32_t HEADER_FIXED_LEN;       
00052 
00053 
00054 };
00055 
00056 uint32_t Beacon::HEADER_FIXED_LEN = 23;         
00057 
00058 #endif /* Beacon_H_ */


adhoc_communication
Author(s): Guenter Cwioro , Torsten Andre
autogenerated on Thu Jun 6 2019 20:59:42