This commit is contained in:
2020-08-27 19:40:11 +03:00
parent e1f2c90790
commit 234d4e73be
9 changed files with 101 additions and 20 deletions

View File

@@ -11,7 +11,10 @@ public:
~DispatcherClient();
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:
EVENT_HANDLER2(void, readed, uchar * , data, int, size);
@@ -19,6 +22,7 @@ private:
PIEthernet * eth;
PITimer disconnect_tm;
bool authorised;
};