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);
|
||||
|
||||
@@ -85,7 +85,7 @@ public:
|
||||
CONNECTU(screen, tileEvent, this, tileEvent)
|
||||
CONNECTU(screen, keyPressed, this, keyEvent)
|
||||
CONNECTU(&daemon_, menuRequest, this, menuRequest)
|
||||
start(50);
|
||||
start(25);
|
||||
}
|
||||
PIScreenTile * menuTile() {
|
||||
TileList * ret = new TileList();
|
||||
@@ -209,7 +209,7 @@ public:
|
||||
screen->unlock();
|
||||
}
|
||||
void tick(void* data_, int delimiter) {
|
||||
if (tpeerdiag->visible || tinfo->visible)
|
||||
if (tpeerdiag->visible || tpeer->visible)
|
||||
updatePeerInfo();
|
||||
}
|
||||
EVENT_HANDLER(void, menuRequest) {
|
||||
|
||||
Reference in New Issue
Block a user