Browse Source

Node domyslnie tylko odbiera pakiety z kolejki (oszczednosc pamieci)

master
Piotr Dergun 7 years ago
parent
commit
5293c60e69
1 changed files with 0 additions and 9 deletions
  1. +0
    -9
      Node.cpp

+ 0
- 9
Node.cpp View File

@ -242,16 +242,7 @@ void Node::onRecv()
{ {
while(true) while(true)
{ {
// TESTOWO
Packet p = this->recv(); Packet p = this->recv();
if (p.getSrcPort() != 0)
{
stringstream s;
s << "onRecv() received \"" << p.getMsg() << "\" from " << p.getSrcIp() << ":" << p.getSrcPort();
this->print(s.str());
}
sleep(1);
} }
} }

Loading…
Cancel
Save