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
547 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();
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_ */