git-svn-id: svn://db.shs.com.ru/pip@413 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2017-04-19 16:27:39 +00:00
parent b3497c3eed
commit 6558910d3e
2 changed files with 3 additions and 4 deletions

View File

@@ -66,7 +66,7 @@ void PIBaseTransfer::received(PIByteArray data) {
diag.received(data.size(), false);
return;
} else diag.received(data.size(), true);
piCoutObj << "receive" << h.session_id << h.type << h.id;
//piCoutObj << "receive" << h.session_id << h.type << h.id;
switch (pt) {
case pt_Unknown: break;
case pt_Data:
@@ -162,6 +162,7 @@ void PIBaseTransfer::received(PIByteArray data) {
mutex_header.unlock();
finish_receive(false, true);
} else {
header.id = 0;
sendReply(pt_ReplySuccess);
mutex_header.unlock();
return;
@@ -423,7 +424,7 @@ void PIBaseTransfer::sendBreak(int session_id) {
void PIBaseTransfer::sendReply(PacketType reply) {
piCoutObj << "sendReply" << reply;
//piCoutObj << "sendReply" << reply;
header.type = reply;
PIByteArray ba;
ba << header;