PICloud connect/disconnect
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user