that doesn't work because it won't set continueProcessing to false... which I need later to return to the caller.

How about...

    if (continueProcessing && (continueProcessing = ReceivedPacketProcessor::process())) {