git-svn-id: svn://db.shs.com.ru/pip@462 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -18,7 +18,7 @@ PIBaseTransfer::PIBaseTransfer(): crc(standardCRC_16()), diag(false) {
|
||||
//CONNECTU(&diag, qualityChanged, this, diagChanged);
|
||||
diag.setName("PIBaseTransfer");
|
||||
diag.start(50);
|
||||
packets_count = 32;
|
||||
packets_count = 100;
|
||||
setPacketSize(4096);
|
||||
randomize();
|
||||
}
|
||||
@@ -437,7 +437,6 @@ void PIBaseTransfer::sendReply(PacketType reply) {
|
||||
|
||||
|
||||
bool PIBaseTransfer::getStartRequest() {
|
||||
PITimeMeasurer tm;
|
||||
mutex_header.lock();
|
||||
header.type = pt_Start;
|
||||
header.id = 0;
|
||||
@@ -449,6 +448,7 @@ bool PIBaseTransfer::getStartRequest() {
|
||||
mutex_header.unlock();
|
||||
ba << st;
|
||||
state_string = "send request";
|
||||
PITimeMeasurer tm;
|
||||
while (tm.elapsed_s() < timeout_) {
|
||||
diag.sended(ba.size_s());
|
||||
sendRequest(ba);
|
||||
|
||||
Reference in New Issue
Block a user