mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Pinging.
This commit is contained in:
parent
3b9040b4a1
commit
2b13a04f49
4
peer.cpp
4
peer.cpp
@ -49,10 +49,12 @@ int peerTest(int argc, char** argv)
|
|||||||
if (!remoteHost.empty())
|
if (!remoteHost.empty())
|
||||||
pn.connect(remoteHost, remotePort);
|
pn.connect(remoteHost, remotePort);
|
||||||
|
|
||||||
while (true)
|
for (int i = 0; ; ++i)
|
||||||
{
|
{
|
||||||
usleep(100000);
|
usleep(100000);
|
||||||
pn.process();
|
pn.process();
|
||||||
|
if (!(i % 10))
|
||||||
|
pn.pingAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user