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

Method GetNeighborAddrs

p2pserver/p2pserver.go:147–149  ·  view source on GitHub ↗

GetNeighborAddrs return all nbr`s address

()

Source from the content-addressed store, hash-verified

145
146//GetNeighborAddrs return all nbr`s address
147func (this *P2PServer) GetNeighborAddrs() []common.PeerAddr {
148 return this.network.GetNeighborAddrs()
149}
150
151//Xmit called by other module to broadcast msg
152func (this *P2PServer) Xmit(message interface{}) error {

Callers

nothing calls this directly

Calls 1

GetNeighborAddrsMethod · 0.65

Tested by

no test coverage detected