reqNbrList ask the peer for its neighbor list
(p *peer.Peer)
| 485 | |
| 486 | //reqNbrList ask the peer for its neighbor list |
| 487 | func (this *P2PServer) reqNbrList(p *peer.Peer) { |
| 488 | msg := msgpack.NewAddrReq() |
| 489 | go this.Send(p, msg, false) |
| 490 | } |
| 491 | |
| 492 | //heartBeat send ping to nbr peers and check the timeout |
| 493 | func (this *P2PServer) heartBeatService() { |