MCPcopy Create free account
hub / github.com/DNAProject/DNA / reqNbrList

Method reqNbrList

p2pserver/p2pserver.go:487–490  ·  view source on GitHub ↗

reqNbrList ask the peer for its neighbor list

(p *peer.Peer)

Source from the content-addressed store, hash-verified

485
486//reqNbrList ask the peer for its neighbor list
487func (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
493func (this *P2PServer) heartBeatService() {

Callers 1

connectSeedsMethod · 0.95

Calls 1

SendMethod · 0.95

Tested by

no test coverage detected