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.
|
/*
|
|
* NATRouter.h
|
|
*
|
|
* Created on: 11-01-2017
|
|
* Author: Piotr Dergun
|
|
*/
|
|
|
|
#ifndef NATROUTER_H_
|
|
#define NATROUTER_H_
|
|
|
|
#include "common.h"
|
|
#include "Node.h"
|
|
#include "NATItem.h"
|
|
/*
|
|
typedef struct
|
|
{
|
|
string ip; // IP wewn. do którego ma trafić odpowiedź / z którego przyszło żądanie
|
|
int port; // port komputera wewn. do którego ma trafić odpowiedź
|
|
int timeout; // czas (w sekundach) zajętości portu (0 - port wolny)
|
|
} NATItem;
|
|
*/
|
|
class NATRouter : public Node
|
|
{
|
|
NATItem *natTable;
|
|
public:
|
|
NATRouter();
|
|
~NATRouter();
|
|
};
|
|
#endif /* NATROUTER_H_ */
|