/*
|
|
* Packet.h
|
|
*
|
|
* Created on: 10-01-2017
|
|
* Author: Piotr Dergun
|
|
*/
|
|
|
|
#ifndef PACKET_H_
|
|
#define PACKET_H_
|
|
|
|
#include <iostream>
|
|
using namespace std;
|
|
|
|
class Packet
|
|
{
|
|
string srcIp;
|
|
string dstIp;
|
|
int srcPort;
|
|
int dstPort;
|
|
string msg;
|
|
public:
|
|
Packet();
|
|
virtual ~Packet();
|
|
|
|
//settery
|
|
void setSrcIp(string ip);
|
|
void setDstIp(string ip);
|
|
void setSrcPort(int port);
|
|
void setDstPort(int port);
|
|
void setMsg(string msg);
|
|
|
|
//gettery
|
|
string getSrcIp();
|
|
string getDstIp();
|
|
int getSrcPort();
|
|
int getDstPort();
|
|
string getMsg();
|
|
};
|
|
|
|
#endif /* PACKET_H_ */
|