MCPcopy Create free account
hub / github.com/ReversecLabs/C3 / Send

Method Send

Src/ChannelLinter/MockDeviceBridge.cpp:93–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 }
92
93 void MockDeviceBridge::Send(ByteView blob)
94 {
95 auto sender = GetChunkSender(blob);
96 for (auto noProgressCounter = 0; noProgressCounter < 10; ++noProgressCounter)
97 {
98 if (sender.Send())
99 noProgressCounter = 0;
100
101 if (sender.IsDone())
102 return;
103 }
104
105 throw std::runtime_error("Cannot send data");
106 }
107
108 std::vector<FSecure::ByteVector> MockDeviceBridge::Receive(size_t minExpectedSize)
109 {

Callers 3

TestChannelOrderMethod · 0.45
TestOverlappedMethod · 0.45
TestSequentialMethod · 0.45

Calls 4

IsDoneMethod · 0.80
NextChunkMethod · 0.80
UpdateMethod · 0.80

Tested by 3

TestChannelOrderMethod · 0.36
TestOverlappedMethod · 0.36
TestSequentialMethod · 0.36