From: Roland Häder Date: Mon, 22 May 2017 20:30:20 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ae9b51d7f7250c985975ea17703a780c54c6d49d;p=hub.git Continued: - imported BaseStream, InputStream - imported Assembler - imported (Base|Framework)Feature - imported Scrypt - imported DecoderFactory, ChunkHandlerFactory, HandleableChunks - imported BaseDecoder, Decodeable - imported BaseDecorator - added namespaces to configuration entries - updated core framework Signed-off-by: Roland Häder --- diff --git a/application/hub/classes/class_BaseHubSystem.php b/application/hub/classes/class_BaseHubSystem.php index 47f4c6f80..76e8b27aa 100644 --- a/application/hub/classes/class_BaseHubSystem.php +++ b/application/hub/classes/class_BaseHubSystem.php @@ -9,6 +9,7 @@ use Hub\Information\ShareableInfo; 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; diff --git a/application/hub/classes/decoder/class_ b/application/hub/classes/decoder/class_ index a9d980b8b..00d19f96f 100644 --- a/application/hub/classes/decoder/class_ +++ b/application/hub/classes/decoder/class_ @@ -1,4 +1,11 @@ +} diff --git a/application/hub/classes/decoder/package/class_PackageDecoder.php b/application/hub/classes/decoder/package/class_PackageDecoder.php index 3079a1a75..a5b689e66 100644 --- a/application/hub/classes/decoder/package/class_PackageDecoder.php +++ b/application/hub/classes/decoder/package/class_PackageDecoder.php @@ -1,10 +1,13 @@ setConfigEntry('node_default_mode', 'regular'); $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'); @@ -688,7 +688,7 @@ $cfg->setConfigEntry('task_dht_publication_max_runs', 0); $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'); @@ -809,10 +809,10 @@ $cfg->setConfigEntry('package_assembler_class', 'Hub\Network\Package\Assembler\P $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); @@ -824,7 +824,7 @@ $cfg->setConfigEntry('socket_timeout_microseconds', 0); $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 diff --git a/core b/core index 7c1f6da0b..eb04c4ff1 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 7c1f6da0bb508c369410ff7fed93395bd9a9e65a +Subproject commit eb04c4ff13087f8e0ca96168e3d718761bedabdb