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

  1. /*
  2. * Packet.h
  3. *
  4. * Created on: 10-01-2017
  5. * Author: Piotr Dergun
  6. */
  7. #ifndef PACKET_H_
  8. #define PACKET_H_
  9. #include <iostream>
  10. using namespace std;
  11. class Packet
  12. {
  13. string srcIp;
  14. string dstIp;
  15. int srcPort;
  16. int dstPort;
  17. string msg;
  18. public:
  19. Packet();
  20. virtual ~Packet();
  21. //settery
  22. void setSrcIp(string ip);
  23. void setDstIp(string ip);
  24. void setSrcPort(int port);
  25. void setDstPort(int port);
  26. void setMsg(string msg);
  27. //gettery
  28. string getSrcIp();
  29. string getDstIp();
  30. int getSrcPort();
  31. int getDstPort();
  32. string getMsg();
  33. };
  34. #endif /* PACKET_H_ */