PICloud change protocol > server_uuid

This commit is contained in:
2021-04-12 11:35:34 +03:00
parent f75ce1e8e0
commit dbd2267a8c
12 changed files with 56 additions and 33 deletions

View File

@@ -38,6 +38,7 @@ class PIP_CLOUD_EXPORT TCP {
public:
enum Version {
Version_1 = 1,
Version_2 = 2,
};
enum Role {
@@ -66,7 +67,7 @@ public:
PIPair<PICloud::TCP::Type, PICloud::TCP::Role> parseHeader(PIByteArray & ba);
PIByteArray parseData(PIByteArray & ba);
PIPair<uint, PIByteArray> parseDataServer(PIByteArray & ba);
PIString parseConnect_d(PIByteArray & ba);
PIByteArray parseConnect_d(PIByteArray & ba);
uint parseConnect(PIByteArray & ba);
uint parseDisconnect(PIByteArray & ba);
@@ -79,7 +80,7 @@ private:
};
Header header;
PIString sname;
PIByteArray suuid;
PIStreamPacker * streampacker;
};