BodyPipe.cc
Go to the documentation of this file.
81 debugs(call.debugSection, call.debugLevel, producer << " no longer producing for " << aPipe->status());
97 debugs(call.debugSection, call.debugLevel, consumer << " no longer consuming from " << aPipe->status());
459 outputBuffer.appendf(" %" PRId64 "+%" PRId64, static_cast<int64_t>(theBuf.contentSize()), static_cast<int64_t>(theBuf.spaceSize()));
RefCount< AsyncCallT< Dialer > > asyncCall(int aDebugSection, int aDebugLevel, const char *aName, const Dialer &aDialer)
Definition: AsyncCall.h:156
Definition: AsyncCall.h:41
Definition: AsyncJob.h:32
Definition: BodyPipe.cc:61
UnaryMemFunT< BodyConsumer, BodyPipe::Pointer > Parent
Definition: BodyPipe.cc:63
BodyConsumerDialer(const BodyConsumer::Pointer &aConsumer, Parent::Method aHandler, BodyPipe::Pointer bp)
Definition: BodyPipe.cc:65
Definition: BodyPipe.h:43
virtual void noteBodyProductionEnded(RefCount< BodyPipe > bp)=0
void stopConsumingFrom(RefCount< BodyPipe > &)
Definition: BodyPipe.cc:118
virtual void noteMoreBodyDataAvailable(RefCount< BodyPipe > bp)=0
virtual void noteBodyProducerAborted(RefCount< BodyPipe > bp)=0
Definition: BodyPipe.h:62
BodyPipeCheckout & operator=(const BodyPipeCheckout &)
Definition: BodyPipe.cc:516
Definition: BodyPipe.h:91
bool stillConsuming(const Consumer::Pointer &consumer) const
Definition: BodyPipe.h:132
void scheduleBodyDataNotification()
Definition: BodyPipe.cc:414
bool setConsumerIfNotLate(const Consumer::Pointer &aConsumer)
Definition: BodyPipe.cc:228
void expectProductionEndAfter(uint64_t extraSize)
sets or checks body size
Definition: BodyPipe.cc:184
bool stillProducing(const Producer::Pointer &producer) const
Definition: BodyPipe.h:121
void startAutoConsumptionIfNeeded()
Definition: BodyPipe.cc:327
void enableAutoConsumption()
start or continue consuming when producing without consumer
Definition: BodyPipe.cc:316
Definition: BodyPipe.cc:46
UnaryMemFunT< BodyProducer, BodyPipe::Pointer > Parent
Definition: BodyPipe.cc:48
BodyProducerDialer(const BodyProducer::Pointer &aProducer, Parent::Method aHandler, BodyPipe::Pointer bp)
Definition: BodyPipe.cc:50
Definition: BodyPipe.h:23
virtual void noteMoreBodySpaceAvailable(RefCount< BodyPipe > bp)=0
virtual void noteBodyConsumerAborted(RefCount< BodyPipe > bp)=0
void stopProducingFor(RefCount< BodyPipe > &, bool atEof)
Definition: BodyPipe.cc:107
Definition: BodyPipe.cc:17
CBDATA_CHILD(BodySink)
void noteBodyProductionEnded(BodyPipe::Pointer) override
Definition: BodyPipe.cc:28
void noteMoreBodyDataAvailable(BodyPipe::Pointer bp) override
Definition: BodyPipe.cc:24
void noteBodyProducerAborted(BodyPipe::Pointer) override
Definition: BodyPipe.cc:31
virtual bool canDial(AsyncCall &call)
Definition: AsyncJobCalls.h:160
Definition: MemBuf.h:24
void consume(mb_size_t sz)
removes sz bytes and "packs" by moving content left
Definition: MemBuf.cc:168
void appendf(const char *fmt,...) PRINTF_FORMAT_ARG2
Append operation with printf-style arguments.
Definition: Packable.h:61
Definition: AsyncJobCalls.h:108
BodyPipe::Pointer arg1
Definition: AsyncJobCalls.h:119
void(Job::* Method)(BodyPipe::Pointer)
Definition: AsyncJobCalls.h:110