// Import framework stuff
use Org\Mxchange\CoreFramework\Database\Frontend\BaseDatabaseWrapper;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
/**
* A general hub database wrapper
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;
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;
//* 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
// Import framework stuff
use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
-use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
/**
* A general Handler for raw data from sockets
// 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;
// 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;
// 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;
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;
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;
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;
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;
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;
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;
// 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;
// Import framework stuff
use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
-use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
/**
* A TCP connection listener
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
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
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;
// 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;
// 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;