*
* @return $unhandledChunks Whether unhandled chunks are left
*/
- public function ifUnhandledChunksAvailable () {
+ public function ifUnhandledChunksWithFinalAvailable () {
// Simply check if the stacker is not empty
$unhandledChunks = $this->getStackerInstance()->isStackEmpty(self::STACKER_NAME_CHUNKS_WITH_FINAL_EOP) === false;
*
* @return void
*/
- public function handleAvailableChunks () {
+ public function handleAvailableChunksWithFinal () {
// First check if there are undhandled chunks available
- assert($this->ifUnhandledChunksAvailable());
+ assert($this->ifUnhandledChunksWithFinalAvailable());
// Get an entry from the stacker
$chunk = $this->getStackerInstance()->popNamed(self::STACKER_NAME_CHUNKS_WITH_FINAL_EOP);
// Don't process this chunk
return;
} // END - if
+
+ /*
+ * It is now known that (as long as the hash algorithm has no
+ * collisions) the content is the same as the sender sends it to this
+ * peer.
+ */
die('chunk=' . $chunk . chr(10));
}
}