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

Method AttachChan

p2pserver/peer/peer.go:273–275  ·  view source on GitHub ↗

AttachChan set msg chan to sync link

(msgchan chan *types.MsgPayload)

Source from the content-addressed store, hash-verified

271
272//AttachChan set msg chan to sync link
273func (this *Peer) AttachChan(msgchan chan *types.MsgPayload) {
274 this.Link.SetChan(msgchan)
275}
276
277//Send transfer buffer by sync or cons link
278func (this *Peer) Send(msg types.Message) error {

Callers 2

ConnectMethod · 0.95
startNetAcceptMethod · 0.95

Calls 1

SetChanMethod · 0.80

Tested by

no test coverage detected