MCPcopy
hub / github.com/ph4ntonn/Stowaway / DestructMessage

Function DestructMessage

protocol/protocol.go:88–93  ·  view source on GitHub ↗
(message Message)

Source from the content-addressed store, hash-verified

86}
87
88func DestructMessage(message Message) (*Header, interface{}, error) {
89 message.DeconstructHeader()
90 header, mess, err := message.DeconstructData()
91 message.DeconstructSuffix()
92 return header, mess, err
93}
94
95type Header struct {
96 Sender string // sender and accepter are both 10bytes

Callers 15

achieveUUIDFunction · 0.92
NormalActiveFunction · 0.92
NormalPassiveFunction · 0.92
SoReusePassiveFunction · 0.92
normalPassiveReconnFunction · 0.92
soReusePassiveReconnFunction · 0.92
normalReconnActiveReconnFunction · 0.92
startMethod · 0.92
normalListenMethod · 0.92
iptablesListenMethod · 0.92

Calls 3

DeconstructHeaderMethod · 0.65
DeconstructDataMethod · 0.65
DeconstructSuffixMethod · 0.65

Tested by

no test coverage detected