MCPcopy Create free account
hub / github.com/aria2/aria2 / checkSocketRecvBuffer

Method checkSocketRecvBuffer

src/AbstractCommand.cc:930–939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

928}
929
930void AbstractCommand::checkSocketRecvBuffer()
931{
932 if (socketRecvBuffer_->bufferEmpty() &&
933 socket_->getRecvBufferedLength() == 0) {
934 return;
935 }
936
937 setStatus(Command::STATUS_ONESHOT_REALTIME);
938 e_->setNoWait(true);
939}
940
941void AbstractCommand::addCommandSelf()
942{

Callers

nothing calls this directly

Calls 3

bufferEmptyMethod · 0.80
setNoWaitMethod · 0.80
getRecvBufferedLengthMethod · 0.45

Tested by

no test coverage detected