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

Function ConstructMessage

protocol/protocol.go:82–86  ·  view source on GitHub ↗
(message Message, header *Header, mess interface{}, isPass bool)

Source from the content-addressed store, hash-verified

80}
81
82func ConstructMessage(message Message, header *Header, mess interface{}, isPass bool) {
83 message.ConstructData(header, mess, isPass)
84 message.ConstructHeader()
85 message.ConstructSuffix()
86}
87
88func DestructMessage(message Message) (*Header, interface{}, error) {
89 message.DeconstructHeader()

Callers 15

SendFileStatMethod · 0.92
CheckFileStatMethod · 0.92
UploadMethod · 0.92
Ask4DownloadMethod · 0.92
NormalActiveFunction · 0.92
NormalPassiveFunction · 0.92
SoReusePassiveFunction · 0.92
normalPassiveReconnFunction · 0.92
soReusePassiveReconnFunction · 0.92
normalReconnActiveReconnFunction · 0.92
broadcastOfflineMessFunction · 0.92
broadcastReonlineMessFunction · 0.92

Calls 3

ConstructDataMethod · 0.65
ConstructHeaderMethod · 0.65
ConstructSuffixMethod · 0.65

Tested by

no test coverage detected