2013-12-09 22:22:05 +01:00
|
|
|
#ifndef TEST_CLASS_H
|
|
|
|
#define TEST_CLASS_H
|
|
|
|
|
|
|
|
#include "RecieverObject.h"
|
|
|
|
#include "../../Misc/Utilities.h"
|
|
|
|
#include "../NetworkDependencies/OysterByte.h"
|
|
|
|
#include "../NetworkDependencies/PostBox.h"
|
2013-12-10 08:32:08 +01:00
|
|
|
#include "../NetworkAPI/NetworkClient.h"
|
|
|
|
#include "../NetworkAPI/NetworkServer.h"
|
2013-12-09 22:22:05 +01:00
|
|
|
#include "../NetworkDependencies/Translator.h"
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class Test : public RecieverObject
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Test();
|
|
|
|
~Test();
|
|
|
|
|
|
|
|
void mainLoop();
|
|
|
|
|
|
|
|
virtual void ProcFunc(Utility::DynamicMemory::SmartPointer<Oyster::Network::OysterByte> msg);
|
|
|
|
void PrintOutMessage(Oyster::Network::Protocols::ProtocolSet* set);
|
|
|
|
|
|
|
|
private:
|
2013-12-10 08:32:08 +01:00
|
|
|
std::vector<Oyster::Network::NetworkClient*> clients;
|
2013-12-09 22:22:05 +01:00
|
|
|
Oyster::Network::IPostBox<Utility::DynamicMemory::SmartPointer<Oyster::Network::OysterByte>> *recvPostBox;
|
|
|
|
|
|
|
|
Oyster::Network::Translator t;
|
|
|
|
Oyster::Network::Protocols::ProtocolPlayerPos test;
|
2013-12-10 08:32:08 +01:00
|
|
|
Utility::DynamicMemory::SmartPointer<Oyster::Network::OysterByte> sendBuffer;
|
|
|
|
Utility::DynamicMemory::SmartPointer<Oyster::Network::OysterByte> recvBuffer;
|
2013-12-09 22:22:05 +01:00
|
|
|
|
2013-12-10 08:32:08 +01:00
|
|
|
Oyster::Network::Server::NetworkServer server;
|
2013-12-09 22:22:05 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|