Symulacja NAT na przedmiot Symulacje Komputerowe
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

39 lines
632 B

/*
* Packet.h
*
* Created on: 10-01-2017
* Author: Piotr Dergun
*/
#ifndef PACKET_H_
#define PACKET_H_
#include "common.h"
class Packet
{
string srcIp;
string dstIp;
int srcPort;
int dstPort;
string msg;
public:
Packet() : srcIp("0.0.0.0"), dstIp("0.0.0.0"), srcPort(0), dstPort(0), msg("") {}
Packet(string msg);
// settery
void setSrcIp(string srcIp);
void setDstIp(string dstIp);
void setSrcPort(int srcPort);
void setDstPort(int dstPort);
void setMsg(string msg);
// gettery
string getSrcIp();
string getDstIp();
int getSrcPort();
int getDstPort();
string getMsg();
};
#endif /* PACKET_H_ */