cloud test
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define DISPATCHERSERVER_H
|
||||
|
||||
#include "dispatcherclient.h"
|
||||
#include "cloudserver.h"
|
||||
|
||||
|
||||
class DispatcherServer: public PIObject {
|
||||
@@ -9,12 +10,17 @@ class DispatcherServer: public PIObject {
|
||||
public:
|
||||
DispatcherServer(PIEthernet::Address addr);
|
||||
~DispatcherServer();
|
||||
EVENT_HANDLER0(void, printStatus);
|
||||
|
||||
private:
|
||||
EVENT_HANDLER1(void, newConnection, PIEthernet * , cl);
|
||||
EVENT_HANDLER1(void, disconnectClient, DispatcherClient *, client);
|
||||
|
||||
private:
|
||||
PIEthernet * eth;
|
||||
PIEthernet eth;
|
||||
PIVector<DispatcherClient*> clients;
|
||||
PIMap<PIString, CloudServer *> c_servers;
|
||||
PITimer status_timer;
|
||||
PIMutex map_mutex;
|
||||
};
|
||||
|
||||
#endif // DISPATCHERSERVER_H
|
||||
|
||||
Reference in New Issue
Block a user