ping send pkg to get pong msg from others
()
| 509 | |
| 510 | //ping send pkg to get pong msg from others |
| 511 | func (this *P2PServer) ping() { |
| 512 | peers := this.network.GetNeighbors() |
| 513 | this.pingTo(peers) |
| 514 | } |
| 515 | |
| 516 | //pings send pkgs to get pong msg from others |
| 517 | func (this *P2PServer) pingTo(peers []*peer.Peer) { |
no test coverage detected