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,21 @@
#ifndef DISPATCHERCLIENT_H
#define DISPATCHERCLIENT_H
#include "piethernet.h"
class DispatcherClient: public PIObject {
PIOBJECT(DispatcherClient)
public:
DispatcherClient(PIEthernet * eth_);
~DispatcherClient();
EVENT_HANDLER2(void, readed, uchar * , data, int, size);
EVENT_HANDLER1(void, disconnected, bool, withError);
EVENT1(disconnectEvent, DispatcherClient *, client)
private:
PIEthernet * eth;
};
#endif // DISPATCHERCLIENT_H