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

Method SetChan

p2pserver/link/link.go:71–73  ·  view source on GitHub ↗

set message channel for link layer

(msgchan chan *types.MsgPayload)

Source from the content-addressed store, hash-verified

69
70//set message channel for link layer
71func (this *Link) SetChan(msgchan chan *types.MsgPayload) {
72 this.recvChan = msgchan
73}
74
75//get address
76func (this *Link) GetAddr() string {

Callers 3

TestNewLinkFunction · 0.80
TestUnpackBufNodeFunction · 0.80
AttachChanMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestNewLinkFunction · 0.64
TestUnpackBufNodeFunction · 0.64