]> git.mxchange.org Git - hub.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Mon, 28 Sep 2020 05:14:35 +0000 (07:14 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 28 Sep 2020 05:14:35 +0000 (07:14 +0200)
- added missing imports

Signed-off-by: Roland Häder <roland@mxchange.org>
21 files changed:
application/hub/classes/database/frontend/class_BaseHubDatabaseWrapper.php
application/hub/classes/decoder/package/class_PackageDecoder.php
application/hub/classes/handler/class_BaseHubHandler.php
application/hub/classes/handler/package/class_NetworkPackageHandler.php
application/hub/classes/handler/raw_data/class_BaseRawDataHandler.php
application/hub/classes/helper/connection/class_BaseConnectionHelper.php
application/hub/classes/helper/dht/class_DhtBootstrapHelper.php
application/hub/classes/helper/dht/class_DhtPublishEntryHelper.php
application/hub/classes/helper/node/announcement/class_NodeAnnouncementHelper.php
application/hub/classes/helper/node/answer/announcement/class_NodeAnnouncementMessageAnswerHelper.php
application/hub/classes/helper/node/answer/dht/class_NodeDhtBootstrapMessageAnswerHelper.php
application/hub/classes/helper/node/answer/requests/class_NodeRequestNodeListMessageAnswerHelper.php
application/hub/classes/helper/node/connection/class_NodeSelfConnectHelper.php
application/hub/classes/helper/node/requests/class_NodeRequestNodeListHelper.php
application/hub/classes/listener/class_BaseListenerDecorator.php
application/hub/classes/listener/tcp/class_TcpListener.php
application/hub/classes/tasks/network/class_NetworkPackageReaderTask.php
application/hub/classes/tasks/network/class_NetworkPackageWriterTask.php
application/hub/classes/visitor/socket/class_HalfShutdownSocketVisitor.php
application/hub/classes/visitor/socket/class_ShutdownSocketVisitor.php
application/hub/interfaces/receiver/class_Receivable.php

index 2963ce47cd42bd5a9975994e019e5fce5974ede0..ab09bca9cbeac7c34b420f43d32601ecc22fbc3c 100644 (file)
@@ -12,6 +12,7 @@ use Org\Shipsimu\Hub\Pool\Poolable;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Database\Frontend\BaseDatabaseWrapper;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
 
 /**
  * A general hub database wrapper
index 5eddd4ed73f135c5656a552c87d3058cfb79d6c7..01f767f64e731ed8b04738f05b9b3deab37e7b16 100644 (file)
@@ -6,6 +6,7 @@ namespace Org\Shipsimu\Hub\Network\Decoder\Package;
 use Org\Shipsimu\Hub\Decoder\BaseDecoder;
 use Org\Shipsimu\Hub\Decoder\Decodeable;
 use Org\Shipsimu\Hub\Factory\Discovery\Package\PackageDiscoveryFactory;
+use Org\Shipsimu\Hub\Factory\Handler\Network\NetworkPackageHandlerFactory;
 use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
 use Org\Shipsimu\Hub\Handler\Network\RawData\Chunks\ChunkHandler;
 use Org\Shipsimu\Hub\Handler\Network\RawData\Chunks\HandleableChunks;
index 07ed8ab95f6af63fcbe6a8e98932dc950acd8dc0..aa464b1d29b97b8ac3406fbc7e1be04a8257a556 100644 (file)
@@ -12,6 +12,7 @@ use Org\Shipsimu\Hub\Locator\Node\LocateableNode;
 use Org\Shipsimu\Hub\Pool\Poolable;
 
 // Import framework stuff
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
 use Org\Mxchange\CoreFramework\Handler\BaseHandler;
 use Org\Mxchange\CoreFramework\Handler\Handleable;
 
index 32a52e256e37402e127648162d966e6e5b366d72..08d00692f944851433e73e92f7c0785311fba2fa 100644 (file)
@@ -1171,7 +1171,7 @@ class NetworkPackageHandler extends BaseHubHandler implements Deliverable, Recei
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE: errorCode=' . $packageInstance->getErrorCode() . '(' . StorableSocket::SOCKET_ERROR_UNHANDLED . ')');
                if (substr($packageInstance->getRawData(), -1, 1) == PackageFragmenter::CHUNK_SEPARATOR) {
                        // It is there and should be removed
-                       $packageInstance->getRawData() = substr($packageInstance->getRawData(), 0, -1);
+                       $packageInstance->setRawData(substr($packageInstance->getRawData(), 0, -1));
                } // END - if
 
                // This package is "handled" and can be pushed on the next stack
index 0ac476c8f9d9f9586c6a07b3d256e27db6a1e3f5..d025a7c2e39be83905f138aa4326006a698632fa 100644 (file)
@@ -12,7 +12,6 @@ use Org\Shipsimu\Hub\Network\Package\DeliverablePackage;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
-use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
 
 /**
  * A general Handler for raw data from sockets
index 5d4caf4695993824621af3be2232f3e1d9a712dd..46be16fc9e70dfa6babd96cdd3ea9ebe1d867d72 100644 (file)
@@ -5,6 +5,7 @@ namespace Org\Shipsimu\Hub\Helper\Connection;
 // Import application-specific stuff
 use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
 use Org\Shipsimu\Hub\Factory\Fragmenter\FragmenterFactory;
+use Org\Shipsimu\Hub\Factory\Handler\Network\NetworkPackageHandlerFactory;
 use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
 use Org\Shipsimu\Hub\Factory\State\Peer\PeerStateFactory;
 use Org\Shipsimu\Hub\Handler\Package\NetworkPackageHandler;
index 17f98319d1295fdfa7ae6723a9571c6b578f4c0f..d16ddfd1a31d08973c4150ae7b2bb70a36fdeb16 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Shipsimu\Hub\Helper\Dht\Bootstrap;
 
 // Import application-specific stuff
 use Org\Shipsimu\Hub\Dht\Distributable;
+use Org\Shipsimu\Hub\Factory\Handler\Network\NetworkPackageHandlerFactory;
 use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
 use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 use Org\Shipsimu\Hub\Handler\Package\NetworkPackageHandler;
index 0af95d9188c4cf08bfedc2cdc9c8d43b37578727..cc7dcbb5c2d7f89565490744c4dc2814b59a398a 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Shipsimu\Hub\Helper\Dht\Publish;
 
 // Import application-specific stuff
 use Org\Shipsimu\Hub\Dht\Distributable;
+use Org\Shipsimu\Hub\Factory\Handler\Network\NetworkPackageHandlerFactory;
 use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
 use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 use Org\Shipsimu\Hub\Handler\Package\NetworkPackageHandler;
index b3eca5b58e4fbfc7fac9ee888f57efa6aa7b0940..f9492ca265213678630180009338477a0cb9a206 100644 (file)
@@ -3,6 +3,7 @@
 namespace Org\Shipsimu\Hub\Node\Helper\Announcement;
 
 // Import application-specific stuff
+use Org\Shipsimu\Hub\Factory\Handler\Network\NetworkPackageHandlerFactory;
 use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
 use Org\Shipsimu\Hub\Handler\Package\NetworkPackageHandler;
 use Org\Shipsimu\Hub\Helper\Node\BaseNodeHelper;
index fb8f34ef1c70c2f1681c4afb2f0bed6adc695dc1..52efa0db1428c01d91fa13d49fbacee2ebd3da9e 100644 (file)
@@ -3,6 +3,7 @@
 namespace Org\Shipsimu\Hub\Node\Helper\Answer\Announcement;
 
 // Import application-specific stuff
+use Org\Shipsimu\Hub\Factory\Handler\Network\NetworkPackageHandlerFactory;
 use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
 use Org\Shipsimu\Hub\Helper\Node\HelpableNode;
 use Org\Shipsimu\Hub\Node\Node;
index a9022252ffa43b3ee8fbacef876207cf6d0b15d5..c596fc77cf22a31f5c4e1c654144f50b73693055 100644 (file)
@@ -3,6 +3,7 @@
 namespace Org\Shipsimu\Hub\Node\Helper\Answer\Dht\Bootstrap;
 
 // Import application-specific stuff
+use Org\Shipsimu\Hub\Factory\Handler\Network\NetworkPackageHandlerFactory;
 use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
 use Org\Shipsimu\Hub\Helper\Node\HelpableNode;
 use Org\Shipsimu\Hub\Node\Node;
index e0bc1890b5b08cac8fb4121646d360a1c1cf30b8..09f675a53db1354d5622005ac306c7488e5b528e 100644 (file)
@@ -3,6 +3,7 @@
 namespace Org\Shipsimu\Hub\Node\Helper\Answer\Request\NodeList;
 
 // Import application-specific stuff
+use Org\Shipsimu\Hub\Factory\Handler\Network\NetworkPackageHandlerFactory;
 use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
 use Org\Shipsimu\Hub\Helper\Node\HelpableNode;
 use Org\Shipsimu\Hub\Node\Node;
index 6e5e8521285761c7d189548ffe75b098998b3e9c..96fe370256a5ef089b9a9f7d0fb3b10b0d7b841b 100644 (file)
@@ -3,6 +3,7 @@
 namespace Org\Shipsimu\Hub\Node\Helper\SelfConnect;
 
 // Import application-specific stuff
+use Org\Shipsimu\Hub\Factory\Handler\Network\NetworkPackageHandlerFactory;
 use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
 use Org\Shipsimu\Hub\Handler\Package\NetworkPackageHandler;
 use Org\Shipsimu\Hub\Helper\Node\BaseNodeHelper;
index 77e13a54e311fdfbfe6fcce0b86c10d08e631c28..64d27d2937588d18fa1cdd48913937cbd52b7853 100644 (file)
@@ -3,6 +3,7 @@
 namespace Org\Shipsimu\Hub\Node\Helper\Request\NodeList;
 
 // Import application-specific stuff
+use Org\Shipsimu\Hub\Factory\Handler\Network\NetworkPackageHandlerFactory;
 use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
 use Org\Shipsimu\Hub\Handler\Package\NetworkPackageHandler;
 use Org\Shipsimu\Hub\Helper\Node\BaseNodeHelper;
index 3aa9a45c0557c3ee5988af5d4d622d3fb0934255..6dd4b9f7e31b34f89a08ce28288f9c21fea47445 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Shipsimu\Hub\Listener;
 
 // Import application-specific stuff
 use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Factory\Handler\Network\NetworkPackageHandlerFactory;
 use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
 use Org\Shipsimu\Hub\Listener\Listenable;
 use Org\Shipsimu\Hub\Locator\Node\LocateableNode;
index 33d211caff1e220dce421b56c92cdbf97317a69d..88283c6263cf69ea010be5fedda8d9b5a0964339 100644 (file)
@@ -10,7 +10,6 @@ use Org\Shipsimu\Hub\Listener\Listenable;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
-use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
 
 /**
  * A TCP connection listener
index f3c0df456185364d1ea0c0162faedac4c70433d6..8a697f817a49d9e6af0ec0edb87fa220830f8378 100644 (file)
@@ -3,6 +3,7 @@
 namespace Org\Shipsimu\Hub\Task\Network\Reader;
 
 // Import application-specific stuff
+use Org\Shipsimu\Hub\Factory\Handler\Network\NetworkPackageHandlerFactory;
 use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
 
 // Import framework stuff
index a76a987589e66f0a0bd8694bbd845a5a997167e4..8296bcb5e75abedf53fcd88e9adb480d447e3336 100644 (file)
@@ -3,6 +3,7 @@
 namespace Org\Shipsimu\Hub\Task\Network\Writer;
 
 // Import application-specific stuff
+use Org\Shipsimu\Hub\Factory\Handler\Network\NetworkPackageHandlerFactory;
 use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
 
 // Import framework stuff
index e3965fad76a65f7561c68052c05b1f865080c3f4..73146c8976322c4f23a4f3b8f0d00f08fe202235 100644 (file)
@@ -3,6 +3,7 @@
 namespace Org\Shipsimu\Hub\Visitor\Shutdown\Socket;
 
 // Import application-specific stuff
+use Org\Shipsimu\Hub\Factory\Handler\Network\NetworkPackageHandlerFactory;
 use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
 use Org\Shipsimu\Hub\Helper\Connection\ConnectionHelper;
 use Org\Shipsimu\Hub\Network\Delivery\Deliverable;
index adddac183a941ec16c892c0c8f33c3e7ea174c28..232ccca0f3c75a5c1716858f7be11a0a9564bbed 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Shipsimu\Hub\Visitor\Shutdown\Socket;
 
 // Import application-specific stuff
 use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Factory\Handler\Network\NetworkPackageHandlerFactory;
 use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
 use Org\Shipsimu\Hub\Helper\Connection\ConnectionHelper;
 use Org\Shipsimu\Hub\Network\Delivery\Deliverable;
index 7b0281080a69abe451713aa9f5b1c6c1edfa9b7a..70ee6a2e5537ee9d2ceca9bb91e8d58d456323ac 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Shipsimu\Hub\Network\Receive;
 
 // Import application-specific stuff
 use Org\Shipsimu\Hub\Network\Networkable;
+use Org\Shipsimu\Hub\Network\Package\DeliverablePackage;
 
 // Import application-specific stuff
 use Org\Shipsimu\Hub\Generic\HubInterface;