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.
 
 

40 lines
566 B

/*
* 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_ */