PICloud connect/disconnect
This commit is contained in:
@@ -8,14 +8,17 @@
|
||||
class DispatcherClient: public PIObject {
|
||||
PIOBJECT(DispatcherClient)
|
||||
public:
|
||||
DispatcherClient(PIEthernet * eth_);
|
||||
void start();
|
||||
DispatcherClient(PIEthernet * eth_, int id);
|
||||
~DispatcherClient();
|
||||
void start();
|
||||
void close();
|
||||
void sendConnected();
|
||||
void sendData(const PIByteArray & data);
|
||||
PIString address();
|
||||
uint clientId() const {return client_id;}
|
||||
EVENT1(disconnectEvent, DispatcherClient *, client)
|
||||
EVENT2(registerServer, PIString, sname, DispatcherClient *, client)
|
||||
EVENT2(registerClient, PIString, sname, DispatcherClient *, client)
|
||||
PIString address();
|
||||
void close();
|
||||
EVENT1(dataReaded, PIByteArray, ba)
|
||||
|
||||
private:
|
||||
@@ -26,6 +29,7 @@ private:
|
||||
PITimer disconnect_tm;
|
||||
bool authorised;
|
||||
PICloud::TCP tcp;
|
||||
uint client_id;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user