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.

45 lines
528 B

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. /*
  2. * NATItem.cpp
  3. *
  4. * Created on: 10-01-2017
  5. * Author: Piotr Dergun
  6. */
  7. #include "NATItem.h"
  8. NATItem::NATItem()
  9. {
  10. this->ip = "0.0.0.0";
  11. this->port = 0;
  12. this->timeout = 0;
  13. }
  14. const string& NATItem::getIp() const
  15. {
  16. return ip;
  17. }
  18. void NATItem::setIp(const string& ip)
  19. {
  20. this->ip = ip;
  21. }
  22. int NATItem::getPort() const
  23. {
  24. return port;
  25. }
  26. void NATItem::setPort(int port)
  27. {
  28. this->port = port;
  29. }
  30. int NATItem::getTimeout() const
  31. {
  32. return timeout;
  33. }
  34. void NATItem::setTimeout(int timeout)
  35. {
  36. this->timeout = timeout;
  37. }