*
* @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]