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.
|
/*
|
|
* P2PServer.h
|
|
*
|
|
* Created on: 17.01.2017
|
|
* Author: Piotr Dergun
|
|
*/
|
|
|
|
#ifndef P2PSERVER_H_
|
|
#define P2PSERVER_H_
|
|
|
|
#include "common.h"
|
|
#include "Node.h"
|
|
#include "Simulation.h"
|
|
|
|
class P2PServer : public Node
|
|
{
|
|
string seedIp, peerIp;
|
|
int seedPort, peerPort;
|
|
Simulation *sim;
|
|
|
|
public:
|
|
P2PServer();
|
|
P2PServer(string hostname, string ip, string mask);
|
|
virtual ~P2PServer();
|
|
|
|
virtual void onRecv();
|
|
const Simulation* getSim();
|
|
void setSim(Simulation* sim);
|
|
};
|
|
|
|
#endif /* P2PSERVER_H_ */
|