|
|
@ -0,0 +1,72 @@ |
|
|
|
/*
|
|
|
|
* Packet.cpp |
|
|
|
* |
|
|
|
* Created on: 10-01-2017 |
|
|
|
* Author: Piotr Dergun |
|
|
|
*/ |
|
|
|
|
|
|
|
#include "Packet.h"
|
|
|
|
|
|
|
|
Packet::Packet() |
|
|
|
{ |
|
|
|
// TODO Auto-generated constructor stub
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
Packet::~Packet() |
|
|
|
{ |
|
|
|
// TODO Auto-generated destructor stub
|
|
|
|
} |
|
|
|
|
|
|
|
//settery
|
|
|
|
void Packet::setSrcIP(string ip) |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
void Packet::setDstIP(string ip) |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
void Packet::setSrcPort(int port) |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
void Packet::setDstPort(int port) |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
void Packet::setMsg(string msg) |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
string Packet::getSrcIP() |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
string Packet::getDstIP() |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
int Packet::Packet::getSrcPort() |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
int Packet::getDstPort() |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
string Packet::getMsg() |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|