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

Method GetNeighborAddrs

p2pserver/net/netserver/netserver.go:190–192  ·  view source on GitHub ↗

GetNeighborAddrs return all the nbr peer`s addr

()

Source from the content-addressed store, hash-verified

188
189//GetNeighborAddrs return all the nbr peer`s addr
190func (this *NetServer) GetNeighborAddrs() []common.PeerAddr {
191 return this.Np.GetNeighborAddrs()
192}
193
194//GetConnectionCnt return the total number of valid connections
195func (this *NetServer) GetConnectionCnt() uint32 {

Callers 1

TestNetServerNbrPeerFunction · 0.95

Calls 1

GetNeighborAddrsMethod · 0.65

Tested by 1

TestNetServerNbrPeerFunction · 0.76