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