-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFrame.h
More file actions
39 lines (35 loc) · 904 Bytes
/
Frame.h
File metadata and controls
39 lines (35 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef FRAME_H
#define FRAME_H
#include <string>
#include <mutex>
/*using namespace std;*/
class Frame
{
public:
Frame();
Frame(std::string name);
virtual ~Frame();
std::string getName();
std::string getsourceAdd();
void setsourceAdd(std::string);
std::string getDestAdd();
void setDestAdd(std::string);
void setPayload(std::string, std::string, std::string);
void clearPayload();
void setAddresses();
//void
std::string getPayload();
std::mutex mymutex;
int isempty();
protected:
private:
int empty;
std::string name;
std::string sourceAdd; /* string of length 17 */
std::string destAdd; /* string of length 17 */
std::string payload;
/*string etherType; string of length 4 */
/*string payload; string of length >= 84 */
/*string fcs; string of length 8 */
};
#endif // FRAME_H