picloud start develop
This commit is contained in:
21
utils/cloud_dispatcher/dispatcherclient.h
Normal file
21
utils/cloud_dispatcher/dispatcherclient.h
Normal 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
|
||||
Reference in New Issue
Block a user