]> git.mxchange.org Git - hub.git/blobdiff - application/hub/interfaces/package/fragmenter/class_Fragmentable.php
Copyright notice updated, our first hub application introduced (which is incomplete)
[hub.git] / application / hub / interfaces / package / fragmenter / class_Fragmentable.php
index 2b72b3a05374d14f0257ff2da9d18237084892a9..e2336c4c37856b5c00d3b7569fc88fa0272c5749 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Hub Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Hub Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 interface Fragmentable extends FrameworkInterface {
+       /**
+        * This method does "implode" the given package data array into one long
+        * string, splits it into small chunks, adds a serial number and checksum
+        * to all chunks and prepends a final hashsum chunk.
+        *
+        * @param       $packageData                    Raw package data array
+        * @param       $connectionInstance             A helper instance for connections
+        * @return      void
+        */
+       function fragmentPackageArray (array $packageData, BaseconnectionInstance $connectionInstance);
+
+       /**
+        * This method gets the next chunk from the internal FIFO which should be
+        * sent to the given recipient.
+        *
+        * @param       $packageData    Raw package data array
+        * @return      $rawDataChunk   Raw package data chunk
+        */
+       function getNextRawDataChunk (array $packageData);
 }
 
 // [EOF]