PICloud connect/disconnect

This commit is contained in:
2021-04-06 15:24:58 +03:00
parent fcd4e5aa71
commit be0db84147
15 changed files with 217 additions and 38 deletions

View File

@@ -23,11 +23,10 @@
#ifndef PICLOUDSERVER_H
#define PICLOUDSERVER_H
#include "picloudtcp.h"
#include "piethernet.h"
#include "picloudbase.h"
class PIP_CLOUD_EXPORT PICloudServer : public PIIODevice
class PIP_CLOUD_EXPORT PICloudServer : public PIIODevice, private PICloudBase
{
PIIODEVICE(PICloudServer)
public:
@@ -45,6 +44,8 @@ public:
PICloudServer * server;
};
void setServerName(const PIString & server_name);
EVENT1(newConnection, PICloudServer::Client * , client)
protected:
@@ -56,9 +57,7 @@ protected:
private:
EVENT_HANDLER2(void, readed, uchar * , data, int, size);
PIEthernet eth;
PIVector<Client> clients;
PICloud::TCP tcp;
};
#endif // PICLOUDSERVER_H