diff options
Diffstat (limited to 'peer.cpp')
-rw-r--r-- | peer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -49,10 +49,12 @@ int peerTest(int argc, char** argv) if (!remoteHost.empty()) pn.connect(remoteHost, remotePort); - while (true) + for (int i = 0; ; ++i) { usleep(100000); pn.process(); + if (!(i % 10)) + pn.pingAll(); } return 0; |