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

Method AddNbrNode

p2pserver/net/protocol/server.go:63–63  ·  view source on GitHub ↗
(*peer.Peer)

Source from the content-addressed store, hash-verified

61 GetOutConnectingListLen() (count uint)
62 RemovePeerAddress(addr string)
63 AddNbrNode(*peer.Peer)
64 DelNbrNode(id uint64) (*peer.Peer, bool)
65 NodeEstablished(uint64) bool
66 Xmit(msg types.Message)

Callers 15

TestAddNbrNodeFunction · 0.65
AddNbrNodeMethod · 0.65
TestVerAckHandleFunction · 0.65
TestAddrReqHandleFunction · 0.65
TestAddrReqHandle_maskokFunction · 0.65
TestHeadersReqHandleFunction · 0.65
TestPingHandleFunction · 0.65
TestPongHandleFunction · 0.65
TestBlkHeaderHandleFunction · 0.65
TestBlockHandleFunction · 0.65
TestDataReqHandleFunction · 0.65

Implementers 1

NetServerp2pserver/net/netserver/netserver.go

Calls

no outgoing calls

Tested by 13

TestAddNbrNodeFunction · 0.52
TestVerAckHandleFunction · 0.52
TestAddrReqHandleFunction · 0.52
TestAddrReqHandle_maskokFunction · 0.52
TestHeadersReqHandleFunction · 0.52
TestPingHandleFunction · 0.52
TestPongHandleFunction · 0.52
TestBlkHeaderHandleFunction · 0.52
TestBlockHandleFunction · 0.52
TestDataReqHandleFunction · 0.52
TestInvHandleFunction · 0.52