picloud start develop

This commit is contained in:
2020-06-15 11:09:34 +03:00
parent f662a92380
commit 3f7f67e198
7 changed files with 133 additions and 7 deletions

View File

@@ -0,0 +1,20 @@
#ifndef DISPATCHERSERVER_H
#define DISPATCHERSERVER_H
#include "dispatcherclient.h"
class DispatcherServer: public PIObject {
PIOBJECT(DispatcherServer)
public:
DispatcherServer(PIEthernet::Address addr);
~DispatcherServer();
EVENT_HANDLER1(void, newConnection, PIEthernet * , cl);
EVENT_HANDLER1(void, disconnectClient, DispatcherClient *, client);
private:
PIEthernet * eth;
PIVector<DispatcherClient*> clients;
};
#endif // DISPATCHERSERVER_H