21 lines
458 B
C++
21 lines
458 B
C++
#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
|