use Hub\Listener\BaseListener;
use Hub\Listener\Listenable;
use Hub\Network\Deliver\Deliverable;
+use Hub\Network\Package\Assembler\Assembler;
use Hub\Network\Package\Fragment\Fragmentable;
use Hub\Network\Receive\Receivable;
use Hub\Pool\Poolable;
<?php
+// Own namespace
+namespace Hub\Decoder\;
+
+// Import application-specific stuff
+use Hub\Decoder\BaseDecoder;
+use Hub\Decoder\Decodeable;
+
/**
* A ??? decoder class
*
// Call parent constructor
parent::__construct($className);
}
-}
-// [EOF]
-?>
+}
<?php
// Own namespace
-namespace Hub\Decoder;
+namespace Hub\Network\Decoder\Package;
// Import application-specific stuff
+use Hub\Decoder\BaseDecoder;
+use Hub\Decoder\Decodeable;
use Hub\Factory\Network\NetworkPackageFactory;
use Hub\Handler\Network\RawData\Chunks\ChunkHandler;
+use Hub\Handler\Network\RawData\Chunks\HandleableChunks;
use Hub\Network\Package\NetworkPackage;
// Import framework stuff
namespace Hub\Factory\Decoder;
// Import application-specific stuff
+use Hub\Factory\Handler\Chunk\ChunkHandlerFactory;
use Hub\Handler\Network\RawData\Chunks\ChunkHandler;
// Import framework stuff
<?php
+// Own namespace
+namespace Hub\Feature\CoinReward;
+
+// Import framework stuff
+use CoreFramework\Feature\BaseFeature;
+use CoreFramework\Feature\Feature;
+use CoreFramework\Feature\FrameworkFeature;
+
+// Import other libraries
+use DomBlack\Scrypt\Scrypt;
+
/**
* A HubcoinReward Feature class
*
use CoreFramework\Compressor\Compressor;
use CoreFramework\Factory\ObjectFactory;
use CoreFramework\Factory\Registry\Socket\SocketRegistryFactory;
+use CoreFramework\Feature\FrameworkFeature;
use CoreFramework\Registry\Registry;
use CoreFramework\Registry\Registerable;
use CoreFramework\Socket\InvalidSocketException;
<?php
// Own namespace
-namespace Hub\Stream\Input\RawData;
+namespace Hub\Stream\Network\Input\RawData;
-// Import hub-specific stuff
+// Import application-specific stuff
use Hub\Generic\BaseHubSystem;
+// Import framework stuff
+use CoreFramework\Stream\BaseStream;
+use CoreFramework\Stream\Input\InputStream;
+
/**
* A class for handling incoming (encoded) raw data with start and end markers.
* The "stream" is being verified by its length (if modulo 4 of it is always
<?php
// Own namespace
-namespace Hub\Stream\Output\RawData;
+namespace Hub\Stream\Network\Output\RawData;
// Import application-specific stuff
use Hub\Handler\Network\RawData\BaseRawDataHandler;
+// Import framework stuff
+use CoreFramework\Stream\BaseStream;
+
/**
* A RawDataOutputStream class
*
// Own namespace
namespace Hub\Node\Task\Decoder;
+// Import application-specific stuff
+use Hub\Factory\Decoder\DecoderFactory;
+
// Import framework stuff
use CoreFramework\Task\BaseTask;
use CoreFramework\Task\Taskable;
use Hub\Visitor\Pool\PoolVisitor;
// Import framework stuff
+use CoreFramework\Generic\BaseDecorator;
use CoreFramework\Visitor\BaseVisitor;
/**
$cfg->setConfigEntry('enable_feature_hubcoin_reward', 'Y');
// CFG: FEATURE-HUBCOIN-REWARD-CLASS
-$cfg->setConfigEntry('feature_hubcoin_reward_class', 'HubcoinRewardFeature');
+$cfg->setConfigEntry('feature_hubcoin_reward_class', 'Hub\Feature\CoinReward\HubcoinRewardFeature');
// CFG: TEMPLATE-ENGINE
$cfg->setConfigEntry('tpl_engine', 'ConsoleOutput');
$cfg->setConfigEntry('task_pool_iterator_class', 'TaskPoolIterator');
// CFG: MONITOR-POOL-ITERATOR-CLASS
-$cfg->setConfigEntry('monitor_pool_iterator_class', 'MonitorPoolIterator');
+$cfg->setConfigEntry('monitor_pool_iterator_class', 'Hub\Iterator\Pool\Monitor\MonitorPoolIterator');
// CFG: QUERY-ITERATOR-CLASS
$cfg->setConfigEntry('query_iterator_class', 'CoreFramework\Iterator\DefaultIterator');
$cfg->setConfigEntry('package_chunk_size', 256*8);
// CFG: NODE-RAW-DATA-OUTPUT-STREAM-CLASS
-$cfg->setConfigEntry('node_raw_data_output_stream_class', 'RawDataOutputStream');
+$cfg->setConfigEntry('node_raw_data_output_stream_class', 'Hub\Stream\Network\Output\RawData\RawDataOutputStream');
// CFG: NODE-RAW-DATA-INPUT-STREAM-CLASS
-$cfg->setConfigEntry('node_raw_data_input_stream_class', 'RawDataInputStream');
+$cfg->setConfigEntry('node_raw_data_input_stream_class', 'Hub\Stream\Network\Input\RawData\RawDataInputStream');
// CFG: SOCKET-TIMEOUT-SECONDS
$cfg->setConfigEntry('socket_timeout_seconds', 3);
$cfg->setConfigEntry('chunk_handler_class', 'Hub\Handler\Network\RawData\Chunks\ChunkHandler');
// CFG: PACKAGE-DECODER-CLASS
-$cfg->setConfigEntry('package_decoder_class', 'PackageDecoder');
+$cfg->setConfigEntry('package_decoder_class', 'Hub\Network\Decoder\Package\PackageDecoder');
// CFG: PACKAGE-RECIPIENT-MAX-COUNT
// @TODO This is very static, rewrite it to more flexible
-Subproject commit 7c1f6da0bb508c369410ff7fed93395bd9a9e65a
+Subproject commit eb04c4ff13087f8e0ca96168e3d718761bedabdb