picloud data send and receive, not tested
This commit is contained in:
@@ -37,11 +37,11 @@ public:
|
||||
|
||||
void setServerName(const PIString & server_name);
|
||||
void setKeepConnection(bool on);
|
||||
bool isConnected() const {return is_connected;}
|
||||
|
||||
protected:
|
||||
bool openDevice();
|
||||
bool closeDevice();
|
||||
bool isConnected() const {return is_connected;}
|
||||
int readDevice(void * read_to, int max_size);
|
||||
int writeDevice(const void * data, int size);
|
||||
|
||||
|
||||
@@ -40,6 +40,7 @@ public:
|
||||
friend class PICloudServer;
|
||||
public:
|
||||
Client(PICloudServer * srv = nullptr, uint id = 0);
|
||||
virtual ~Client();
|
||||
protected:
|
||||
bool openDevice();
|
||||
bool closeDevice();
|
||||
@@ -53,6 +54,7 @@ public:
|
||||
PIByteArray buff;
|
||||
PIMutex mutex_buff;
|
||||
PIConditionVariable cond_buff;
|
||||
std::atomic_bool is_connected;
|
||||
};
|
||||
|
||||
void setServerName(const PIString & server_name);
|
||||
|
||||
Reference in New Issue
Block a user