git-svn-id: svn://db.shs.com.ru/pip@781 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -54,7 +54,7 @@ void PIStreamPacker::send(const PIByteArray & data) {
|
||||
PIByteArray cd;
|
||||
if (crypt_frag) {
|
||||
int fcnt = (data.size_s() - 1) / crypt_frag_size + 1, fst = 0;
|
||||
piCout << "crypt_frag send" << fcnt << "frags";
|
||||
//piCout << "crypt_frag send" << fcnt << "frags";
|
||||
PIByteArray frag;
|
||||
for (int i = 0; i < fcnt; ++i) {
|
||||
if (i == fcnt - 1) frag = PIByteArray(data.data(fst), data.size_s() - fst);
|
||||
@@ -145,7 +145,7 @@ void PIStreamPacker::received(const PIByteArray & data) {
|
||||
PIByteArray frag;
|
||||
packet >> frag;
|
||||
cd.append(decryptData(frag));
|
||||
piCout << "crypt_frag receive add frag" << frag.size_s();
|
||||
//piCout << "crypt_frag receive add frag" << frag.size_s();
|
||||
}
|
||||
} else {
|
||||
cd = decryptData(packet);
|
||||
|
||||
Reference in New Issue
Block a user