MCPcopy Create free account
hub / github.com/LUX-Core/lux / PumpMessages2

Method PumpMessages2

src/cryptopp/network.cpp:144–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144size_t NonblockingSource::PumpMessages2(unsigned int &messageCount, bool blocking)
145{
146 if (messageCount == 0)
147 return 0;
148
149 messageCount = 0;
150
151 lword byteCount;
152 do {
153 byteCount = LWORD_MAX;
154 RETURN_IF_NONZERO(Pump2(byteCount, blocking));
155 } while(byteCount == LWORD_MAX);
156
157 if (!m_messageEndSent && SourceExhausted())
158 {
159 RETURN_IF_NONZERO(AttachedTransformation()->Put2(NULL, 0, GetAutoSignalPropagation(), true));
160 m_messageEndSent = true;
161 messageCount = 1;
162 }
163 return 0;
164}
165
166lword NonblockingSink::TimedFlush(unsigned long maxTime, size_t targetSize)
167{

Callers

nothing calls this directly

Calls 5

Pump2Function · 0.85
SourceExhaustedFunction · 0.85
AttachedTransformationFunction · 0.85
GetAutoSignalPropagationFunction · 0.70
Put2Method · 0.45

Tested by

no test coverage detected