]> git.mxchange.org Git - hub.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 2 Jan 2018 22:49:06 +0000 (23:49 +0100)
committerRoland Häder <roland@mxchange.org>
Fri, 21 Aug 2020 16:50:10 +0000 (18:50 +0200)
- updated core framework to latest commit
- ported main application to new framework with Tld\Domain\ namespace added
  and many many more
- updated .gitignore
- updated .gitattributes

Signed-off-by: Roland Häder <roland@mxchange.org>
500 files changed:
.gitattributes
.gitignore
application/hub/class_ApplicationHelper.php
application/hub/classes/apt-proxy/class_
application/hub/classes/apt-proxy/class_BaseNodeAptProxy.php
application/hub/classes/apt-proxy/console/class_NodeConsoleAptProxy.php
application/hub/classes/blocks/class_BaseBlock.php
application/hub/classes/chains/class_PackageFilterChain.php
application/hub/classes/chat/class_
application/hub/classes/chat/class_BaseNodeChat.php
application/hub/classes/chat/console/class_NodeConsoleChat.php
application/hub/classes/class_BaseHubSystem.php
application/hub/classes/client/http/class_HttpClient.php
application/hub/classes/commands/console/class_HubConsoleAptProxyCommand.php
application/hub/classes/commands/console/class_HubConsoleChatCommand.php
application/hub/classes/commands/console/class_HubConsoleCrawlerCommand.php
application/hub/classes/commands/console/class_HubConsoleCruncherCommand.php
application/hub/classes/commands/console/class_HubConsoleMainCommand.php
application/hub/classes/commands/console/class_HubConsoleMinerCommand.php
application/hub/classes/commands/html/class_HubHtmlIndexCommand.php
application/hub/classes/communicator/class_BaseCommunicator.php
application/hub/classes/communicator/crawler/class_CrawlerNodeCommunicator.php
application/hub/classes/communicator/miner/class_MinerNodeCommunicator.php
application/hub/classes/compressor/decorator/class_NetworkPackageCompressorDecorator.php
application/hub/classes/container/class_BaseHubContainer.php
application/hub/classes/container/socket/class_SocketContainer.php
application/hub/classes/controller/console/class_HubConsoleAptProxyController.php
application/hub/classes/controller/console/class_HubConsoleChatController.php
application/hub/classes/controller/console/class_HubConsoleCrawlerController.php
application/hub/classes/controller/console/class_HubConsoleCruncherController.php
application/hub/classes/controller/console/class_HubConsoleDefaultNewsController.php
application/hub/classes/controller/console/class_HubConsoleFuseController.php
application/hub/classes/controller/console/class_HubConsoleMinerController.php
application/hub/classes/crawler/class_
application/hub/classes/crawler/class_BaseNodeCrawler.php
application/hub/classes/crawler/console/class_NodeConsoleCrawler.php
application/hub/classes/cruncher/class_
application/hub/classes/cruncher/class_BaseHubCruncher.php
application/hub/classes/cruncher/mcrypt/class_HubMcryptCruncher.php
application/hub/classes/database/frontend/class_BaseHubDatabaseWrapper.php
application/hub/classes/database/frontend/cruncher/class_CruncherUnitDatabaseWrapper.php
application/hub/classes/database/frontend/node/class_NodeDistributedHashTableDatabaseWrapper.php
application/hub/classes/database/frontend/node/class_NodeInformationDatabaseWrapper.php
application/hub/classes/database/frontend/states/class_PeerStateLookupDatabaseWrapper.php
application/hub/classes/decoder/class_BaseDecoder.php
application/hub/classes/decoder/package/class_PackageDecoder.php
application/hub/classes/dht/class_BaseDht.php
application/hub/classes/dht/node/class_NodeDhtFacade.php
application/hub/classes/discovery/class_BaseNodeDiscovery.php
application/hub/classes/discovery/node/class_UniversalNodeLocatorDiscovery.php
application/hub/classes/discovery/protocol/class_ProtocolDiscovery.php
application/hub/classes/discovery/recipient/class_BaseRecipientDiscovery.php
application/hub/classes/discovery/recipient/dht/class_DhtRecipientDiscovery.php
application/hub/classes/discovery/recipient/package/class_PackageRecipientDiscovery.php
application/hub/classes/discovery/recipient/socket/class_PackageSocketDiscovery.php
application/hub/classes/factories/chain/class_PackageFilterChainFactory.php
application/hub/classes/factories/chunks/class_ChunkHandlerFactory.php
application/hub/classes/factories/class_
application/hub/classes/factories/client/class_ClientFactory.php
application/hub/classes/factories/communicator/class_CommunicatorFactory.php
application/hub/classes/factories/decoder/class_DecoderFactory.php
application/hub/classes/factories/dht/class_DhtObjectFactory.php
application/hub/classes/factories/discovery/class_PackageDiscoveryFactory.php
application/hub/classes/factories/discovery/class_SocketDiscoveryFactory.php
application/hub/classes/factories/handler/class_MessageTypeHandlerFactory.php
application/hub/classes/factories/handler/class_ProtocolHandlerFactory.php
application/hub/classes/factories/info/class_ConnectionInfoFactory.php
application/hub/classes/factories/lists/class_RecipientListFactory.php
application/hub/classes/factories/locator/class_UniversalNodeLocatorFactory.php
application/hub/classes/factories/node/class_NodeObjectFactory.php
application/hub/classes/factories/package/assembler/class_PackageAssemblerFactory.php
application/hub/classes/factories/package/class_NetworkPackageFactory.php
application/hub/classes/factories/package/fragmenter/class_FragmenterFactory.php
application/hub/classes/factories/producer/class_ProducerFactory.php
application/hub/classes/factories/registry/class_ObjectTypeRegistryFactory.php
application/hub/classes/factories/resolver/class_ProtocolResolverFactory.php
application/hub/classes/factories/scanner/class_ScannerObjectFactory.php
application/hub/classes/factories/socket/class_SocketFactory.php
application/hub/classes/factories/source/units/class_UnitSourceFactory.php
application/hub/classes/factories/source/url/class_UrlSourceObjectFactory.php
application/hub/classes/factories/states/communicator/class_CommunicatorStateFactory.php
application/hub/classes/factories/states/crawler/class_CrawlerStateFactory.php
application/hub/classes/factories/states/cruncher/class_CruncherStateFactory.php
application/hub/classes/factories/states/dht/class_DhtStateFactory.php
application/hub/classes/factories/states/miner/class_MinerStateFactory.php
application/hub/classes/factories/states/node/class_NodeStateFactory.php
application/hub/classes/factories/states/peer/class_PeerStateFactory.php
application/hub/classes/factories/tags/class_PackageTagsFactory.php
application/hub/classes/feature/hubcoin_reward/class_HubcoinRewardFeature.php
application/hub/classes/filter/activation/node/class_NodeActivation
application/hub/classes/filter/activation/node/class_NodeActivationAnnouncementFilter.php
application/hub/classes/filter/apt-proxy/class_AptProxyInitializationFilter.php
application/hub/classes/filter/apt-proxy/class_AptProxyPhpRequirementsFilter.php
application/hub/classes/filter/apt-proxy/class_AptProxyWelcomeTeaserFilter.php
application/hub/classes/filter/bootstrap/apt-proxy/class_AptProxyBootstrap
application/hub/classes/filter/bootstrap/apt-proxy/class_AptProxyBootstrapExtraBootstrappingFilter.php
application/hub/classes/filter/bootstrap/apt-proxy/class_AptProxyBootstrapGenericActivationFilter.php
application/hub/classes/filter/bootstrap/chat/class_ChatBootstrap
application/hub/classes/filter/bootstrap/chat/class_ChatBootstrapExtraBootstrappingFilter.php
application/hub/classes/filter/bootstrap/chat/class_ChatBootstrapGenericActivationFilter.php
application/hub/classes/filter/bootstrap/crawler/class_CrawlerBootstrap
application/hub/classes/filter/bootstrap/crawler/class_CrawlerBootstrapExtraBootstrappingFilter.php
application/hub/classes/filter/bootstrap/crawler/class_CrawlerBootstrapGenericActivationFilter.php
application/hub/classes/filter/bootstrap/cruncher/class_CruncherBootstrap
application/hub/classes/filter/bootstrap/cruncher/class_CruncherBootstrapBufferQueueInitializerFilter.php
application/hub/classes/filter/bootstrap/cruncher/class_CruncherBootstrapExtraBootstrappingFilter.php
application/hub/classes/filter/bootstrap/cruncher/class_CruncherBootstrapGenericActivationFilter.php
application/hub/classes/filter/bootstrap/miner/class_MinerBootstrap
application/hub/classes/filter/bootstrap/miner/class_MinerBootstrapBufferQueueInitializerFilter.php
application/hub/classes/filter/bootstrap/miner/class_MinerBootstrapExtraBootstrappingFilter.php
application/hub/classes/filter/bootstrap/miner/class_MinerBootstrapGenericActivationFilter.php
application/hub/classes/filter/bootstrap/node/class_NodeBootstrap
application/hub/classes/filter/bootstrap/node/class_NodeBootstrapExtraBootstrappingFilter.php
application/hub/classes/filter/bootstrap/node/class_NodeBootstrapGenerateNodeIdFilter.php
application/hub/classes/filter/bootstrap/node/class_NodeBootstrapGeneratePrivateKeyFilter.php
application/hub/classes/filter/bootstrap/node/class_NodeBootstrapGenerateSessionIdFilter.php
application/hub/classes/filter/bootstrap/node/class_NodeBootstrapListenerPoolFilter.php
application/hub/classes/filter/chat/class_Chat
application/hub/classes/filter/chat/class_ChatInitializationFilter.php
application/hub/classes/filter/chat/class_ChatPhpRequirementsFilter.php
application/hub/classes/filter/chat/class_ChatWelcomeTeaserFilter.php
application/hub/classes/filter/class_
application/hub/classes/filter/class_BaseAptProxyFilter.php
application/hub/classes/filter/class_BaseChatFilter.php
application/hub/classes/filter/class_BaseCrawlerFilter.php
application/hub/classes/filter/class_BaseCruncherFilter.php
application/hub/classes/filter/class_BaseHubFilter.php
application/hub/classes/filter/class_BaseMinerFilter.php
application/hub/classes/filter/class_BaseNodeFilter.php
application/hub/classes/filter/crawler/class_CrawlerInitializationFilter.php
application/hub/classes/filter/crawler/class_CrawlerPhpRequirementsFilter.php
application/hub/classes/filter/crawler/class_CrawlerWelcomeTeaserFilter.php
application/hub/classes/filter/cruncher/class_Cruncher
application/hub/classes/filter/cruncher/class_CruncherInitializationFilter.php
application/hub/classes/filter/cruncher/class_CruncherPhpRequirementsFilter.php
application/hub/classes/filter/cruncher/class_CruncherWelcomeTeaserFilter.php
application/hub/classes/filter/miner/class_Miner
application/hub/classes/filter/miner/class_MinerInitializationFilter.php
application/hub/classes/filter/miner/class_MinerPhpRequirementsFilter.php
application/hub/classes/filter/miner/class_MinerWelcomeTeaserFilter.php
application/hub/classes/filter/node/class_Node
application/hub/classes/filter/node/class_NodeInitializationFilter.php
application/hub/classes/filter/node/class_NodePhpRequirementsFilter.php
application/hub/classes/filter/node/class_NodeWelcomeTeaserFilter.php
application/hub/classes/filter/shutdown/apt-proxy/class_AptProxyShutdownFilter.php
application/hub/classes/filter/shutdown/chat/class_ChatShutdownFilter.php
application/hub/classes/filter/shutdown/crawler/class_CrawlerShutdownFilter.php
application/hub/classes/filter/shutdown/cruncher/class_CruncherShutdownFilter.php
application/hub/classes/filter/shutdown/miner/class_MinerShutdownFilter.php
application/hub/classes/filter/shutdown/node/class_NodeShutdown
application/hub/classes/filter/shutdown/node/class_NodeShutdownFlushNodeListFilter.php
application/hub/classes/filter/shutdown/node/class_NodeShutdownNodeFilter.php
application/hub/classes/filter/shutdown/node/class_NodeShutdownTaskHandlerFilter.php
application/hub/classes/filter/tags/answer/class_PackageAnnouncementAnswerTagFilter.php
application/hub/classes/filter/tags/answer/class_PackageDhtBootstrapAnswerTagFilter.php
application/hub/classes/filter/tags/answer/class_PackageRequestNodeListAnswerTagFilter.php
application/hub/classes/filter/tags/class_PackageAnnouncementTagFilter.php
application/hub/classes/filter/tags/class_PackageDhtBootstrapTagFilter.php
application/hub/classes/filter/tags/class_PackageRequestNodeListTagFilter.php
application/hub/classes/filter/tags/class_PackageSelfConnectTagFilter.php
application/hub/classes/filter/task/apt-proxy/class_AptProxyTaskHandlerInitializerFilter.php
application/hub/classes/filter/task/chat/class_ChatTaskHandlerInitializerFilter.php
application/hub/classes/filter/task/crawler/class_CrawlerTaskHandlerInitializerFilter.php
application/hub/classes/filter/task/cruncher/class_CruncherTaskHandlerInitializerFilter.php
application/hub/classes/filter/task/miner/class_MinerTaskHandlerInitializerFilter.php
application/hub/classes/filter/task/node/class_NodeTaskHandlerInitializerFilter.php
application/hub/classes/handler/chunks/class_ChunkHandler.php
application/hub/classes/handler/class_BaseHubHandler.php
application/hub/classes/handler/data/answer-status/announcement/class_NodeAnnouncementAnswerOkayHandler.php
application/hub/classes/handler/data/answer-status/requests/class_RequestNodeListAnswerOkayHandler.php
application/hub/classes/handler/data/class_BaseDataHandler.php
application/hub/classes/handler/data/message-types/announcement/class_NodeMessageAnnouncementHandler.php
application/hub/classes/handler/data/message-types/answer/class_NodeMessageAnnouncementAnswerHandler.php
application/hub/classes/handler/data/message-types/answer/class_NodeMessageDhtBootstrapAnswerHandler.php
application/hub/classes/handler/data/message-types/answer/class_NodeMessageRequestNodeListAnswerHandler.php
application/hub/classes/handler/data/message-types/class_
application/hub/classes/handler/data/message-types/class_BaseMessageHandler.php
application/hub/classes/handler/data/message-types/dht/class_NodeMessageDhtBootstrapHandler.php
application/hub/classes/handler/data/message-types/requests/class_NodeMessageRequestNodeListHandler.php
application/hub/classes/handler/data/message-types/self-connect/class_NodeMessageSelfConnectHandler.php
application/hub/classes/handler/protocol/class_
application/hub/classes/handler/protocol/class_BaseProtocolHandler.php
application/hub/classes/handler/protocol/ipv4/class_BaseIpV4ProtocolHandler.php
application/hub/classes/handler/protocol/ipv4/tcp/class_TcpProtocolHandler.php
application/hub/classes/handler/raw_data/class_BaseRawDataHandler.php
application/hub/classes/handler/raw_data/socket/class_SocketRawDataHandler.php
application/hub/classes/handler/raw_data/tcp/class_
application/hub/classes/handler/raw_data/tcp/class_TcpRawDataHandler.php
application/hub/classes/handler/raw_data/udp/class_UdpRawDataHandler.php
application/hub/classes/helper/class_BaseHubSystemHelper.php
application/hub/classes/helper/connection/class_BaseConnectionHelper.php
application/hub/classes/helper/connection/ipv4/class_BaseIpV4ConnectionHelper.php
application/hub/classes/helper/connection/ipv4/tcp/class_TcpConnectionHelper.php
application/hub/classes/helper/connection/ipv4/udp/class_UdpConnectionHelper.php
application/hub/classes/helper/dht/class_DhtBootstrapHelper.php
application/hub/classes/helper/dht/class_DhtPublishEntryHelper.php
application/hub/classes/helper/messages/class_BaseMessageHelper.php
application/hub/classes/helper/messages/crypto/class_CryptoRandomUnitMessageHelper.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/class_BaseHubAnswerHelper.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/class_BaseNodeHelper.php
application/hub/classes/helper/node/connection/class_NodeSelfConnectHelper.php
application/hub/classes/helper/node/requests/class_NodeRequestNodeListHelper.php
application/hub/classes/helper/work_units/class_BaseWorkUnitHelper.php
application/hub/classes/info/class_BaseInfo.php
application/hub/classes/info/connection/class_ConnectionInfo.php
application/hub/classes/iterator/network/class_NetworkListenIterator.php
application/hub/classes/iterator/node/class_NodePingIterator.php
application/hub/classes/iterator/pool/handler/class_Handler
application/hub/classes/iterator/pool/handler/class_HandlerPoolIterator.php
application/hub/classes/iterator/pool/monitor/class_MonitorPoolIterator.php
application/hub/classes/iterator/pool/shutdown/class_Shutdown
application/hub/classes/iterator/pool/shutdown/class_ShutdownPoolIterator.php
application/hub/classes/iterator/pool/tasks/class_TaskPoolIterator.php
application/hub/classes/iterator/producer/keys/class_TestUnitKeyProducerIterator.php
application/hub/classes/listener/class_BaseListener.php
application/hub/classes/listener/class_BaseListenerDecorator.php
application/hub/classes/listener/socket/class_SocketFileListener.php
application/hub/classes/listener/socket/decorator/class_SocketFileListenerDecorator.php
application/hub/classes/listener/tcp/class_
application/hub/classes/listener/tcp/class_TcpListener.php
application/hub/classes/listener/tcp/decorators/class_ClientTcpListenerDecorator.php
application/hub/classes/listener/tcp/decorators/class_HubTcpListenerDecorator.php
application/hub/classes/listener/udp/class_UdpListener.php
application/hub/classes/listener/udp/decorators/class_ClientUdpListenerDecorator.php
application/hub/classes/listener/udp/decorators/class_HubUdpListenerDecorator.php
application/hub/classes/lists/hub/class_HubList.php
application/hub/classes/lists/pool/class_PoolEntriesList.php
application/hub/classes/lists/recipient/class_RecipientList.php
application/hub/classes/locator/class_UniversalNodeLocator.php
application/hub/classes/miner/chash/class_HubCoinMiner.php
application/hub/classes/miner/class_
application/hub/classes/miner/class_BaseHubMiner.php
application/hub/classes/nodes/boot/class_HubBootNode.php
application/hub/classes/nodes/class_
application/hub/classes/nodes/class_BaseHubNode.php
application/hub/classes/nodes/list/class_HubListNode.php
application/hub/classes/nodes/master/class_HubMasterNode.php
application/hub/classes/nodes/regular/class_HubRegularNode.php
application/hub/classes/package/assembler/class_PackageAssembler.php
application/hub/classes/package/class_NetworkPackage.php
application/hub/classes/package/fragmenter/class_PackageFragmenter.php
application/hub/classes/pools/class_BasePool.php
application/hub/classes/pools/listener/class_DefaultListenerPool.php
application/hub/classes/pools/peer/class_DefaultPeerPool.php
application/hub/classes/producer/class_BaseProducer.php
application/hub/classes/producer/cruncher/keys/class_CruncherKeyProducer.php
application/hub/classes/producer/cruncher/work_units/class_CruncherTestUnitProducer.php
application/hub/classes/producer/miner/blocks/class_MinerRealGenesisBlockProducer.php
application/hub/classes/producer/miner/blocks/class_MinerTestGenesisBlockProducer.php
application/hub/classes/recipient/class_
application/hub/classes/recipient/class_BaseRecipient.php
application/hub/classes/recipient/dht/class_DhtRecipient.php
application/hub/classes/recipient/direct/class_DirectRecipient.php
application/hub/classes/recipient/self/class_SelfRecipient.php
application/hub/classes/recipient/upper/class_UpperRecipient.php
application/hub/classes/registry/objects/class_ObjectTypeRegistry.php
application/hub/classes/registry/socket/class_SocketRegistry.php
application/hub/classes/resolver/command/console/class_HubConsoleCommandResolver.php
application/hub/classes/resolver/command/html/class_HubHtmlCommandResolver.php
application/hub/classes/resolver/controller/console/class_HubConsoleControllerResolver.php
application/hub/classes/resolver/controller/html/class_HubHtmlControllerResolver.php
application/hub/classes/resolver/protocol/class_BaseProtocolResolver.php
application/hub/classes/resolver/protocol/tcp/class_TcpProtocolResolver.php
application/hub/classes/resolver/state/class_BaseStateResolver.php
application/hub/classes/resolver/state/peer/class_PeerStateResolver.php
application/hub/classes/scanner/class_BaseScanner.php
application/hub/classes/scanner/crawler/uploaded_list/class_CrawlerUploadedListScanner.php
application/hub/classes/source/class_BaseSource.php
application/hub/classes/source/units/class_TestUnitSource.php
application/hub/classes/source/urls/class_CrawlerFoundRssUrlSource.php
application/hub/classes/source/urls/class_CrawlerLocalStartUrlSource.php
application/hub/classes/source/urls/class_CrawlerRssStartUrlSource.php
application/hub/classes/source/urls/class_CrawlerUploadedListUrlSource.php
application/hub/classes/states/communicator/active/class_CommunicatorActiveState.php
application/hub/classes/states/communicator/class_BaseCommunicatorState.php
application/hub/classes/states/communicator/class_Communicator
application/hub/classes/states/communicator/init/class_CommunicatorInitState.php
application/hub/classes/states/crawler/active/class_CrawlerActiveState.php
application/hub/classes/states/crawler/booting/class_CrawlerBootingState.php
application/hub/classes/states/crawler/class_BaseCrawlerState.php
application/hub/classes/states/crawler/class_Crawler
application/hub/classes/states/crawler/init/class_CrawlerInitState.php
application/hub/classes/states/cruncher/class_BaseCruncherState.php
application/hub/classes/states/cruncher/class_Cruncher
application/hub/classes/states/cruncher/init/class_CruncherInitState.php
application/hub/classes/states/cruncher/virgin/class_CruncherVirginState.php
application/hub/classes/states/dht/active/class_DhtActiveState.php
application/hub/classes/states/dht/booting/class_DhtBootingState.php
application/hub/classes/states/dht/class_BaseDhtState.php
application/hub/classes/states/dht/class_Dht
application/hub/classes/states/dht/init/class_DhtInitState.php
application/hub/classes/states/dht/virgin/class_DhtVirginState.php
application/hub/classes/states/miner/booting/class_MinerBootingState.php
application/hub/classes/states/miner/class_BaseMinerState.php
application/hub/classes/states/miner/class_Miner
application/hub/classes/states/miner/init/class_MinerInitState.php
application/hub/classes/states/miner/virgin/class_MinerVirginState.php
application/hub/classes/states/node/active/class_NodeActiveState.php
application/hub/classes/states/node/announced/class_NodeAnnouncementCompletedState.php
application/hub/classes/states/node/announced/class_NodeAnnouncingState.php
application/hub/classes/states/node/class_BaseNodeState.php
application/hub/classes/states/node/class_Node
application/hub/classes/states/node/init/class_NodeInitState.php
application/hub/classes/states/node/seniors/class_NodeReachableState.php
application/hub/classes/states/node/virgin/class_NodeVirginState.php
application/hub/classes/states/peer/class_
application/hub/classes/states/peer/class_BasePeerState.php
application/hub/classes/states/peer/connected/class_ConnectedPeerState.php
application/hub/classes/states/peer/errors/class_ConnectionRefusedPeerState.php
application/hub/classes/states/peer/errors/class_ConnectionTimedOutPeerState.php
application/hub/classes/states/peer/errors/class_NoRouteToHostPeerState.php
application/hub/classes/states/peer/errors/class_OperationAlreadyProgressPeerState.php
application/hub/classes/states/peer/errors/class_ProblemPeerState.php
application/hub/classes/states/peer/errors/class_TransportEndpointGonePeerState.php
application/hub/classes/states/peer/init/class_InitPeerState.php
application/hub/classes/statistics/connection/class_ConnectionStatisticsHelper.php
application/hub/classes/streams/raw_data/input/class_RawDataInputStream.php
application/hub/classes/streams/raw_data/output/class_RawDataOutputStream.php
application/hub/classes/tags/class_BaseTag.php
application/hub/classes/tags/package/class_PackageTags.php
application/hub/classes/tasks/apt-proxy/class_
application/hub/classes/tasks/apt-proxy/class_AptProxyListenerTask.php
application/hub/classes/tasks/chat/class_
application/hub/classes/tasks/chat/class_ChatTelnetListenerTask.php
application/hub/classes/tasks/crawler/class_BaseUrlSourceTask.php
application/hub/classes/tasks/crawler/class_Crawler
application/hub/classes/tasks/crawler/communicator/class_CrawlerNodeCommunicatorTask.php
application/hub/classes/tasks/crawler/document_parser/class_CrawlerDocumentParserTask.php
application/hub/classes/tasks/crawler/mime_sniffer/class_CrawlerMimeSnifferTask.php
application/hub/classes/tasks/crawler/ping/class_CrawlerPingTask.php
application/hub/classes/tasks/crawler/publisher/class_CrawlerRemoteJobPublisherTask.php
application/hub/classes/tasks/crawler/scanner/class_Crawler
application/hub/classes/tasks/crawler/scanner/uploaded_list/class_CrawlerUploadedListScannerTask.php
application/hub/classes/tasks/crawler/snippet_extractor/class_CrawlerSnippetExtractorTask.php
application/hub/classes/tasks/crawler/structure_analyzer/class_CrawlerStructureAnalyzerTask.php
application/hub/classes/tasks/crawler/url_crawler/local/class_CrawlerLocalUrlCrawlerTask.php
application/hub/classes/tasks/crawler/url_crawler/remote/class_CrawlerRemoteUrlCrawlerTask.php
application/hub/classes/tasks/crawler/url_source/class_CrawlerUrlSource
application/hub/classes/tasks/crawler/url_source/class_CrawlerUrlSourceFoundRssTask.php
application/hub/classes/tasks/crawler/url_source/class_CrawlerUrlSourceLocalStartTask.php
application/hub/classes/tasks/crawler/url_source/class_CrawlerUrlSourceRssStartTask.php
application/hub/classes/tasks/crawler/url_source/class_CrawlerUrlSourceUploadedListTask.php
application/hub/classes/tasks/cruncher/class_Cruncher
application/hub/classes/tasks/cruncher/class_CruncherKeyProducerTask.php
application/hub/classes/tasks/cruncher/class_CruncherTestUnitProducerTask.php
application/hub/classes/tasks/cruncher/class_CruncherWorkUnitFetcherTask.php
application/hub/classes/tasks/miner/block_fetcher/class_MinerBlockFetcherTask.php
application/hub/classes/tasks/miner/block_producer/class_MinerRealGenesisBlockProducerTask.php
application/hub/classes/tasks/miner/block_producer/class_MinerTestGenesisBlockProducerTask.php
application/hub/classes/tasks/miner/class_Miner
application/hub/classes/tasks/miner/communicator/class_MinerNodeCommunicatorTask.php
application/hub/classes/tasks/network/class_NetworkPackage
application/hub/classes/tasks/network/class_NetworkPackageReaderTask.php
application/hub/classes/tasks/network/class_NetworkPackageWriterTask.php
application/hub/classes/tasks/node/announcement/class_NodeAnnouncementTask.php
application/hub/classes/tasks/node/chunks/class_NodeChunkAssemblerTask.php
application/hub/classes/tasks/node/class_Node
application/hub/classes/tasks/node/decoder/class_NodePackageDecoderTask.php
application/hub/classes/tasks/node/dht/class_NodeDht
application/hub/classes/tasks/node/dht/class_NodeDhtBootstrapTask.php
application/hub/classes/tasks/node/dht/class_NodeDhtInitializationTask.php
application/hub/classes/tasks/node/dht/class_NodeDhtLateBootstrapTask.php
application/hub/classes/tasks/node/dht/class_NodeDhtPublicationCheckTask.php
application/hub/classes/tasks/node/dht/class_NodeDhtPublicationTask.php
application/hub/classes/tasks/node/dht/class_NodeDhtQueryTask.php
application/hub/classes/tasks/node/listener/class_NodeSocketListenerTask.php
application/hub/classes/tasks/node/ping/class_NodePingTask.php
application/hub/classes/tasks/node/self_connect/class_NodeSelfConnectTask.php
application/hub/classes/tasks/node/tags/class_NodePackageTagsInitTask.php
application/hub/classes/tasks/node/update/class_NodeUpdateCheckTask.php
application/hub/classes/template/announcement/class_XmlAnnouncementTemplateEngine.php
application/hub/classes/template/answer/announcement/class_XmlAnnouncementAnswerTemplateEngine.php
application/hub/classes/template/answer/class_
application/hub/classes/template/answer/class_BaseXmlAnswerTemplateEngine.php
application/hub/classes/template/answer/dht/class_XmlDhtBootstrapAnswerTemplateEngine.php
application/hub/classes/template/answer/requests/class_XmlRequestNodeListAnswerTemplateEngine.php
application/hub/classes/template/class_
application/hub/classes/template/class_BaseXmlTemplateEngine.php
application/hub/classes/template/connect/class_XmlSelfConnectTemplateEngine.php
application/hub/classes/template/dht/class_XmlDhtBootstrapTemplateEngine.php
application/hub/classes/template/entries/class_XmlRequestNodeListEntryTemplateEngine.php
application/hub/classes/template/objects/class_XmlObjectRegistryTemplateEngine.php
application/hub/classes/template/producer/test_units/class_XmlCruncherTestUnitTemplateEngine.php
application/hub/classes/template/publish/class_XmlDhtPublishEntryTemplateEngine.php
application/hub/classes/template/requests/class_XmlRequestNodeListTemplateEngine.php
application/hub/classes/tools/class_HubTools.php
application/hub/classes/visitor/pool/class_
application/hub/classes/visitor/pool/handler/class_Handler
application/hub/classes/visitor/pool/monitor/class_RawDataPoolMonitorVisitor.php
application/hub/classes/visitor/pool/shutdown/class_Shutdown
application/hub/classes/visitor/pool/shutdown/class_ShutdownListenerPoolVisitor.php
application/hub/classes/visitor/socket/class_HalfShutdownSocketVisitor.php
application/hub/classes/visitor/socket/class_ShutdownSocketVisitor.php
application/hub/classes/visitor/tasks/class_ActiveTaskVisitor.php
application/hub/classes/visitor/tasks/class_ShutdownTaskVisitor.php
application/hub/config-local.php-dist
application/hub/config.php
application/hub/exceptions.php
application/hub/exceptions/announcement/class_AnnouncementNotAcceptedException.php
application/hub/exceptions/announcement/class_NoAnnouncementAttemptedException.php
application/hub/exceptions/connection/class_InvalidConnectionTypeException.php
application/hub/exceptions/dht/class_DhtBootstrapNotAcceptedException.php
application/hub/exceptions/dht/class_NoDhtBootstrapAttemptedException.php
application/hub/exceptions/factory/class_FactoryRequiredParameterException.php
application/hub/exceptions/ids/class_InvalidSessionIdException.php
application/hub/exceptions/node/class_NodeAlreadyAnnouncedException.php
application/hub/exceptions/node/class_NodeSessionIdVerficationException.php
application/hub/exceptions/package/class_FinalChunkVerificationException.php
application/hub/exceptions/package/class_InvalidDataChecksumException.php
application/hub/exceptions/package/class_InvalidPrivateKeyHashException.php
application/hub/exceptions/package/class_UnexpectedPackageStatusException.php
application/hub/exceptions/package/class_UnsupportedPackageCodeHandlerException.php
application/hub/exceptions/peer/class_PeerAlreadyRegisteredException.php
application/hub/exceptions/requests/class_NoRequestNodeListAttemptedException.php
application/hub/exceptions/requests/class_RequestNotAcceptedException.php
application/hub/exceptions/socket/class_NoSocketRegisteredException.php
application/hub/exceptions/socket/class_SocketShutdownException.php
application/hub/exceptions/stream/class_MultipleMessageSentException.php
application/hub/exceptions/tags/class_InvalidTagException.php
application/hub/exceptions/tasks/class_InvalidTaskException.php
application/hub/exceptions/unl/class_InvalidUnlException.php
application/hub/exceptions/wrapper/class_NodeAlreadyRegisteredException.php
application/hub/exceptions/wrapper/class_NodeDataMissingException.php
application/hub/interfaces/apt-proxy/class_AptProxy.php
application/hub/interfaces/blocks/class_Minable.php
application/hub/interfaces/chat/class_Chatter.php
application/hub/interfaces/class_HubInterface.php
application/hub/interfaces/communicator/class_Communicator.php
application/hub/interfaces/consumer/class_Consumer.php
application/hub/interfaces/container/socket/class_StorableSocket.php
application/hub/interfaces/crawler/class_Crawler.php
application/hub/interfaces/cruncher/class_CruncherHelper.php
application/hub/interfaces/database/frontend/class_NodeDhtWrapper.php
application/hub/interfaces/database/frontend/class_NodeInformationWrapper.php
application/hub/interfaces/database/frontend/class_UnitDatabaseWrapper.php
application/hub/interfaces/decoder/class_Decodeable.php
application/hub/interfaces/discovery/class_Discoverable
application/hub/interfaces/discovery/protocol/class_DiscoverableProtocol.php
application/hub/interfaces/discovery/recipient/class_DiscoverableRecipient.php
application/hub/interfaces/discovery/recipient/dht/class_DiscoverableDhtRecipient.php
application/hub/interfaces/discovery/recipient/node/class_DiscoverableNodeRecipient.php
application/hub/interfaces/discovery/recipient/socket/class_DiscoverableSocket.php
application/hub/interfaces/discovery/unl/class_DiscoverableUniversalNodeLocator.php
application/hub/interfaces/distributable/class_Distributable.php
application/hub/interfaces/distributable/node/class_DistributableNode.php
application/hub/interfaces/executor/.htaccess [deleted file]
application/hub/interfaces/executor/class_Executor.php [deleted file]
application/hub/interfaces/filter/class_FilterablePackage.php
application/hub/interfaces/handler/answer-status/class_HandleableAnswerStatus.php
application/hub/interfaces/handler/chunks/class_HandleableChunks.php
application/hub/interfaces/handler/message-types/class_HandleableMessage.php
application/hub/interfaces/handler/network/class_Networkable.php
application/hub/interfaces/handler/protocol/class_HandleableProtocol.php
application/hub/interfaces/handler/raw-data/.htaccess [new file with mode: 0644]
application/hub/interfaces/handler/raw-data/class_HandleableRawData.php [new file with mode: 0644]
application/hub/interfaces/helper/connections/class_ConnectionHelper.php
application/hub/interfaces/helper/dht/class_HelpableDht.php
application/hub/interfaces/helper/hub/class_HubHelper.php
application/hub/interfaces/helper/messages/class_MessageHelper.php
application/hub/interfaces/helper/node/class_HelpableNode.php
application/hub/interfaces/helper/nodes/class_NodeHelper.php
application/hub/interfaces/listener/class_Listenable.php
application/hub/interfaces/locator/class_LocateableNode.php
application/hub/interfaces/lookup/class_Lookupable.php
application/hub/interfaces/lookup/node_states/class_LookupableNodeState.php
application/hub/interfaces/lookup/peer_states/class_LookupablePeerState.php
application/hub/interfaces/miner/class_MinerHelper.php
application/hub/interfaces/package/assembler/class_Assembler.php
application/hub/interfaces/package/class_Deliverable.php
application/hub/interfaces/package/class_Receivable.php
application/hub/interfaces/package/fragmenter/class_Fragmentable.php
application/hub/interfaces/pool/class_Poolable.php
application/hub/interfaces/pool/listener/class_PoolableListener.php
application/hub/interfaces/pool/peer/class_PoolablePeer.php
application/hub/interfaces/producer/block/class_BlockProducer.php
application/hub/interfaces/producer/class_Producer.php
application/hub/interfaces/producer/keys/class_KeyProducer.php
application/hub/interfaces/producer/work_units/class_UnitProducer.php
application/hub/interfaces/recipient/class_Recipient.php
application/hub/interfaces/registry/socket/class_RegisterableSocket.php
application/hub/interfaces/resolver/class_ProtocolResolver.php
application/hub/interfaces/resolver/state/class_StateResolver.php
application/hub/interfaces/scanner/class_Scanner.php
application/hub/interfaces/shareable/info/class_ShareableInfo.php
application/hub/interfaces/socket/class_SocketTag.php
application/hub/interfaces/source/class_Source.php
application/hub/interfaces/states/client/class_ClientStateable.php
application/hub/interfaces/states/hub/class_HubStateable.php
application/hub/interfaces/states/peer/class_PeerStateable.php
application/hub/interfaces/tags/class_Tagable.php
application/hub/interfaces/visitor/listener/class_ListenerVisitor.php
application/hub/interfaces/visitor/pool/class_PoolVisitor.php
application/hub/interfaces/visitor/pool/listener/class_ListenerPoolVisitor.php
application/hub/interfaces/work_units/class_UnitHelper.php
core
index.php

index 17cdcd5373ad22f616149f35b61236dfe81ebec3..72184ce6eaa2f5cfb1e2d183953105fb520308bd 100644 (file)
@@ -1,2 +1,33 @@
-# Use Linux/Uni* line-feed for new lines (prevents converting)
-* text=lf
+#
+### Distribute this file on all GIT projects!
+#
+# Autodetect text files
+* text=auto
+
+# Force the following filetypes to have unix eols, so Windows does not break them
+*.* text eol=lf
+
+# Force images/fonts to be handled as binaries
+*.jpg binary
+*.jpeg binary
+*.gif binary
+*.png binary
+*.t3x binary
+*.t3d binary
+*.exe binary
+*.data binary
+*.ttf binary
+*.eof binary
+*.eot binary
+*.swf binary
+*.mov binary
+*.mp4 binary
+*.mp3 binary
+*.ogg binary
+*.flv binary
+*.jar binary
+*.pdf binary
+*.woff* binary
+*.otf binary
+*.z binary
+*.docx binary
index 3dc43e248f9a01eaecbcf9ee5d66cff252c5c0f4..98ed1ba47ca7143f5be8dce009076313e41e0e93 100644 (file)
@@ -12,3 +12,4 @@ docs/warn.log
 /nbproject
 data/stacks/*.stack*
 data/url_lists/*.*
+/*.log
index 56c00813595e43c91035d99ce8ff20fcba8e8016..e61d84e5ab91624b678b4a851f53ae5ec5f68c12 100644 (file)
@@ -1,20 +1,19 @@
 <?php
 // Must be this namespace, else the launcher cannot find the class.
-namespace CoreFramework\Helper\Application;
+namespace Org\Mxchange\CoreFramework\Helper\Application;
 
 // Import hub-specific sutff
-use Hub\Tools\HubTools;
+use Org\Shipsimu\Hub\Tools\HubTools;
 
 // Import framework stuff
-use CoreFramework\Bootstrap\FrameworkBootstrap;
-use CoreFramework\Configuration\FrameworkConfiguration;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Loader\ClassLoader;
-use CoreFramework\Manager\ManageableApplication;
-use CoreFramework\Object\BaseFrameworkSystem;
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Template\CompileableTemplate;
+use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Loader\ClassLoader;
+use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
+use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
 
 /**
  * A class holding general data about the application and some methods for
@@ -179,7 +178,7 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
         */
        public function initApplication () {
                // Get config instance
-               $cfg = FrameworkConfiguration::getSelfInstance();
+               $cfg = FrameworkBootstrap::getConfigurationInstance();
 
                // Initialize output system
                ApplicationHelper::createDebugInstance('ApplicationHelper');
@@ -230,7 +229,7 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
 
                // Get a controller resolver
                $resolverClass = sprintf(
-                       'Hub\Resolver\Controller\%s',
+                       'Org\Shipsimu\Hub\Resolver\Controller\%s',
                        self::convertToClassName(sprintf(
                                '%s_%s_controller_resolver',
                                $this->getAppShortName(),
index f9605703e93eefc8a7e5c8598c95b3e939e2ef87..4ecf08f34d2554a42f85e84b74b3432afbec9c15 100644 (file)
@@ -3,8 +3,8 @@
 namespace Hub\AptProxy;
 
 // Import framework stuff
-use CoreFramework\Controller\Controller;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A node ??? apt-proxy
index babe4473da662750353498e7cfb57b90f72c1f9e..8b883b035b583047987b180f100f7d6bb8fd4ab1 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\AptProxy;
+namespace Org\Shipsimu\Hub\AptProxy;
 
 // Import hub-specific stuff
-use Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
 /**
  * A general NodeAptProxy class
index 73382b424fc4eef2c006471ac5d0e8c7ebc187b2..0da9ba6fe9788a0422b45bbd09daee7f3ffafdfc 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\AptProxy;
+namespace Org\Shipsimu\Hub\AptProxy;
 
 // Import framework stuff
-use CoreFramework\Controller\Controller;
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A node console apt-proxy
index 9eba5a4dd0d64ec5909a561c42b2a9b47a2f878a..2e8b9eec4b79fb4d2df7257057acf2eeba227e05 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Block;
+namespace Org\Shipsimu\Hub\Block;
 
 // Import hub-specific stuff
-use Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
 /**
  * A general Block class
index 862a061aee837ca68f85efb58ba4c82884c219a5..96a0a922a9b7afc1964689832e655f0c26f07adc 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\FilterChain\Package;
+namespace Org\Shipsimu\Hub\FilterChain\Package;
 
 // Import application-specific stuff
-use Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
 
 /**
  * A filter chain for processing network packages (or better messages)
index 38cba859c73a6f2c21f7c55db141a89d48cf7854..65f70e7179a836d9d1ab4619e4125b11a46ba977 100644 (file)
@@ -3,8 +3,8 @@
 namespace Hub\Chat;
 
 // Import framework stuff
-use CoreFramework\Controller\Controller;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A node ??? chat
index 03d9fb5f8a1dd65ac845529360017d05e952acaf..41afff33a288911a3a501b9351c91b0a988be8c4 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Chat;
+namespace Org\Shipsimu\Hub\Chat;
 
 // Import hub-specific stuff
-use Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
 /**
  * A general NodeChat class
index 8ceb69842c06ec007730c78b6226829921fa4a23..1fa9b9a91c4a59e4ee3af639fb115c3ba376000c 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Chat;
+namespace Org\Shipsimu\Hub\Chat;
 
 // Import framework stuff
-use CoreFramework\Controller\Controller;
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A node console chat
index a4d9b24c9231467d7536bf188ca0aa6cb48935cf..7dafb43cafa6c4271fc34a9fe00f5fbdfe9608a4 100644 (file)
@@ -1,23 +1,23 @@
 <?php
 // Own namespace
-namespace Hub\Generic;
+namespace Org\Shipsimu\Hub\Generic;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Handler\Protocol\HandleableProtocol;
-use Hub\Handler\Network\RawData\BaseRawDataHandler;
-use Hub\Information\ShareableInfo;
-use Hub\Listener\BaseListener;
-use Hub\Listener\Listenable;
-use Hub\Locator\Node\LocateableNode;
-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;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Handler\Protocol\HandleableProtocol;
+use Org\Shipsimu\Hub\Handler\Network\RawData\HandleableRawData;
+use Org\Shipsimu\Hub\Information\ShareableInfo;
+use Org\Shipsimu\Hub\Listener\BaseListener;
+use Org\Shipsimu\Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Locator\Node\LocateableNode;
+use Org\Shipsimu\Hub\Network\Deliver\Deliverable;
+use Org\Shipsimu\Hub\Network\Package\Assembler\Assembler;
+use Org\Shipsimu\Hub\Network\Package\Fragment\Fragmentable;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Pool\Poolable;
 
 // Import framework stuff
-use CoreFramework\Object\BaseFrameworkSystem;
+use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
 
 /**
  * A general hub system class
@@ -142,8 +142,11 @@ class BaseHubSystem extends BaseFrameworkSystem implements HubInterface {
         * @return      $isset  Whether start/end marker are set
         */
        public final function ifStartEndMarkersSet ($data) {
+               // Trace message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('HUB-SYSTEM: data()=%d - CALLED!', strlen($data)));
+
                // Determine it
-               $isset = ((substr($data, 0, strlen(BaseRawDataHandler::STREAM_START_MARKER)) == BaseRawDataHandler::STREAM_START_MARKER) && (substr($data, -1 * strlen(BaseRawDataHandler::STREAM_END_MARKER), strlen(BaseRawDataHandler::STREAM_END_MARKER)) == BaseRawDataHandler::STREAM_END_MARKER));
+               $isset = ((substr($data, 0, strlen(HandleableRawData::STREAM_START_MARKER)) == HandleableRawData::STREAM_START_MARKER) && (substr($data, -1 * strlen(HandleableRawData::STREAM_END_MARKER), strlen(HandleableRawData::STREAM_END_MARKER)) == HandleableRawData::STREAM_END_MARKER));
 
                // ... and return it
                return $isset;
index 44ce083b7af2806e379f41271473d446efbee121..8a3bf632e7ee6b565f11b3524b5d7101f215f2d1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Own namespace
-namespace CoreFramework\Client\Http;
+namespace Org\Mxchange\CoreFramework\Client\Http;
 
 /**
  * A HTTP client class
index 0d4f253d26c007d9cf5ea44b5e671785d497a8b3..b56b193f8985e1a66adbd3daefe1448b65b4c964 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Command;
+namespace Org\Shipsimu\Hub\Command;
 
 // Import framework stuff
-use CoreFramework\Command\BaseCommand;
-use CoreFramework\Command\Commandable;
-use CoreFramework\Controller\Controller;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Resolver\Command\CommandResolver;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Command\BaseCommand;
+use Org\Mxchange\CoreFramework\Command\Commandable;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A command for the 'apt-proxy client' routine
index 7b1ec9134a6e6b2556280fd6997e3001523bbdc3..78bde34658f1d8d4be7919096a472cad7295932c 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Command;
+namespace Org\Shipsimu\Hub\Command;
 
 // Import framework stuff
-use CoreFramework\Command\BaseCommand;
-use CoreFramework\Command\Commandable;
-use CoreFramework\Controller\Controller;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Resolver\Command\CommandResolver;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Command\BaseCommand;
+use Org\Mxchange\CoreFramework\Command\Commandable;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A command for the 'chat client' routine
index f58a1279fff7bf242d68a402e1c60370131bfcd7..fc0459c43035cc4600ba31a9b0915eec12006801 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Command;
+namespace Org\Shipsimu\Hub\Command;
 
 // Import framework stuff
-use CoreFramework\Command\BaseCommand;
-use CoreFramework\Command\Commandable;
-use CoreFramework\Controller\Controller;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Resolver\Command\CommandResolver;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Command\BaseCommand;
+use Org\Mxchange\CoreFramework\Command\Commandable;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A command for the 'crawler client' routine
index 81f87a17c92d948e1d35369ae3c3c0f0d02e1bbc..3537e5c29b022a4d9f113f80ec38a6fc9132fd09 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Command;
+namespace Org\Shipsimu\Hub\Command;
 
 // Import framework stuff
-use CoreFramework\Command\BaseCommand;
-use CoreFramework\Command\Commandable;
-use CoreFramework\Controller\Controller;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Resolver\Command\CommandResolver;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Command\BaseCommand;
+use Org\Mxchange\CoreFramework\Command\Commandable;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A command for the 'cruncher client' routine
index 14a4b5660aa37bdbb4855a42f38f1c277752da93..bae067d51ff280d225b069f140c79cce15a49387 100644 (file)
@@ -1,19 +1,19 @@
 <?php
 // Own namespace
-namespace Hub\Command;
+namespace Org\Shipsimu\Hub\Command;
 
 // Import application-specific stuff
-use Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
 
 // Import framework stuff
-use CoreFramework\Command\BaseCommand;
-use CoreFramework\Command\Commandable;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Controller\Controller;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Resolver\Command\CommandResolver;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Command\BaseCommand;
+use Org\Mxchange\CoreFramework\Command\Commandable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A command for the 'main' routine
index c13874bdeb134b2bc4d1df06ac2cc5cc1f73e23e..7e421aabf72db4b4d62d1751de91a5eec770fa90 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Command;
+namespace Org\Shipsimu\Hub\Command;
 
 // Import framework stuff
-use CoreFramework\Command\BaseCommand;
-use CoreFramework\Command\Commandable;
-use CoreFramework\Controller\Controller;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Resolver\Command\CommandResolver;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Command\BaseCommand;
+use Org\Mxchange\CoreFramework\Command\Commandable;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A command for the 'miner client' routine
index ff8d48379d989f16fc2dd26def5f08bb70126cf5..df027ec085fcc613cf1e8c02294d46cf08ba6309 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Command;
+namespace Org\Shipsimu\Hub\Command;
 
 // Import framework stuff
-use CoreFramework\Command\BaseCommand;
-use CoreFramework\Command\Commandable;
-use CoreFramework\Controller\Controller;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Resolver\Command\CommandResolver;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Command\BaseCommand;
+use Org\Mxchange\CoreFramework\Command\Commandable;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A command for the 'main' routine
index 6eec1dbd7bf2af6965cfe0b24d5b9cd6656cbc3c..2b634beda8595483e351da9045cb33253accc4d5 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Communicator;
+namespace Org\Shipsimu\Hub\Communicator;
 
 // Import hub-specific stuff
-use Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A general communicator class
@@ -67,6 +67,3 @@ class BaseCommunicator extends BaseHubSystem {
                $stateInstance->communicatorHasInitialized();
        }
 }
-
-// [EOF]
-?>
index 699af2d9f3bde8bb3c32691dcb49c673f07c53aa..9f9583e9505c5f8839d8a2e3afd928171325e0bd 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Communicator\Node;
+namespace Org\Shipsimu\Hub\Crawler\Communicator\Node;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A crawler->node communicator class
index 839e3ad54039efe802f47ac7c75a08abd09e8840..e392d667691065e104d8ce307f9c80389efd4109 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Miner\Communicator\Node;
+namespace Org\Shipsimu\Hub\Miner\Communicator\Node;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A miner->node communicator class
index a382772b8b515b60108ea4476dcb6119ef31c42b..1d621750ac2267b2af41221c872977469bfc89cb 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Network\Compressor\Package;
+namespace Org\Shipsimu\Hub\Network\Compressor\Package;
 
 // Import hub-specific stuff
-use Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
 // Import framework-specific stuff
-use CoreFramework\Compressor\Compressor;
+use Org\Mxchange\CoreFramework\Compressor\Compressor;
 
 /**
  * A NetworkPackageCompressor decorator class. This decorator can later be
index 85489ecd2f09b280312bcb8b89fb11dfb547f6b5..afb7321b9b3f25943ea75275d6b47dc36da2fa5b 100644 (file)
@@ -1,18 +1,18 @@
 <?php
 // Own namespace
-namespace Hub\Container;
+namespace Org\Shipsimu\Hub\Container;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Handler\Network\RawData\BaseRawDataHandler;
-use Hub\Generic\HubInterface;
-use Hub\Information\ShareableInfo;
-use Hub\Listener\Listenable;
-use Hub\Locator\Node\LocateableNode;
-use Hub\Pool\Poolable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Handler\Network\RawData\HandleableRawData;
+use Org\Shipsimu\Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Information\ShareableInfo;
+use Org\Shipsimu\Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Locator\Node\LocateableNode;
+use Org\Shipsimu\Hub\Pool\Poolable;
 
 // Import framework stuff
-use CoreFramework\Container\BaseContainer;
+use Org\Mxchange\CoreFramework\Container\BaseContainer;
 
 /**
  * A general hub container
@@ -80,8 +80,11 @@ class BaseHubContainer extends BaseContainer implements HubInterface {
         * @return      $isset  Whether start/end marker are set
         */
        public final function ifStartEndMarkersSet ($data) {
+               // Trace message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('HUB-CONTAINER: data()=%d - CALLED!', strlen($data)));
+
                // Determine it
-               $isset = ((substr($data, 0, strlen(BaseRawDataHandler::STREAM_START_MARKER)) == BaseRawDataHandler::STREAM_START_MARKER) && (substr($data, -1 * strlen(BaseRawDataHandler::STREAM_END_MARKER), strlen(BaseRawDataHandler::STREAM_END_MARKER)) == BaseRawDataHandler::STREAM_END_MARKER));
+               $isset = ((substr($data, 0, strlen(HandleableRawData::STREAM_START_MARKER)) == HandleableRawData::STREAM_START_MARKER) && (substr($data, -1 * strlen(HandleableRawData::STREAM_END_MARKER), strlen(HandleableRawData::STREAM_END_MARKER)) == HandleableRawData::STREAM_END_MARKER));
 
                // ... and return it
                return $isset;
index 2d7a90160f32ef0f438c4303d9f9e97aaae5e1f0..ada6d8e1489a74b785912d58cdc149aaa7a9f5e1 100644 (file)
@@ -1,30 +1,29 @@
 <?php
 // Own namespace
-namespace Hub\Container\Socket;
+namespace Org\Shipsimu\Hub\Container\Socket;
 
 // Import application-specific stuff
-use Hub\Container\BaseHubContainer;
-use Hub\Handler\Network\RawData\BaseRawDataHandler;
-use Hub\Factory\Network\Locator\UniversalNodeLocatorFactory;
-use Hub\Factory\Socket\SocketFactory;
-use Hub\Helper\Connection\BaseConnectionHelper;
-use Hub\Helper\Connection\ConnectionHelper;
-use Hub\Information\ShareableInfo;
-use Hub\Listener\BaseListener;
-use Hub\Listener\Listenable;
-use Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Container\BaseHubContainer;
+use Org\Shipsimu\Hub\Factory\Network\Locator\UniversalNodeLocatorFactory;
+use Org\Shipsimu\Hub\Factory\Socket\SocketFactory;
+use Org\Shipsimu\Hub\Helper\Connection\BaseConnectionHelper;
+use Org\Shipsimu\Hub\Helper\Connection\ConnectionHelper;
+use Org\Shipsimu\Hub\Information\ShareableInfo;
+use Org\Shipsimu\Hub\Listener\BaseListener;
+use Org\Shipsimu\Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Socket\InvalidSocketException;
-use CoreFramework\Socket\NoSocketErrorDetectedException;
-use CoreFramework\Socket\SocketBindingException;
-use CoreFramework\Socket\SocketConnectionException;
-use CoreFramework\Socket\SocketOperationException;
-use CoreFramework\Socket\UnsupportedSocketErrorHandlerException;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Socket\InvalidSocketException;
+use Org\Mxchange\CoreFramework\Socket\NoSocketErrorDetectedException;
+use Org\Mxchange\CoreFramework\Socket\SocketBindingException;
+use Org\Mxchange\CoreFramework\Socket\SocketConnectionException;
+use Org\Mxchange\CoreFramework\Socket\SocketOperationException;
+use Org\Mxchange\CoreFramework\Socket\UnsupportedSocketErrorHandlerException;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 // Import SPL stuff
 use \BadMethodCallException;
@@ -98,11 +97,18 @@ class SocketContainer extends BaseHubContainer implements StorableSocket, Visita
         * @param       $socketProtocol         Socket protocol
         * @param       $packageData            Raw package data
         * @return      $socketInstance         An instance of this Container class
+        * @throws      InvalidArgumentException        If socket type is not set in $packageData array
         */
        public static final function createSocketContainer ($socketResource, $socketProtocol, array $packageData) {
                // Trace message
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('SOCKET: socketResource=%s,socketProtocol=%s,packageData()=%d - CALLED!', $socketResource, $socketProtocol, count($packageData)));
-               /* DEBUG-PRINT: */ printf('[%s:%d]: packageData=%s', __METHOD__, __LINE__, print_r($packageData, TRUE));
+               //* DEBUG-PRINT: */ printf('[%s:%d]: packageData=%s', __METHOD__, __LINE__, print_r($packageData, TRUE));
+
+               // Socket type must always be there
+               if (!isset($packageData[StorableSocket::SOCKET_ARRAY_INDEX_TYPE])) {
+                       // Abort here
+                       throw new InvalidArgumentException(sprintf('Array packageData does not contain "%s".', StorableSocket::SOCKET_ARRAY_INDEX_TYPE));
+               } // END - if
 
                // Get a new instance
                $socketInstance = new SocketContainer();
@@ -774,6 +780,39 @@ class SocketContainer extends BaseHubContainer implements StorableSocket, Visita
                return $socketInstance;
        }
 
+       /**
+        * Reads (binary) data from socket instance
+        *
+        * @return      $rawData        Raw data being read
+        * @throws      InvalidSocketException  If the stored socket is not valid
+        */
+       public function readDataFromSocket () {
+               // Trace message
+               /* EXTREME-NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-SOCKET: CALLED!', strtoupper($this->getSocketProtocol())));
+
+               // Should be valid socket
+               if (!$this->isValidSocket()) {
+                       // Throw exception
+                       throw new InvalidSocketException(array($this, $this->getSocketResource()), self::EXCEPTION_INVALID_SOCKET);
+               } // END - if
+
+               // Debug message
+               /* EXTREME-NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-SOCKET: this->socketResource=%s', strtoupper($this->getSocketProtocol()), $this->getSocketResource()));
+
+               /*
+                * Read raw data from socket. If you change PHP_BINARY_READ to
+                * PHP_NORMAL_READ, this line will endless block. This script does only
+                * provide simultanous or faked threads, not real.
+                */
+               $rawData = socket_read($this->getSocketResource(), $this->getConfigInstance()->getConfigEntry('tcp_buffer_length'), PHP_BINARY_READ);
+
+               // Trace message
+               /* EXTREME-NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-SOCKET: rawData[%s]()=%d - EXIT!', strtoupper($this->getSocketProtocol()), gettype($rawData), strlen($rawData)));
+
+               // Return it
+               return $rawData;
+       }
+
        /**
         * Tries to identify the socket peer by calling socket_getpeer() and stores
         * it in package data array.
index 70b4f7267525d3eecdb0d5d7290180ed0e3116e4..af2ea7832ba81654e54ffc6e5a2ee5caf15736c6 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Controller;
+namespace Org\Shipsimu\Hub\Controller;
 
 // Import framework stuff
-use CoreFramework\Controller\BaseController;
-use CoreFramework\Controller\Controller;
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Resolver\Command\CommandResolver;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Controller\BaseController;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A console controller for the apt-proxy program.
index 06fb0a3a28ffbf41217c9a64fdfd668d069dda0c..e28cbb6ae10b3600cd39c599d7a2e158fa35cff7 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Controller;
+namespace Org\Shipsimu\Hub\Controller;
 
 // Import framework stuff
-use CoreFramework\Controller\BaseController;
-use CoreFramework\Controller\Controller;
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Resolver\Command\CommandResolver;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Controller\BaseController;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A console controller for the chat program.
index b1294f49c4dc30f2dd5dc89e90464b564a2b5635..1fed07578e4f0c685a9a217fea37d9536dd9e287 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Controller;
+namespace Org\Shipsimu\Hub\Controller;
 
 // Import framework stuff
-use CoreFramework\Controller\BaseController;
-use CoreFramework\Controller\Controller;
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Resolver\Command\CommandResolver;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Controller\BaseController;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A console controller for the crawler program.
index 523981f051e11ac7ed675ad1575d011233702f39..16a2a405981e3962aff28dd1261a1dbc6812ef5f 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Controller;
+namespace Org\Shipsimu\Hub\Controller;
 
 // Import framework stuff
-use CoreFramework\Controller\BaseController;
-use CoreFramework\Controller\Controller;
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Resolver\Command\CommandResolver;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Controller\BaseController;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A console controller for the cruncher, which is our very first hub
index bf0a624e41ba449253e9241995699e04eaa4e4a1..4bc3b58f0d93ac93a766c066fd35f257ea32d1a1 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Controller;
+namespace Org\Shipsimu\Hub\Controller;
 
 // Import framework stuff
-use CoreFramework\Controller\BaseController;
-use CoreFramework\Controller\Controller;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Resolver\Command\CommandResolver;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Controller\BaseController;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * The default controller with news for e.g. home or news page
index 9e624b951c96639ca2a4a3ebf268334a3d0380bc..a4d5c8f77dc85d18e08af055cdf4ea512055bba0 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Controller;
+namespace Org\Shipsimu\Hub\Controller;
 
 // Import framework stuff
-use CoreFramework\Controller\BaseController;
-use CoreFramework\Controller\Controller;
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Resolver\Command\CommandResolver;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Controller\BaseController;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A console controller for the crawler program.
index 25e949a74ebf1e51c9ed9738d6ae99074f796680..bc9ca93fb96eee9e66fc1be31d7e3253a834df0f 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Controller;
+namespace Org\Shipsimu\Hub\Controller;
 
 // Import framework stuff
-use CoreFramework\Controller\BaseController;
-use CoreFramework\Controller\Controller;
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Resolver\Command\CommandResolver;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Controller\BaseController;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A console controller for the "continued hashing miner".
index 7f8629f22fed9cb4b1f14bba7e5e7da1d030c054..3c1267a8559afc6ef3efe35ad9b6ae9168c2de45 100644 (file)
@@ -3,7 +3,7 @@
 namespace Hub\Crawler;
 
 // Import framework stuff
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A node ??? crawler
index ec1e885292e76dc62be12b1362247d869e532eb8..59fd0619c50b0a0a9c7586533814112f9a8f9d46 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Crawler;
+namespace Org\Shipsimu\Hub\Crawler;
 
 // Import hub-specific stuff
-use Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
 // Import framework stuff
-use CoreFramework\Registry\Registry;
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A general NodeCrawler class
index b2068733764bd916d52a9e0f18e1f882d77f877e..a783a12b17a897a3614050d6dd546fdeeedf441c 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Crawler;
+namespace Org\Shipsimu\Hub\Crawler;
 
 // Import framework stuff
-use CoreFramework\Controller\Controller;
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A node console crawler
index cc0e948ab70de10c23c7ec4547c3cce8593f0e14..143c8b454d63a9174a8d5d0729642c2ba2b66d96 100644 (file)
@@ -3,7 +3,7 @@
 namespace Hub\Cruncher;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A hub-cruncher class for the '???' mode
index b5b8abd18079cced4c5e66eb515ebd39a988c98b..e320039a2aa2679ef33279e5162d9294cab7e014 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Cruncher;
+namespace Org\Shipsimu\Hub\Cruncher;
 
 // Import hub-specific stuff
-use Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
 // Import framework stuff
-use CoreFramework\Database\Updateable;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Database\Updateable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A general hub cruncher class
index beca8241d2f3a6f0883531ea854cbafff893867c..53c9e0e836f4b033f12162cbd0877ebb403ffb5e 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Cruncher\Mcrypt;
+namespace Org\Shipsimu\Hub\Cruncher\Mcrypt;
 
 // Import framework stuff
-use CoreFramework\Controller\Controller;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A hub-mcrypt cruncher class
index 0afec33b0e4682269dce61d28bbaa9702ef96152..a4b12a7f737d06528eda2ee2a798b6fbaa51d491 100644 (file)
@@ -1,17 +1,17 @@
 <?php
 // Own namespace
-namespace Hub\Database\Frontend;
+namespace Org\Shipsimu\Hub\Database\Frontend;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Handler\Network\RawData\BaseRawDataHandler;
-use Hub\Generic\HubInterface;
-use Hub\Information\ShareableInfo;
-use Hub\Locator\Node\LocateableNode;
-use Hub\Pool\Poolable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Handler\Network\RawData\HandleableRawData;
+use Org\Shipsimu\Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Information\ShareableInfo;
+use Org\Shipsimu\Hub\Locator\Node\LocateableNode;
+use Org\Shipsimu\Hub\Pool\Poolable;
 
 // Import framework stuff
-use CoreFramework\Database\Frontend\BaseDatabaseWrapper;
+use Org\Mxchange\CoreFramework\Database\Frontend\BaseDatabaseWrapper;
 
 /**
  * A general hub database wrapper
@@ -79,8 +79,11 @@ class BaseHubDatabaseWrapper extends BaseDatabaseWrapper implements HubInterface
         * @return      $isset  Whether start/end marker are set
         */
        public final function ifStartEndMarkersSet ($data) {
+               // Trace message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('HUB-DATABASE-WRAPPER: data()=%d - CALLED!', strlen($data)));
+
                // Determine it
-               $isset = ((substr($data, 0, strlen(BaseRawDataHandler::STREAM_START_MARKER)) == BaseRawDataHandler::STREAM_START_MARKER) && (substr($data, -1 * strlen(BaseRawDataHandler::STREAM_END_MARKER), strlen(BaseRawDataHandler::STREAM_END_MARKER)) == BaseRawDataHandler::STREAM_END_MARKER));
+               $isset = ((substr($data, 0, strlen(HandleableRawData::STREAM_START_MARKER)) == HandleableRawData::STREAM_START_MARKER) && (substr($data, -1 * strlen(HandleableRawData::STREAM_END_MARKER), strlen(HandleableRawData::STREAM_END_MARKER)) == HandleableRawData::STREAM_END_MARKER));
 
                // ... and return it
                return $isset;
index f48f6e4a2ed0f2d8c1232ed9482287a8a405c299..594d4217b6bfb158223274931217e28d7d7d7d49 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Database\Frontend\Cruncher\Unit;
+namespace Org\Shipsimu\Hub\Database\Frontend\Cruncher\Unit;
 
 // Import application-specific stuff
-use Hub\Database\Frontend\BaseHubDatabaseWrapper;
+use Org\Shipsimu\Hub\Database\Frontend\BaseHubDatabaseWrapper;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A database wrapper for cruncher work/test units
index f6cac3c043e9546171c1f545b4ba5253a0482043..1e5d7e422d862444278a6ee55caede27c7313a86 100644 (file)
@@ -1,21 +1,21 @@
 <?php
 // Own namespace
-namespace Hub\Database\Frontend\Node\Dht;
+namespace Org\Shipsimu\Hub\Database\Frontend\Node\Dht;
 
 // Import application-specific stuff
-use Hub\Database\Frontend\BaseHubDatabaseWrapper;
-use Hub\Database\Frontend\Node\Information\NodeInformationDatabaseWrapper;
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Network\Package\NetworkPackage;
-use Hub\Node\BaseHubNode;
+use Org\Shipsimu\Hub\Database\Frontend\BaseHubDatabaseWrapper;
+use Org\Shipsimu\Hub\Database\Frontend\Node\Information\NodeInformationDatabaseWrapper;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Node\BaseHubNode;
 
 // Import framework stuff
-use CoreFramework\Bootstrap\FrameworkBootstrap;
-use CoreFramework\Criteria\Local\LocalSearchCriteria;
-use CoreFramework\Criteria\Storing\StoreableCriteria;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Handler\DataSet\HandleableDataSet;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
+use Org\Mxchange\CoreFramework\Criteria\Local\LocalSearchCriteria;
+use Org\Mxchange\CoreFramework\Criteria\Storing\StoreableCriteria;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Handler\DataSet\HandleableDataSet;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A database wrapper for distributed hash tables
index e7bc717ec60548e067c968efa023726b56782ded..0b3ef228ac1821f754d4e29e2c69fe11cf621d2b 100644 (file)
@@ -1,19 +1,19 @@
 <?php
 // Own namespace
-namespace Hub\Database\Frontend\Node\Information;
+namespace Org\Shipsimu\Hub\Database\Frontend\Node\Information;
 
 // Import application-specific stuff
-use Hub\Database\Frontend\BaseHubDatabaseWrapper;
-use Hub\Database\Frontend\Node\NodeInformationWrapper;
-use Hub\Node\BaseHubNode;
-use Hub\Helper\Node\NodeHelper;
+use Org\Shipsimu\Hub\Database\Frontend\BaseHubDatabaseWrapper;
+use Org\Shipsimu\Hub\Database\Frontend\Node\NodeInformationWrapper;
+use Org\Shipsimu\Hub\Node\BaseHubNode;
+use Org\Shipsimu\Hub\Helper\Node\NodeHelper;
 
 // Import framework stuff
-use CoreFramework\Bootstrap\FrameworkBootstrap;
-use CoreFramework\Criteria\Local\LocalSearchCriteria;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
+use Org\Mxchange\CoreFramework\Criteria\Local\LocalSearchCriteria;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
 
 /**
  * A database wrapper for node informations
index 9d015e54277f28cf52aa85817f20591f5fc4cad6..4741948e7b45f0f369edbeee27955c6dcc3c65a9 100644 (file)
@@ -1,21 +1,21 @@
 <?php
 // Own namespace
-namespace Hub\Database\Frontend\Node\PeerState;
+namespace Org\Shipsimu\Hub\Database\Frontend\Node\PeerState;
 
 // Import application-specific sutff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Database\Frontend\BaseHubDatabaseWrapper;
-use Hub\Helper\Connection\ConnectionHelper;
-use Hub\Network\Package\NetworkPackage;
-use Hub\LookupTable\Lookupable;
-use Hub\State\Peer\Lookup\LookupablePeerState;
-use Hub\State\Peer\PeerStateable;
-use Hub\Tools\HubTools;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Database\Frontend\BaseHubDatabaseWrapper;
+use Org\Shipsimu\Hub\Helper\Connection\ConnectionHelper;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\LookupTable\Lookupable;
+use Org\Shipsimu\Hub\State\Peer\Lookup\LookupablePeerState;
+use Org\Shipsimu\Hub\State\Peer\PeerStateable;
+use Org\Shipsimu\Hub\Tools\HubTools;
 
 // Import framework stuff
-use CoreFramework\Criteria\Local\LocalSearchCriteria;
-use CoreFramework\Criteria\Storing\StoreableCriteria;
-use CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Criteria\Local\LocalSearchCriteria;
+use Org\Mxchange\CoreFramework\Criteria\Storing\StoreableCriteria;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
 
 /**
  * A database wrapper for peer state lookups
@@ -88,7 +88,7 @@ class PeerStateLookupDatabaseWrapper extends BaseHubDatabaseWrapper implements L
         */
        private function getSenderSearchInstanceFromPackageData (array $packageData) {
                // Get the instance
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PEER-STATE-DATABASE-WRAPPER: Searching for sender ' . $packageData[NetworkPackage::PACKAGE_DATA_SENDER_ADDRESS]);
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PEER-STATE-DATABASE-WRAPPER: Searching for sender ' . $packageData[NetworkPackage::PACKAGE_DATA_SENDER_ADDRESS]);
                $searchInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
 
                // Add 'sender' as the peer's IP address
@@ -108,7 +108,7 @@ class PeerStateLookupDatabaseWrapper extends BaseHubDatabaseWrapper implements L
         */
        public function isSenderNewPeer (array $packageData, StoreableCriteria $dataSetInstance = NULL) {
                // Debug message
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PEER-STATE-DATABASE-WRAPPER: packageData()=' . count($packageData) . ' - CALLED!');
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PEER-STATE-DATABASE-WRAPPER: packageData()=' . count($packageData) . ' - CALLED!');
 
                // Is the package valid?
                if (!isset($packageData[NetworkPackage::PACKAGE_DATA_SENDER_ADDRESS])) {
@@ -129,11 +129,11 @@ class PeerStateLookupDatabaseWrapper extends BaseHubDatabaseWrapper implements L
                $entries = $this->doSelectCountByCriteria($searchInstance, array(self::DB_COLUMN_PEER_SESSION_ID => TRUE));
 
                // Is it there?
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PEER-STATE-DATABASE-WRAPPER: entries=' . $entries);
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PEER-STATE-DATABASE-WRAPPER: entries=' . $entries);
                $isNewPeer = ($entries != 1);
 
                // Return the result
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PEER-STATE-DATABASE-WRAPPER: isNewPeer=' . intval($isNewPeer) . ' - EXIT!');
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PEER-STATE-DATABASE-WRAPPER: isNewPeer=' . intval($isNewPeer) . ' - EXIT!');
                return $isNewPeer;
        }
 
@@ -180,7 +180,7 @@ class PeerStateLookupDatabaseWrapper extends BaseHubDatabaseWrapper implements L
                $this->queryInsertDataSet($dataSetInstance, array(self::DB_COLUMN_PEER_SESSION_ID => TRUE));
 
                // Debug message
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PEER-STATE-DATABASE-WRAPPER: Peer ' . $packageData[NetworkPackage::PACKAGE_DATA_SENDER_ADDRESS] . ' has been registered.');
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PEER-STATE-DATABASE-WRAPPER: Peer ' . $packageData[NetworkPackage::PACKAGE_DATA_SENDER_ADDRESS] . ' has been registered.');
        }
 
        /**
@@ -223,7 +223,7 @@ class PeerStateLookupDatabaseWrapper extends BaseHubDatabaseWrapper implements L
                }
 
                // Debug message
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PEER-STATE-DATABASE-WRAPPER: Peer ' . $packageData[NetworkPackage::PACKAGE_DATA_SENDER_ADDRESS] . ' has been registered/updated with state ' . $stateInstance->getStateName());
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PEER-STATE-DATABASE-WRAPPER: Peer ' . $packageData[NetworkPackage::PACKAGE_DATA_SENDER_ADDRESS] . ' has been registered/updated with state ' . $stateInstance->getStateName());
        }
 
        /**
@@ -247,7 +247,7 @@ class PeerStateLookupDatabaseWrapper extends BaseHubDatabaseWrapper implements L
         */
        public function isSamePeerState (ConnectionHelper $helperInstance, array $packageData) {
                // Debug message
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PEER-STATE-DATABASE-WRAPPER: State ' . $helperInstance->getPrintableState() . ' needs to be checked it has changed ...');
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PEER-STATE-DATABASE-WRAPPER: State ' . $helperInstance->getPrintableState() . ' needs to be checked it has changed ...');
 
                // Now get the search instance from given package data
                $searchInstance = $this->getSenderSearchInstanceFromPackageData($packageData);
@@ -262,7 +262,7 @@ class PeerStateLookupDatabaseWrapper extends BaseHubDatabaseWrapper implements L
                $rowData = $resultInstance->current();
 
                // Debug message
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PEER-STATE-DATABASE-WRAPPER: rowData[' . gettype($rowData) . ']=' . print_r($rowData, TRUE));
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PEER-STATE-DATABASE-WRAPPER: rowData[' . gettype($rowData) . ']=' . print_r($rowData, TRUE));
 
                // Assert on important elements
                assert(isset($rowData[self::DB_COLUMN_PEER_STATE]));
@@ -271,7 +271,7 @@ class PeerStateLookupDatabaseWrapper extends BaseHubDatabaseWrapper implements L
                $isSamePeerState = ($rowData[self::DB_COLUMN_PEER_STATE] == $helperInstance->getPrintableState());
 
                // Debug message
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PEER-STATE-DATABASE-WRAPPER: state in database: ' . $rowData[self::DB_COLUMN_PEER_STATE] . ', new state: ' . $helperInstance->getPrintableState() . ',isSamePeerState=' . intval($isSamePeerState));
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PEER-STATE-DATABASE-WRAPPER: state in database: ' . $rowData[self::DB_COLUMN_PEER_STATE] . ', new state: ' . $helperInstance->getPrintableState() . ',isSamePeerState=' . intval($isSamePeerState));
 
                // Return it
                return $isSamePeerState;
index bb2263ccecfbd361c2a0372568db5ab74143ef9b..f6d801b35fe19a861ef39093b1ac35e0ac679102 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Decoder;
+namespace Org\Shipsimu\Hub\Decoder;
 
 // Import hub-specific stuff
-use Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
 /**
  * A general Decoder class
index 6fce31941a08dcefe90c07b111276c4447d981ba..ebfa32de1000bfad6d8eeb3ab27997b80d995d23 100644 (file)
@@ -1,18 +1,18 @@
 <?php
 // Own namespace
-namespace Hub\Network\Decoder\Package;
+namespace Org\Shipsimu\Hub\Network\Decoder\Package;
 
 // Import application-specific stuff
-use Hub\Decoder\BaseDecoder;
-use Hub\Decoder\Decodeable;
-use Hub\Factory\Discovery\Package\PackageDiscoveryFactory;
-use Hub\Factory\Network\NetworkPackageFactory;
-use Hub\Handler\Network\RawData\Chunks\ChunkHandler;
-use Hub\Handler\Network\RawData\Chunks\HandleableChunks;
-use Hub\Network\Package\NetworkPackage;
+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\Network\NetworkPackageFactory;
+use Org\Shipsimu\Hub\Handler\Network\RawData\Chunks\ChunkHandler;
+use Org\Shipsimu\Hub\Handler\Network\RawData\Chunks\HandleableChunks;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A Package decoder class
index 6a44c90e1cc5f29c1b9438b294b8ab30585f63c5..99bfe8de8bce3a387114246c2a059572d525f5dd 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Dht;
+namespace Org\Shipsimu\Hub\Dht;
 
 // Import hub-specific stuff
-use Hub\Factory\State\Dht\DhtStateFactory;
-use Hub\Dht\Distributable;
-use Hub\Generic\BaseHubSystem;
-use Hub\Helper\Dht\HelpableDht;
+use Org\Shipsimu\Hub\Factory\State\Dht\DhtStateFactory;
+use Org\Shipsimu\Hub\Dht\Distributable;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Helper\Dht\HelpableDht;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
 
 /**
  * A general DHT class
index ef6de49c65afd5bcf25cdf8b33257d38fcf5e327..5f44b6cfd3c48fc0693ae7f533aedef7b091b0e9 100644 (file)
@@ -1,17 +1,17 @@
 <?php
 // Own namespace
-namespace Hub\Dht\Node;
+namespace Org\Shipsimu\Hub\Dht\Node;
 
 // Import application-specific stuff
-use Hub\Dht\BaseDht;
-use Hub\Dht\Distributable;
-use Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Dht\BaseDht;
+use Org\Shipsimu\Hub\Dht\Distributable;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
 // Import framework stuff
-use CoreFramework\Factory\Database\Wrapper\DatabaseWrapperFactory;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Handler\DataSet\HandleableDataSet;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Factory\Database\Wrapper\DatabaseWrapperFactory;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Handler\DataSet\HandleableDataSet;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A Node DHT facade class
index c429b1b090e8a50e445c1bb614bfd06a1ee1a42a..871f724f754d78f3adfc5aa9cdc062df7ebabad7 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Discovery\Node;
+namespace Org\Shipsimu\Hub\Discovery\Node;
 
 // Import framework stuff
-use CoreFramework\Discovery\BaseDiscovery;
-use CoreFramework\Discovery\Discoverable;
-use CoreFramework\Generic\UnsupportedOperationException;
-use CoreFramework\Helper\Template\HelpableTemplate;
-use CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Discovery\BaseDiscovery;
+use Org\Mxchange\CoreFramework\Discovery\Discoverable;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Helper\Template\HelpableTemplate;
+use Org\Mxchange\CoreFramework\Request\Requestable;
 
 /**
  * A general node discovery class
index be46013b55ac1fb9e77dfb19c345b1171b850ec1..348a2d86874c2b2971649adc5d81fb55b08bccca 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Discovery\Locator;
+namespace Org\Shipsimu\Hub\Discovery\Locator;
 
 // Import application-specific stuff
-use Hub\Discovery\Node\BaseNodeDiscovery;
-use Hub\Factory\Resolver\Protocol\ProtocolResolverFactory;
-use Hub\Helper\Node\NodeHelper;
+use Org\Shipsimu\Hub\Discovery\Node\BaseNodeDiscovery;
+use Org\Shipsimu\Hub\Factory\Resolver\Protocol\ProtocolResolverFactory;
+use Org\Shipsimu\Hub\Helper\Node\NodeHelper;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A UniversalNodeLocator discovery class
index 1a1448ed8c0047c89a56aeadac4bb88f612c0b9c..0bc94f3a2e86a13eb5178eceb9a5cb129f6d7607 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Discovery\Protocol;
+namespace Org\Shipsimu\Hub\Discovery\Protocol;
 
 // Import application-specific stuff
-use Hub\Discovery\Node\BaseNodeDiscovery;
-use Hub\Factory\Tag\Package\PackageTagsFactory;
-use Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Discovery\Node\BaseNodeDiscovery;
+use Org\Shipsimu\Hub\Factory\Tag\Package\PackageTagsFactory;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A Protocol discovery class
index 462ffc902cc4a5089aee9bd9c82733aa500032bb..b58ae2ef5a8ea2cbef2a6653108b6284d6ccb6ff 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Discovery\Recipient;
+namespace Org\Shipsimu\Hub\Discovery\Recipient;
 
 // Import framework-specific stuff
-use Hub\Discovery\Node\BaseNodeDiscovery;
-use Hub\Discovery\Recipient\DiscoverableRecipient;
-use Hub\Factory\Lists\Recipient\RecipientListFactory;
+use Org\Shipsimu\Hub\Discovery\Node\BaseNodeDiscovery;
+use Org\Shipsimu\Hub\Discovery\Recipient\DiscoverableRecipient;
+use Org\Shipsimu\Hub\Factory\Lists\Recipient\RecipientListFactory;
 
 /**
  * A PackageRecipient discovery class
index ac24c3830190dd113479e684de224f06aa876188..e2e6c5a76b9664667350bd0c55af85cecac44709 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Discovery\Recipient\Dht;
+namespace Org\Shipsimu\Hub\Discovery\Recipient\Dht;
 
 // Import application-specific stuff
-use Hub\Discovery\Recipient\BaseRecipientDiscovery;
-use Hub\Factory\Dht\DhtObjectFactory;
+use Org\Shipsimu\Hub\Discovery\Recipient\BaseRecipientDiscovery;
+use Org\Shipsimu\Hub\Factory\Dht\DhtObjectFactory;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A DhtRecipient discovery class
index bd6de781cddc6368709cd584de9ab2b6ce1a0fc4..88fa6a0f7790fb5a39edc3fec4d3d8105f867961 100644 (file)
@@ -1,19 +1,19 @@
 <?php
 // Own namespace
-namespace Hub\Discovery\Network\Recipient;
+namespace Org\Shipsimu\Hub\Discovery\Network\Recipient;
 
 // Import hub-specific sutff
-use Hub\Discovery\Recipient\BaseRecipientDiscovery;
-use Hub\Discovery\Recipient\Node\DiscoverableNodeRecipient;
-use Hub\Factory\Handler\Protocol\ProtocolHandlerFactory;
-use Hub\Network\Package\NetworkPackage;
-use Hub\Node\Data\InvalidSessionIdException;
-use Hub\Tools\HubTools;
+use Org\Shipsimu\Hub\Discovery\Recipient\BaseRecipientDiscovery;
+use Org\Shipsimu\Hub\Discovery\Recipient\Node\DiscoverableNodeRecipient;
+use Org\Shipsimu\Hub\Factory\Handler\Protocol\ProtocolHandlerFactory;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Node\Data\InvalidSessionIdException;
+use Org\Shipsimu\Hub\Tools\HubTools;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Generic\FrameworkException;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A PackageRecipient discovery class
index 71a808d25fe3bf56c33023f67a8bd3694fd4ef8c..cdbcb42dbea3237b754ef4d02af26e980d9f04e5 100644 (file)
@@ -1,25 +1,25 @@
 <?php
 // Own namespace
-namespace Hub\Network\Discovery\Socket;
+namespace Org\Shipsimu\Hub\Network\Discovery\Socket;
 
 // Import hub-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Discovery\Recipient\BaseRecipientDiscovery;
-use Hub\Discovery\Protocol\ProtocolDiscovery;
-use Hub\Discovery\Socket\DiscoverableSocket;
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Factory\Socket\SocketFactory;
-use Hub\Generic\BaseHubSystem;
-use Hub\Handler\Protocol\HandleableProtocol;
-use Hub\Listener\Listenable;
-use Hub\Network\Package\NetworkPackage;
-use Hub\Resolver\State\Peer\PeerStateResolver;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Discovery\Recipient\BaseRecipientDiscovery;
+use Org\Shipsimu\Hub\Discovery\Protocol\ProtocolDiscovery;
+use Org\Shipsimu\Hub\Discovery\Socket\DiscoverableSocket;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Factory\Socket\SocketFactory;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Handler\Protocol\HandleableProtocol;
+use Org\Shipsimu\Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Resolver\State\Peer\PeerStateResolver;
 
 // Import framework stuff
-use CoreFramework\Generic\NullPointerException;
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Socket\InvalidSocketException;
+use Org\Mxchange\CoreFramework\Generic\NullPointerException;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Socket\InvalidSocketException;
 
 // Import SPL stuff
 use \LogicException;
@@ -141,26 +141,32 @@ class PackageSocketDiscovery extends BaseRecipientDiscovery implements Discovera
         * matching socket resource for that protocol.
         *
         * @param       $packageData            Raw package data array
-        * @param       $connectionType         Type of connection, can be 'incoming' or 'outgoing', *NEVER* 'server'!
+        * @param       $connectionType         Type of connection, can be either 'incoming' or 'outgoing', but *NEVER* 'server'!
         * @return      $socketResource         A valid socket resource or FALSE if an error occured
         * @throws      NoListGroupException    If the procol group is not found in peer list
         * @throws      NullPointerException    If listenerInstance is NULL
         * @throws      InvalidUnlException             If the provided UNL cannot be validated by the protocol handler
+        * @throws      InvalidArgumentException        If one of the parameters are not valid
         * @throws      LogicException  If the discovered listener instance has no pool set
         */
        public function discoverSocket (array $packageData, $connectionType) {
                // Debug message
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PACKAGE-SOCKET-DISOVERY: connectionType=' . $connectionType . ' - CALLED!');
 
-               // Assert on type and recipient
-               assert($connectionType != StorableSocket::CONNECTION_TYPE_SERVER);
-               assert(isset($packageData[NetworkPackage::PACKAGE_DATA_RECIPIENT]));
+               // Make sure all parameters are valid
+               if (!isset($packageData[NetworkPackage::PACKAGE_DATA_RECIPIENT])) {
+                       // Abort here
+                       throw new InvalidArgumentException(sprintf('Array packageData(%d) does not contain field "%s".', count($packageData), NetworkPackage::PACKAGE_DATA_RECIPIENT));
+               } elseif (($connectionType != StorableSocket::CONNECTION_TYPE_INCOMING) && ($connectionType != StorableSocket::CONNECTION_TYPE_OUTGOING)) {
+                       // Abort here
+                       throw new InvalidArgumentException(sprintf('connectionType=%s is whether "%s" nor "%s".', $connectionType, StorableSocket::CONNECTION_TYPE_INCOMING, StorableSocket::CONNECTION_TYPE_OUTGOING));
+               }
 
                // Determine protocol instance
                $protocolInstance = ProtocolDiscovery::determineProtocolByPackageData($packageData);
 
                // Debug message
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('protocolInstance=' . $protocolInstance . ',packageData=' . print_r($packageData, TRUE));
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('protocolInstance=' . $protocolInstance . ',packageData=' . print_r($packageData, TRUE));
 
                // Is it valid?
                assert($protocolInstance instanceof HandleableProtocol);
@@ -175,7 +181,7 @@ class PackageSocketDiscovery extends BaseRecipientDiscovery implements Discovera
                $listenerInstance = $this->discoverListenerInstance($protocolInstance, $packageData);
 
                // Debug message
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PACKAGE-SOCKET-DISCOVERY: listenerInstance=' . $listenerInstance . ',packageData=' . print_r($packageData, TRUE));
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PACKAGE-SOCKET-DISCOVERY: listenerInstance=' . $listenerInstance . ',packageData=' . print_r($packageData, TRUE));
 
                // If there is no listener who wants to have that package, we simply drop it here
                if (is_null($listenerInstance)) {
@@ -231,7 +237,7 @@ class PackageSocketDiscovery extends BaseRecipientDiscovery implements Discovera
                }
 
                // And return it
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PACKAGE-SOCKET-DISCOVERY: socketResource=' . $socketInstance->getSocketResource() . ',packageData=' . print_r($packageData, TRUE));
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PACKAGE-SOCKET-DISCOVERY: socketResource=' . $socketInstance->getSocketResource() . ',packageData=' . print_r($packageData, TRUE));
                return $socketInstance;
        }
 
index 989d38b2150af7a7bce659620e9813c8240fe902..a944c6070c3eaca6a9f78775f801b546762aaa70 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Factory\FilterChain\Package;
+namespace Org\Shipsimu\Hub\Factory\FilterChain\Package;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for network packages
index b24ca6dcb45742475c32edb0b59c38322646a06b..74e3571a10d2e7f7e89b308698ce7b41d44058a9 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Handler\Chunk;
+namespace Org\Shipsimu\Hub\Factory\Handler\Chunk;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for chunk handler
index 8d01b5494dd575625d74ca563d9082ba0db3bac2..30996871764b9db243c970069b30db40cd369da6 100644 (file)
@@ -3,8 +3,8 @@
 namespace Hub\Factory\;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for !!!
index 734a070d40b31c634d2fa4e1508fe5e5aba2ba44..07314c411f68c0f55b0233908f14782884601e07 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Client;
+namespace Org\Shipsimu\Hub\Factory\Client;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Handler\Protocol\HandleableProtocol;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Handler\Protocol\HandleableProtocol;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * An object factory for clients
index d718fa67d9fa4bd90677de903fafd5bbb2fc5540..9940759552a488f7f65b2d53f37b4eb724a10130 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Communicator;
+namespace Org\Shipsimu\Hub\Factory\Communicator;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for communicator
index c55d505bf42b761e18442359d59db4ff01246d4a..01f62500f30582098c0e98c64f3ba1fd22dfb03c 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Decoder;
+namespace Org\Shipsimu\Hub\Factory\Decoder;
 
 // Import application-specific stuff
-use Hub\Factory\Handler\Chunk\ChunkHandlerFactory;
-use Hub\Handler\Network\RawData\Chunks\ChunkHandler;
+use Org\Shipsimu\Hub\Factory\Handler\Chunk\ChunkHandlerFactory;
+use Org\Shipsimu\Hub\Handler\Network\RawData\Chunks\ChunkHandler;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for Decodeable objects
index d30d7b8ea16bedf44f904a3d226941ddda50dcc9..7dc5f73487e96a389a9de0076d16c6caed9bf386 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Dht;
+namespace Org\Shipsimu\Hub\Factory\Dht;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for DHT objects
index 9d91568489f9b86e97f07727945cd5e1581839a9..b2a7779bd9c9f5565c181d156b43e05f4ad7cc75 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Discovery\Package;
+namespace Org\Shipsimu\Hub\Factory\Discovery\Package;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for package discovery
index 6ae971b2fd32a43ddd32ea5527cc2009a0946b10..eef385723ac2b108ab0c05edb759d941cc6fa134 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Discovery\Socket;
+namespace Org\Shipsimu\Hub\Factory\Discovery\Socket;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for socket discovery
index d89945bb23dbeb31187dff9b68b7824b1baca900..3a55463c50ce23b3cf583059a282e86f4b943ddd 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Handler\Message;
+namespace Org\Shipsimu\Hub\Factory\Handler\Message;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for message type handlers
index 392efe55ea382eeab7f0b99440c143a1b3ad7459..a4ff9a8b127749654aefd6ed83d1a9832eced07c 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Handler\Protocol;
+namespace Org\Shipsimu\Hub\Factory\Handler\Protocol;
 
 // Import application-specific stuff
-use Hub\Discovery\Protocol\ProtocolDiscovery;
-use Hub\Helper\HubHelper;
+use Org\Shipsimu\Hub\Discovery\Protocol\ProtocolDiscovery;
+use Org\Shipsimu\Hub\Helper\HubHelper;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for protocol handlers
index 5f4f1e9e7c47bf351e2c1761121b19b4a0d56fa1..4e318e2dd454a705a36af807305f96d852c118e7 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Information\Connection;
+namespace Org\Shipsimu\Hub\Factory\Information\Connection;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for ShareableInfo
@@ -47,8 +47,11 @@ class ConnectionInfoFactory extends ObjectFactory {
         * @return      $infoInstance   An instance of a ShareableInfo class
         */
        public static final function createConnectionInfoInstance ($protocolName, $type) {
+               // Trace message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-INFO-FACTORY: protocolName=%s,type=%s - CALLED!', $protocolName, $type));
+
                // Generate key
-               $key = 'connection_info_' . $protocolName . '_' . $type;
+               $key = sprintf('connection_info_%s_%s', $protocolName, $type);
 
                // If there is no info?
                if (Registry::getRegistry()->instanceExists($key)) {
@@ -56,16 +59,17 @@ class ConnectionInfoFactory extends ObjectFactory {
                        $infoInstance = Registry::getRegistry()->getInstance($key);
                } else {
                        // Get the info instance
-                       $infoInstance = self::createObjectByConfiguredName('connection_info_class');
+                       $infoInstance = self::createObjectByConfiguredName('connection_info_class', array($type));
 
                        // Add it to the registry
                        Registry::getRegistry()->addInstance($key, $infoInstance);
                }
 
+               // Trace message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-INFO-FACTORY: infoInstance=%s - EXIT!', $infoInstance->__toString()));
+
                // Return the instance
                return $infoInstance;
        }
-}
 
-// [EOF]
-?>
+}
index 3ecd4e097d21bf662f68afe4e5d9a34aa324022b..f94169689a5b91d599ded28b88b2a4be55112f1d 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Lists\Recipient;
+namespace Org\Shipsimu\Hub\Factory\Lists\Recipient;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for recipient lists
index e4fab052e77d0c51ae2d4aba160f7eb7a0a190c9..01a655fed29416e46f8260e1c5aea1159c4badcc 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Network\Locator;
+namespace Org\Shipsimu\Hub\Factory\Network\Locator;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for LocateableNode
index c051e99641c522b9023d7bb13a81d9960c39adce..383c89c5da23955744d91bf31291c5526c2e1139 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Node;
+namespace Org\Shipsimu\Hub\Factory\Node;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A factory class for nodes
@@ -72,7 +72,7 @@ class NodeObjectFactory extends ObjectFactory {
 
                        // Now convert the node-mode in a class name
                        $className = sprintf(
-                               'Hub\Node\%s\Hub%sNode',
+                               'Org\Shipsimu\Hub\Node\%s\Hub%sNode',
                                $factoryInstance->convertToClassName($nodeMode),
                                $factoryInstance->convertToClassName($nodeMode)
                        );
index 904837f8b1c488b509c9cdcfb2030679bab00fa0..addaf6ea98d27a73363946f91701f553c75a4d28 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Assembler\Package;
+namespace Org\Shipsimu\Hub\Factory\Assembler\Package;
 
 // Import application-specific stuff
-use Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for package assembler
index e72708f6c863f8fa56e9a74e287890725acdc8a6..c227d3f9871f4f350b24cfcdbbff4e833bbdc88b 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Network;
+namespace Org\Shipsimu\Hub\Factory\Network;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for network packages
index d243422af1c4935dadbc7f86c42d6f425a2f8483..a6be051e1b6347ea6d2fb6d397ee25d01107b1e7 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Fragmenter;
+namespace Org\Shipsimu\Hub\Factory\Fragmenter;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for fragmenter
index c711d2e122f6edaf776bba10750658034f030f5a..5430763b0ad5405e7c6d201c314aac3ea4afdc6d 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Producer;
+namespace Org\Shipsimu\Hub\Factory\Producer;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for producer
index 3854329d25ad7b2a505c0c4aa48ca5f0382407ab..6304115a6529ef348edd16aba15e0070e150b6de 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Registry\Object;
+namespace Org\Shipsimu\Hub\Factory\Registry\Object;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for network packages
index 9034f83a38a8b625f6c1874cd86fd9bfea7a599d..cca5552097226ad3a06bd4c57d8d1b729a1afd6c 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Resolver\Protocol;
+namespace Org\Shipsimu\Hub\Factory\Resolver\Protocol;
 
 // Import framework stuff
-use CoreFramework\Configuration\FrameworkConfiguration;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for ProtocolResolver
@@ -47,7 +47,7 @@ class ProtocolResolverFactory extends ObjectFactory {
         */
        public static final function createResolverFromConfiguredProtocol () {
                // Get the configured protocol
-               $protocolName = FrameworkConfiguration::getSelfInstance()->getConfigEntry('hub_communication_protocol_type');
+               $protocolName = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('hub_communication_protocol_type');
 
                // If there is no handler?
                if (Registry::getRegistry()->instanceExists($protocolName . '_protocol_resolver')) {
index 21cd7fffbe650dbab85f1f0d07629e43e70d0bd2..2112dbe78f74cbaba6e6e55c5b6169160ef302bc 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Scanner;
+namespace Org\Shipsimu\Hub\Factory\Scanner;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Task\Taskable;
 
 /**
  * A factory class for scanners
index c299bee969d8ecb352d1ce704c4711f55e0433c1..c527163336f2027749b08369d5f16acf9ec77ab9 100644 (file)
@@ -1,24 +1,24 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Socket;
+namespace Org\Shipsimu\Hub\Factory\Socket;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Handler\Protocol\HandleableProtocol;
-use Hub\Listener\BaseListener;
-use Hub\Listener\Listenable;
-use Hub\Network\Package\NetworkPackage;
-use Hub\Pool\Poolable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Handler\Protocol\HandleableProtocol;
+use Org\Shipsimu\Hub\Listener\BaseListener;
+use Org\Shipsimu\Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Pool\Poolable;
 
 // Import framework stuff
-use CoreFramework\Bootstrap\FrameworkBootstrap;
-use CoreFramework\Configuration\FrameworkConfiguration;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Socket\InvalidSocketException;
+use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Socket\InvalidSocketException;
 
 // Import SPL stuff
 use \LogicException;
+use \SplFileInfo;
 
 /**
  * A socket factory class
@@ -80,7 +80,7 @@ class SocketFactory extends ObjectFactory {
                        //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('SOCKET-FACTORY: Using socket ' . $socketInstance->getSocketResource() . '(' . gettype($socketInstance->getSocketResource()) . ') from registry.');
                } else {
                        // Construct configuration entry for object factory and get it
-                       $className = FrameworkConfiguration::getSelfInstance()->getConfigEntry($protocolInstance->getProtocolName() . '_connection_helper_class');
+                       $className = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry($protocolInstance->getProtocolName() . '_connection_helper_class');
 
                        // Debug message
                        //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('SOCKET-FACTORY: Going to use class ' . $className . ' for creating a socket resource ...');
@@ -110,8 +110,11 @@ class SocketFactory extends ObjectFactory {
         * @throws      InvalidSocketException  If the socket cannot be completed
         */
        public static final function createListenFileSocket (Listenable $listenerInstance) {
+               // Create SplFileInfo
+               $fileInfo = new SplFileInfo($listenerInstance->getConfigInstance()->getConfigEntry('ipc_socket_file_name'));
+
                // Create file name
-               $socketFile = self::createTempPathForFile($listenerInstance->getConfigInstance()->getConfigEntry('ipc_socket_file_name'));
+               $socketFile = self::createTempPathForFile($fileInfo);
 
                // Debug message
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('SOCKET-FACTORY: socketFile=' . $socketFile . ' ...');
@@ -123,6 +126,7 @@ class SocketFactory extends ObjectFactory {
                $packageData = array(
                        StorableSocket::SOCKET_ARRAY_INDEX_FILE => $socketFile,
                        '__fake_port' => '0',
+                       StorableSocket::SOCKET_ARRAY_INDEX_TYPE => StorableSocket::CONNECTION_TYPE_SERVER,
                );
 
                // Init main socket
@@ -204,6 +208,9 @@ class SocketFactory extends ObjectFactory {
                // Debug message
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('SOCKET-FACTORY: Created socket[' . gettype($socketResource) . ']=' . $socketResource . '.');
 
+               // Add socket type 'outgoing' to package data
+               $packageData[StorableSocket::SOCKET_ARRAY_INDEX_TYPE] = StorableSocket::CONNECTION_TYPE_SERVER;
+
                // Construct container class, this won't be reached if an exception is thrown
                $socketInstance = ObjectFactory::createObjectByConfiguredName('socket_container_class', array($socketResource, StorableSocket::SOCKET_PROTOCOL_TCP, $packageData));
 
@@ -266,6 +273,7 @@ class SocketFactory extends ObjectFactory {
                $packageData = array(
                        StorableSocket::SOCKET_ARRAY_INDEX_ADDRESS => $listenerInstance->getListenAddress(),
                        StorableSocket::SOCKET_ARRAY_INDEX_PORT    => $listenerInstance->getListenPort(),
+                       StorableSocket::SOCKET_ARRAY_INDEX_TYPE    => StorableSocket::CONNECTION_TYPE_SERVER,
                );
 
                // Create socket instance
@@ -340,6 +348,7 @@ class SocketFactory extends ObjectFactory {
                $packageData = array(
                        StorableSocket::SOCKET_ARRAY_INDEX_ADDRESS => $listenerInstance->getListenAddress(),
                        StorableSocket::SOCKET_ARRAY_INDEX_PORT    => $listenerInstance->getListenPort(),
+                       StorableSocket::SOCKET_ARRAY_INDEX_TYPE    => StorableSocket::CONNECTION_TYPE_SERVER,
                );
 
                // Create socket instance
@@ -464,6 +473,7 @@ class SocketFactory extends ObjectFactory {
                $packageData = array(
                        StorableSocket::SOCKET_ARRAY_INDEX_ADDRESS => 'invalid',
                        StorableSocket::SOCKET_ARRAY_INDEX_PORT    => '0',
+                       StorableSocket::SOCKET_ARRAY_INDEX_TYPE    => StorableSocket::CONNECTION_TYPE_INCOMING,
                );
 
                // Create socket instance
index ea46c29439a3ffd264bfe2ac0c413c35ffcaff8a..6a6eff4625bf4a06be009e4dc6398d8554d0d522 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Source\Unit;
+namespace Org\Shipsimu\Hub\Source\Unit;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for unit sources
index 4dd8de645efe0ac6454c0dd46e65a92ad4c3d9ea..270ac7e343ce7adeb5c67d18d9a261131e4d0e65 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Source\Url;
+namespace Org\Shipsimu\Hub\Source\Url;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Task\Taskable;
 
 /**
  * A factory class for URL sources
index aaa81d48d045a48b8b153e9df1493749863288a8..01a5fbb060515220a3f9df8a585c93d1fc126666 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Factory\State\Communicator;
+namespace Org\Shipsimu\Hub\Factory\State\Communicator;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
 
 /**
  * A factory class for communicator states
index 4050977ffe17479986d82d0019f43dae5f097edf..1d5e52a5e4ef82902a41ea52813cf84b1c224276 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Factory\State\Crawler;
+namespace Org\Shipsimu\Hub\Factory\State\Crawler;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for crawler states
index fb2d06d3c98128fcbe2fdbb44704ef5c60025830..4904d7d6b8f51dad8330216b30b69ab83d9b42ca 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Factory\State\Cruncher;
+namespace Org\Shipsimu\Hub\Factory\State\Cruncher;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for cruncher states
index 03ebd954d9a6623de0079fe275a8d264625ba11d..6de6ca11cbf0c024f651b611d987bc1c77ede818 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Factory\State\Dht;
+namespace Org\Shipsimu\Hub\Factory\State\Dht;
 
 // Import application-specific stuff
-use Hub\Dht\Distributable;
-use Hub\Factory\State\Dht\DhtStateFactory;
+use Org\Shipsimu\Hub\Dht\Distributable;
+use Org\Shipsimu\Hub\Factory\State\Dht\DhtStateFactory;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
 
 /**
  * A factory class for DHT states
index f38cc3249a0f2e161d651781d07bbc8a78ac5a92..50339d430d09515d93760aab0a2926ae226218f6 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Factory\State\Miner;
+namespace Org\Shipsimu\Hub\Factory\State\Miner;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for miner states
index f2343a9bd48b4c54f144c0720ea9ea0ec08d6730..5f583c28cd447db5840c583b9830202c6fc22b92 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Factory\State\Node;
+namespace Org\Shipsimu\Hub\Factory\State\Node;
 
 // Import application-specific stuff
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Helper\Node\NodeHelper;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Helper\Node\NodeHelper;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
 
 /**
  * A factory class for node states
index 423d4e5a5507b245c2ec37d34cb59d709c279b91..8779aac38ce92430576243fc5a2c59aae5edb338 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Factory\State\Peer;
+namespace Org\Shipsimu\Hub\Factory\State\Peer;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Helper\Connection\ConnectionHelper;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Helper\Connection\ConnectionHelper;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Socket\InvalidSocketException;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Socket\InvalidSocketException;
 
 /**
  * A factory class for peer states
index 6a3e65dc413af163fce78827b23504a6820812ed..e23e3357ddea2de3d999c99de061550e5ca59586 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Tag\Package;
+namespace Org\Shipsimu\Hub\Factory\Tag\Package;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A factory class for network packages
index 14d3b234b340d6c40c9057515d1d53061b7bd680..f24b413a0a97a37e9393e0ca30583447377a10b2 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Feature\CoinReward;
+namespace Org\Shipsimu\Hub\Feature\CoinReward;
 
 // Import framework stuff
-use CoreFramework\Feature\BaseFeature;
-use CoreFramework\Feature\Feature;
-use CoreFramework\Feature\FrameworkFeature;
+use Org\Mxchange\CoreFramework\Feature\BaseFeature;
+use Org\Mxchange\CoreFramework\Feature\Feature;
+use Org\Mxchange\CoreFramework\Feature\FrameworkFeature;
 
 // Import other libraries
 use DomBlack\Scrypt\Scrypt;
index bad2240ec9a8cdbf8bbb1655c5ab92cbb8f63bb7..39e116660588e5c0fe79279a0093aa8036a3fcdd 100644 (file)
@@ -7,9 +7,9 @@ use Hub\Factory\Node\NodeObjectFactory;
 use Hub\Filter\Node\BaseNodeFilter;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A ??? filter for hub activation
index 783a36a523b9acba4aa20c8964b1209a122033f9..9b9acc6153abf1175412d90b05aaefdeec5f65e9 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Activation\Node\Announcement;
+namespace Org\Shipsimu\Hub\Filter\Activation\Node\Announcement;
 
 // Import application-specific stuff
-use Hub\Filter\Node\BaseNodeFilter;
+use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * An Announcement filter for hub activation
index f6607bfc302da63ca883697fde9d5674b00e5087..6ed5105a0e35393f38e11624adc573e7f902c145 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\AptProxy\Filter\Initialization;
+namespace Org\Shipsimu\Hub\AptProxy\Filter\Initialization;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A Initialization filter for apt-proxy
index ef952b476b0ce30ebe52fffe5f1815c791090b59..caeb30ae8318059a760ffb14c572d227279f1146 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\AptProxy\Filter\Requirements;
+namespace Org\Shipsimu\Hub\AptProxy\Filter\Requirements;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A PhpRequirements filter for apt-proxy
index e0272b931824bed3183fbc54405c145df0df8dbb..43b5dd8e0ec49a489b63229be056ec8971b69fcb 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\AptProxy\Filter\WelcomeTeaser;
+namespace Org\Shipsimu\Hub\AptProxy\Filter\WelcomeTeaser;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A welcome-teaser filter for the apt-proxy
index 817205e02fb36d7ddc259635ed69c79fcfd1fd78..a89b72286089027b44ab766ce59064f21c7d56d0 100644 (file)
@@ -3,10 +3,10 @@
 namespace Hub\Filter\Bootstrap\AptProxy\;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A ??? filter for bootstrapping apt-proxy
index 11387169ac1c3f64398e0def2a38a27351b10b30..c5ec099784a3b34c5c33ae2840c63eaf96bd6755 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Bootstrap\AptProxy\Extra;
+namespace Org\Shipsimu\Hub\Filter\Bootstrap\AptProxy\Extra;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A ExtraBootstrapping filter for bootstrapping apt-proxy
index d9772ed6f8159778c72715e82d2a3185995ec51b..1dabf9fadf7a544c3b6e82a2704991a5ce843dab 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Bootstrap\AptProxy\Activation;
+namespace Org\Shipsimu\Hub\Filter\Bootstrap\AptProxy\Activation;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A GenericActivation filter for bootstrapping proxy
index 90b06bb5d6b8ce1d169984ea04f5372eb4dcbc71..7a38d0771e203c7fb9c17da4d344b6aa9cafbe4d 100644 (file)
@@ -3,10 +3,10 @@
 namespace Hub\Filter\Bootstrap\Chat\;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A ??? filter for bootstrapping chats
index 626142f06df06f23d8b1062ec906819758c90fe2..830bf1ad7d538947acf1d400897de70b9caf062e 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Bootstrap\Chat\Extra;
+namespace Org\Shipsimu\Hub\Filter\Bootstrap\Chat\Extra;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A ExtraBootstrapping filter for bootstrapping chat
index 895aa0ef6a0242e35f98fbecdafdc583b392f4b5..7b6d3334f750c5e2d7d2ab7a0a9615eb2251a62b 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Bootstrap\Chat\Activation;
+namespace Org\Shipsimu\Hub\Filter\Bootstrap\Chat\Activation;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A GenericActivation filter for bootstrapping chat
index a8b3cb90139ec535367d3a83225cee65892f8038..59ad1b7eb3521b406b0242af00a5bcfbd52ed6f1 100644 (file)
@@ -3,10 +3,10 @@
 namespace Hub\Filter\Bootstrap\Crawler\;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A ??? filter for bootstrapping crawlers
index 8ab733c1e5cacadc7f0fbd08715d9d98505aeabb..7544ff8468b5b08b4471b7712d412cbb04f7171f 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Bootstrap\Crawler\Extra;
+namespace Org\Shipsimu\Hub\Filter\Bootstrap\Crawler\Extra;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A ExtraBootstrapping filter for bootstrapping crawler
index 81a5cb1c3d3f3c8a99be32ed4c0612158f08dcd5..e868aff85792975ddf0d9898a678e6c7a5b31336 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Bootstrap\Crawler\Activation;
+namespace Org\Shipsimu\Hub\Filter\Bootstrap\Crawler\Activation;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A GenericActivation filter for bootstrapping crawler
index 461ca026f692f8956df7b49de5b6b0849b412514..da0234180e262b9d4f76113231b8201816dc4c46 100644 (file)
@@ -3,10 +3,10 @@
 namespace Hub\Filter\Bootstrap\Cruncher\;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A ??? filter for bootstrapping crunchers
index 78d7f78d99c16c53f0ef2f833e7af85293e96da0..8fab686a3dd23d1241567a95106b3ed5a0e5357e 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Bootstrap\Cruncher\Queue;
+namespace Org\Shipsimu\Hub\Filter\Bootstrap\Cruncher\Queue;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A BufferQueue filter for bootstrapping crunchers
index 8e3a5983d36aae091994447c114ebf79a2ee8775..3714e7e46a274d5af711117b18056a44add07105 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Bootstrap\Cruncher\Extra;
+namespace Org\Shipsimu\Hub\Filter\Bootstrap\Cruncher\Extra;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A ExtraBootstrapping filter for bootstrapping crunchers
index 018e99c473b48340877fee26b4676ecb0f64740d..24dc31979cec8deee09632d3dd96f23c2a09f4f4 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Bootstrap\Cruncher\Activation;
+namespace Org\Shipsimu\Hub\Filter\Bootstrap\Cruncher\Activation;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A GenericActivation filter for bootstrapping crunchers
index d06045ccc56ae4f81b4e9e4eec7390388bde27a5..fb87a8945c1dd8e9d4bffc56606a250f0fb14db3 100644 (file)
@@ -3,10 +3,10 @@
 namespace Hub\Filter\Bootstrap\Miner\;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A ??? filter for bootstrapping miners
index 424ba22cc71ec62b637c831e8a5c51ecc0a46761..86ed47a030abc5a58f09c2ac2fb790aaf1053f0f 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Bootstrap\Miner\Queue;
+namespace Org\Shipsimu\Hub\Filter\Bootstrap\Miner\Queue;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A BufferQueue filter for bootstrapping miners
index b6b15d394cd9a0ec4884cb8d348109a557deb588..a25be4ea13f1e9d35c65b380e111fd750e8dfcf9 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Bootstrap\Miner\Extra;
+namespace Org\Shipsimu\Hub\Filter\Bootstrap\Miner\Extra;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A ExtraBootstrapping filter for bootstrapping miners
index 91c5890cdbb613f134d39981f1a33250265a9b58..60288d8e6f2fe488a056ad146f1f5036b4910f03 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Bootstrap\Miner\Activation;
+namespace Org\Shipsimu\Hub\Filter\Bootstrap\Miner\Activation;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A GenericActivation filter for bootstrapping miners
index 61f3c6aa9aa183b2948993e6f1cdd211d7d164b3..e3853d1bce80f72b9fa332b594e4dbd54d5ebbd0 100644 (file)
@@ -7,9 +7,9 @@ use Hub\Factory\Node\NodeObjectFactory;
 use Hub\Filter\Node\BaseNodeFilter;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A ??? filter for bootstrapping
index ba33aa41c2eca235a5e784ace809def556ddfc64..672b0806f63f966ef561b8911b79baca7eb81f2f 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Bootstrap\Node\Extra;
+namespace Org\Shipsimu\Hub\Filter\Bootstrap\Node\Extra;
 
 // Import application-specific stuff
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Filter\Node\BaseNodeFilter;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A ExtraBootstrapping filter for bootstrapping
index 4b2fcbe6507768d703bf84ab06c93b4433e53cb9..cdb0d22da301983101ae220875de1697f71a9670 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Bootstrap\Node\NodeId;
+namespace Org\Shipsimu\Hub\Filter\Bootstrap\Node\NodeId;
 
 // Import application-specific stuff
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Filter\Node\BaseNodeFilter;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A GenerateNodeId filter for bootstrapping
index ad5963ab53aad9ffbf854aa8a770b098838e239c..a13e29751a3fbf2480261a10f90b3d052c38b51d 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Bootstrap\Node\PrivateKey;
+namespace Org\Shipsimu\Hub\Filter\Bootstrap\Node\PrivateKey;
 
 // Import application-specific stuff
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Filter\Node\BaseNodeFilter;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A GeneratePrivateKey filter for bootstrapping
index a32e999e2e1f039afeadffbac77a04eb4c00062c..6939f816ac9da0d76ceb55dc4cdfbc2252dd5627 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Bootstrap\Node\SessionId;
+namespace Org\Shipsimu\Hub\Filter\Bootstrap\Node\SessionId;
 
 // Import application-specific stuff
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Filter\Node\BaseNodeFilter;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A GenerateSessionId filter for bootstrapping
index 8307cd5e31c7a288fac57c090741946b09eb0325..dd944521075a37b8b64cc3634aca21bc05ea50da 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Bootstrap\Node\Pool;
+namespace Org\Shipsimu\Hub\Filter\Bootstrap\Node\Pool;
 
 // Import application-specific stuff
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Filter\Node\BaseNodeFilter;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A ListenerPool filter for bootstrapping
index e3685d6a7d3adeaf360a9707ba88e0ad590bf0be..8fc52c7206b5b6869179895c5bed276884240951 100644 (file)
@@ -3,9 +3,9 @@
 namespace Hub\Filter\Chat\;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A ??? filter for crunchers
index 1c70c63b3447f0297f2cd05d2582834c1a744c91..7960f588eb6c365075568b2bc5923db506d3406a 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Chat\Filter\Initialization;
+namespace Org\Shipsimu\Hub\Chat\Filter\Initialization;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A Initialization filter for chat
index af32b729e427e88487f9c8f200935380f951fae1..f4f9050132c552a77cddfd34c958fd71d9081574 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Chat\Filter\Requirements;
+namespace Org\Shipsimu\Hub\Chat\Filter\Requirements;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A PhpRequirements filter for chat
index e1f7b674d6d0f25ab97ca352f9768eb53c1190d5..db95df5629ff2e416ebaf372e82ce6d2e0d21ade 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Chat\Filter\WelcomeTeaser;
+namespace Org\Shipsimu\Hub\Chat\Filter\WelcomeTeaser;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A welcome-teaser filter for the chat
index ca5659676291159cec0f634aba51006f97aba111..d1cb06dc91e33d32cda01eb9728a4bb150646356 100644 (file)
@@ -7,9 +7,9 @@ use Hub\Factory\Node\NodeObjectFactory;
 use Hub\Filter\BaseHubFilter;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A ??? filter for !!!
index 6a5943442876efa3cd5ddd7ce944ff3f76ed146f..07066683626bdefa1904bb62040a22950259cb71 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\AptProxy\Filter;
+namespace Org\Shipsimu\Hub\AptProxy\Filter;
 
 // Import application-specific stuff
-use Hub\Filter\BaseHubFilter;
+use Org\Shipsimu\Hub\Filter\BaseHubFilter;
 
 /**
  * A generic filter for apt-proxy sub-project
index bbab5a48279ab6651efac1a837b97843b1757bbb..42c02c3918b7324fae17537c3a6b134a1bf664fa 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Chat\Filter;
+namespace Org\Shipsimu\Hub\Chat\Filter;
 
 // Import application-specific stuff
-use Hub\Filter\BaseHubFilter;
+use Org\Shipsimu\Hub\Filter\BaseHubFilter;
 
 /**
  * A generic filter for chat sub-project
index 327bdb64f3dc1e13194059f9a5bde7f849743cb2..5beb9b0334f78fdf713501ce68423226a35d93b9 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Filter;
+namespace Org\Shipsimu\Hub\Crawler\Filter;
 
 // Import application-specific stuff
-use Hub\Filter\BaseHubFilter;
+use Org\Shipsimu\Hub\Filter\BaseHubFilter;
 
 /**
  * A generic filter for crawler sub-project
index bd731b7f6602bcd10496838f4f4f42a5fa6ac623..263485c1fcc9108b2c66e220eba78e79687bd66b 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Cruncher\Filter;
+namespace Org\Shipsimu\Hub\Cruncher\Filter;
 
 // Import application-specific stuff
-use Hub\Filter\BaseHubFilter;
+use Org\Shipsimu\Hub\Filter\BaseHubFilter;
 
 /**
  * A generic filter for cruncher sub-project
index 1189f940cb9969eedd0fe687e5210165e70bcec9..fe0f9aafadab4e968a8e4c445d24c1615dc41e10 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Filter;
+namespace Org\Shipsimu\Hub\Filter;
 
 // Import application-specific stuff
-use Hub\Network\Package\NetworkPackage;
-use Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
 
 // Import framework stuff
-use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
-use CoreFramework\Filter\BaseFilter;
+use Org\Mxchange\CoreFramework\Factory\Template\XmlTemplateEngineFactory;
+use Org\Mxchange\CoreFramework\Filter\BaseFilter;
 
 /**
  * A generic filter for hub project
index 1ea56cba2e8fdc95ca734882b2b1a0da68acf360..1e2c7833a7b32a52b18f20909360e5b1b9f00c0c 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Miner\Filter;
+namespace Org\Shipsimu\Hub\Miner\Filter;
 
 // Import application-specific stuff
-use Hub\Filter\BaseHubFilter;
+use Org\Shipsimu\Hub\Filter\BaseHubFilter;
 
 /**
  * A generic filter for miner sub-project
index 1dda8495afdb57a69ef44e6bc276daf8502c8bbe..911baa6885f6d8499d0cc421a1229d28b3d1ef3f 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Node;
+namespace Org\Shipsimu\Hub\Filter\Node;
 
 // Import application-specific stuff
-use Hub\Filter\BaseHubFilter;
+use Org\Shipsimu\Hub\Filter\BaseHubFilter;
 
 /**
  * A generic filter for nodes
index 06ed8223d1e54014d97454cf074ecc8b729c0d37..a903a788c453692aa9f02749c46f99a4788d764a 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Filter\Initialization;
+namespace Org\Shipsimu\Hub\Crawler\Filter\Initialization;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A Initialization filter for crawler
index 2c119db5a2e8da1a96998735e68ca5158966d91d..5b1fa474b12890db6f7dfb75151234e5c0b97089 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Filter\Requirements;
+namespace Org\Shipsimu\Hub\Crawler\Filter\Requirements;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A PhpRequirements filter for crawler
index a79a21732fd2848490d5b3e67edd0becd4258b4f..ebc476bc004fa441b830cdc666fc8bd6009c47fb 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Filter\WelcomeTeaser;
+namespace Org\Shipsimu\Hub\Crawler\Filter\WelcomeTeaser;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A welcome-teaser filter for the crawler
index 027f6c7c57a56bbb826ccc2649039a708b4cc68f..e24c6b499f3eb183e7291bd1899ac9e4f6968cad 100644 (file)
@@ -3,9 +3,9 @@
 namespace Hub\Filter\Cruncher\;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A ??? filter for crunchers
index d38626ec4b0a61682971b789862f375ce9cbc0ec..bdc465470a8fa42ef272753461c24fd34f4c4348 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Cruncher\Filter\Initialization;
+namespace Org\Shipsimu\Hub\Cruncher\Filter\Initialization;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A Initialization filter for crunchers
index 6901548a4e0878fe2f975e1a606b7c84eddb9f4d..ebbc8fa11765a1ba355e335cbc71d6ad8f582ec1 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Cruncher\Filter\Requirements;
+namespace Org\Shipsimu\Hub\Cruncher\Filter\Requirements;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A PhpRequirements filter for crunchers
index 9385a3e1559888c64bbf4f02b1d3b4f109f78036..dc1b7da89e00c377b314c75afe2eda083c1ec46e 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Cruncher\Filter\WelcomeTeaser;
+namespace Org\Shipsimu\Hub\Cruncher\Filter\WelcomeTeaser;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A welcome-teaser filter for the cruncher
index 5fa6fc505fad14bd3e8b189be171d3cb1766caa8..29e7ac94f0634f9c9c183da16d43216bec80b686 100644 (file)
@@ -3,9 +3,9 @@
 namespace Hub\Filter\Miner\;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A ??? filter for miners
index ec04df2f8bee4deb5489632a7390bb90c808d80b..44d5dbf88116e06a23de9c4850dd071e4246c06e 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Miner\Filter\Initialization;
+namespace Org\Shipsimu\Hub\Miner\Filter\Initialization;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A Initialization filter for miners
index 657edf86124a59f46ae7f8b0dc657067a6838cda..ed5e78ca1eec560f8e7d92ee1ebca38f1f62612a 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Miner\Filter\Requirements;
+namespace Org\Shipsimu\Hub\Miner\Filter\Requirements;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A PhpRequirements filter for miners
index 689df773712b81559f5c5ae7e0ee3d09ce9a77b1..ee9b164ffe1c5eb32c9d6076a27344e50032f0db 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Miner\Filter\WelcomeTeaser;
+namespace Org\Shipsimu\Hub\Miner\Filter\WelcomeTeaser;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A welcome-teaser filter for the miner
index c9f2c739185eccbe59831bb21431789f6809bfa6..fd31832adabee8440bb949fd1ea207280be0d044 100644 (file)
@@ -6,9 +6,9 @@ namespace Hub\Filter\Node\;
 use Hub\Filter\Node\BaseNodeFilter;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A ??? filter for nodes
index 83a5148f3248c17298f9c59c2436304ccc1573ba..c13409dcce8716adae26d0d45e16a10a54bb845f 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Node\Initialization;
+namespace Org\Shipsimu\Hub\Filter\Node\Initialization;
 
 // Import application-specific stuff
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Filter\Node\BaseNodeFilter;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A Initialization filter for nodes
index 39cc86cce868f05c18905f1b70b0cad2951e39d1..83de4f0544cb50d280f94f5de7b34041195013c9 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Node\Requirements;
+namespace Org\Shipsimu\Hub\Filter\Node\Requirements;
 
 // Import application-specific stuff
-use Hub\Filter\Node\BaseNodeFilter;
+use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A PhpRequirements filter for nodes
index 00659801d47fe1ab6f600168ac049288def733c5..019e7a2677e4b963d2648f63abe128c9c1a907d5 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Node\WelcomeTeaser;
+namespace Org\Shipsimu\Hub\Filter\Node\WelcomeTeaser;
 
 // Import application-specific stuff
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Filter\Node\BaseNodeFilter;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A welcome-teaser filter for the console
index 56e53830a14d58d6d3291a49c4db9e8b66d22b83..ed0df03bccc37d753e58aad142ebab993a2eab57 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Shutdown\AptProxy;
+namespace Org\Shipsimu\Hub\Filter\Shutdown\AptProxy;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A shutdown filter for shutting down the apt-proxy. This filter should be the
index 5e5be509255034ffc8bc34a00b9a5a3f9508e90e..5feb6e5e15a79172b083a80c3080fa18590ae761 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Shutdown\Chat;
+namespace Org\Shipsimu\Hub\Filter\Shutdown\Chat;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A shutdown filter for shutting down the chat console. This filter should be
index fa9587c02cfddbad1e71d16f0668004e2226971b..b961f97a15702481be2d9308739ad5290f753d56 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Shutdown\Crawler;
+namespace Org\Shipsimu\Hub\Filter\Shutdown\Crawler;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A shutdown filter for shutting down the crawler. This filter should be the
index e694295ad11a31866a6df3c02959425db87cb318..bdecf7262eca6812067c9952e9a8051cbc368aa8 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Shutdown\Cruncher;
+namespace Org\Shipsimu\Hub\Filter\Shutdown\Cruncher;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A shutdown filter for shutting down the cruncher. This filter should be the
index 1b289d90193c8e32455e909ff7ce5eed6f6e63c8..1a64a469eea31237e459441d2dac899fe11d49b8 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Shutdown\Miner;
+namespace Org\Shipsimu\Hub\Filter\Shutdown\Miner;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A shutdown filter for shutting down the miner. This filter should be the
index f2ab02bddb54d39a1f7a7b4d8ef6704522457b50..e04dc627a4c02a9d994f0b18a3e69fa5d24023c7 100644 (file)
@@ -7,9 +7,9 @@ use Hub\Factory\Node\NodeObjectFactory;
 use Hub\Filter\Node\BaseNodeFilter;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A ??? filter for shutting down the node.
index 4edad0cecaf909580b401f8c1686ac3c63abcd48..a87a5964276137137d5f82d3ce9998a2f172848b 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Shutdown\Node\NodeList;
+namespace Org\Shipsimu\Hub\Filter\Shutdown\Node\NodeList;
 
 // Import application-specific stuff
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Filter\Node\BaseNodeFilter;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A FlushNodeList filter for shutting down the node.
index 7cd5ea05ea888e96c62d76c1b397443a342f1289..b6265a6806d4327dd928bb91ae65dbb8fcc8a568 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Shutdown\Node;
+namespace Org\Shipsimu\Hub\Filter\Shutdown\Node;
 
 // Import application-specific stuff
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Filter\Node\BaseNodeFilter;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A ShutdownNode filter for shutting down the node. This filter should be the
index 63c3303ff99f14f2896992829c0b5faed460e50f..4c06c24a436af1805a389c5880947e867510e0f5 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Shutdown\Node\Handler\Task;
+namespace Org\Shipsimu\Hub\Filter\Shutdown\Node\Handler\Task;
 
 // Import application-specific stuff
-use Hub\Filter\Node\BaseNodeFilter;
+use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A TaskHandler filter for shutting down the node.
index 56c1d139b071435842dce9fd9605b29cd8cea9be..c93cc758ae766a4cb728947630b6ce3761578526 100644 (file)
@@ -1,17 +1,17 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Tag\Network\Answer\Announcement;
+namespace Org\Shipsimu\Hub\Filter\Tag\Network\Answer\Announcement;
 
 // Import application-specific stuff
-use Hub\Filter\Node\BaseNodeFilter;
-use Hub\Network\Receive\Receivable;
-use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
+use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Generic\UnsupportedOperationException;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A AnnouncementAnswerTag filter for Package
index 1e91d832b462b4fe9bc85756f5e3161fedfbf13e..a39b577cc177ce68e3c499e77f2d2ecf796c3d59 100644 (file)
@@ -1,17 +1,17 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Tag\Network\Answer\Dht\Bootstrap;
+namespace Org\Shipsimu\Hub\Filter\Tag\Network\Answer\Dht\Bootstrap;
 
 // Import application-specific stuff
-use Hub\Filter\Node\BaseNodeFilter;
-use Hub\Network\Receive\Receivable;
-use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
+use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Generic\UnsupportedOperationException;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A DhtBootstrapAnswerTag filter for Package
index 02599a20d6a6d2fbf7bf3779606e69efe0a4ab69..72c0cf8668ce74af34df22f44ffae1a68398bd96 100644 (file)
@@ -1,17 +1,17 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Tag\Network\Answer\Request\NodeList;
+namespace Org\Shipsimu\Hub\Filter\Tag\Network\Answer\Request\NodeList;
 
 // Import application-specific stuff
-use Hub\Filter\Node\BaseNodeFilter;
-use Hub\Network\Receive\Receivable;
-use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
+use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Generic\UnsupportedOperationException;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A RequestNodeListAnswerTag filter for Package
index f738ca664b2d94a2f4fee8063f5546c8f4b46723..b4f75e3ed74120b2ed978b584ece3df79bc71745 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Tag\Network\Announcement;
+namespace Org\Shipsimu\Hub\Filter\Tag\Network\Announcement;
 
 // Import application-specific stuff
-use Hub\Filter\Node\BaseNodeFilter;
+use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Generic\UnsupportedOperationException;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A AnnouncementTag filter for packages
index ab421c71f798a60afe5d4104a771e466cb852874..4d1d8906b3598f5c44ab920046990fd2620a1e37 100644 (file)
@@ -1,17 +1,17 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Tag\Network\Dht\Bootstrap;
+namespace Org\Shipsimu\Hub\Filter\Tag\Network\Dht\Bootstrap;
 
 // Import application-specific stuff
-use Hub\Filter\Node\BaseNodeFilter;
-use Hub\Network\Receive\Receivable;
-use Hub\Template\Engine\Xml\Dht\Bootstrap\XmlDhtBootstrapTemplateEngine;
+use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Template\Engine\Xml\Dht\Bootstrap\XmlDhtBootstrapTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Generic\UnsupportedOperationException;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A DhtBootstrapTag filter for packages
index 350ffad26dd7231c1d7a4f9d8c4b3167c13bcdd7..39273c043f1bb97d488c02fb8c580bf0e8bd42fe 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Tag\Network\Request\NodeList;
+namespace Org\Shipsimu\Hub\Filter\Tag\Network\Request\NodeList;
 
 // Import application-specific stuff
-use Hub\Filter\Node\BaseNodeFilter;
-use Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Generic\UnsupportedOperationException;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A RequestNodeListTag filter for packages
index 2d26960650312a96037245b8f2a20eb961a0f387..894d1bb7db5c5ce719a3cebd3f976084484da0a5 100644 (file)
@@ -1,17 +1,17 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Tag\Network\SelfConnect;
+namespace Org\Shipsimu\Hub\Filter\Tag\Network\SelfConnect;
 
 // Import application-specific stuff
-use Hub\Filter\Node\BaseNodeFilter;
-use Hub\Network\Receive\Receivable;
-use Hub\Tag\Tagable;
+use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Tag\Tagable;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Generic\UnsupportedOperationException;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A SelfConnectTag filter for packages
index 7bd356f28a910e2acdb431781247153271b6d32a..ab2c61bc018ecdd51271fcb458e12ff857004a79 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Initializer\AptProxy\Handler\Task;
+namespace Org\Shipsimu\Hub\Filter\Initializer\AptProxy\Handler\Task;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A TaskHandlerInitializer filter for apt-proxy
index 13b1bf2e8891bfc65f9121e9dd1bc6dc567300f8..ac8d092a4e43546457ad7f9f8eeab21cb95d6ebe 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Initializer\Chat\Handler\Task;
+namespace Org\Shipsimu\Hub\Filter\Initializer\Chat\Handler\Task;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A TaskHandlerInitializer filter for chat
index 05ba31b65338ef93c8c278dd077a92a434d064ee..25e3ec8a5c0a683ce3fe70580777fd2dd2027deb 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Initializer\Crawler\Handler\Task;
+namespace Org\Shipsimu\Hub\Filter\Initializer\Crawler\Handler\Task;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A TaskHandlerInitializer filter for crawler
index de9ea8b8160428cf7ea7f2d6fc0f37ef1dfc495a..a0512affe70e987493c469a40835f9f7df3e955a 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Initializer\Cruncher\Handler\Task;
+namespace Org\Shipsimu\Hub\Filter\Initializer\Cruncher\Handler\Task;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A TaskHandlerInitializer filter for crunchers
index 1d3e107c75adab4087c35dbd9d838bf21f144f91..bee3110b0d8deceb27c580021f7ca4113b5029a4 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Initializer\Miner\Handler\Task;
+namespace Org\Shipsimu\Hub\Filter\Initializer\Miner\Handler\Task;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A TaskHandlerInitializer filter for miners
index d55ba25ccf36ffd3dab7cd2af13dce8245dea904..49f296c275d703103bbc84296b562f88544006ca 100644 (file)
@@ -1,17 +1,17 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Initializer\Node\Handler\Task;
+namespace Org\Shipsimu\Hub\Filter\Initializer\Node\Handler\Task;
 
 // Import application-specific stuff
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Filter\Node\BaseNodeFilter;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Filter\Node\BaseNodeFilter;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Filter\Filterable;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A TaskHandlerInitializer filter for hubs
index 7932d6f57351b5df214c2366e7efc4b0ad5d7ad9..0e66970b406b02fb9226c89a267e29235ccffce4 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Network\RawData\Chunks;
+namespace Org\Shipsimu\Hub\Handler\Network\RawData\Chunks;
 
 // Import application-specific stuff
-use Hub\Factory\Fragmenter\FragmenterFactory;
-use Hub\Handler\BaseHubHandler;
-use Hub\Network\Package\Fragment\PackageFragmenter;
+use Org\Shipsimu\Hub\Factory\Fragmenter\FragmenterFactory;
+use Org\Shipsimu\Hub\Handler\BaseHubHandler;
+use Org\Shipsimu\Hub\Network\Package\Fragment\PackageFragmenter;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A Chunk handler
index 675eeb0854b6380ed1470665b0f044f222043122..97d65515be0a0df4864ff4a8227529bd2acc160e 100644 (file)
@@ -1,19 +1,19 @@
 <?php
 // Own namespace
-namespace Hub\Handler;
+namespace Org\Shipsimu\Hub\Handler;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Handler\Network\RawData\BaseRawDataHandler;
-use Hub\Generic\HubInterface;
-use Hub\Information\ShareableInfo;
-use Hub\Listener\Listenable;
-use Hub\Locator\Node\LocateableNode;
-use Hub\Pool\Poolable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Handler\Network\RawData\HandleableRawData;
+use Org\Shipsimu\Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Information\ShareableInfo;
+use Org\Shipsimu\Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Locator\Node\LocateableNode;
+use Org\Shipsimu\Hub\Pool\Poolable;
 
 // Import framework stuff
-use CoreFramework\Handler\BaseHandler;
-use CoreFramework\Handler\Handleable;
+use Org\Mxchange\CoreFramework\Handler\BaseHandler;
+use Org\Mxchange\CoreFramework\Handler\Handleable;
 
 /**
  * A general hub handler
@@ -81,8 +81,11 @@ class BaseHubHandler extends BaseHandler implements Handleable, HubInterface {
         * @return      $isset  Whether start/end marker are set
         */
        public final function ifStartEndMarkersSet ($data) {
+               // Trace message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('HUB-HANDLER: data()=%d - CALLED!', strlen($data)));
+
                // Determine it
-               $isset = ((substr($data, 0, strlen(BaseRawDataHandler::STREAM_START_MARKER)) == BaseRawDataHandler::STREAM_START_MARKER) && (substr($data, -1 * strlen(BaseRawDataHandler::STREAM_END_MARKER), strlen(BaseRawDataHandler::STREAM_END_MARKER)) == BaseRawDataHandler::STREAM_END_MARKER));
+               $isset = ((substr($data, 0, strlen(HandleableRawData::STREAM_START_MARKER)) == HandleableRawData::STREAM_START_MARKER) && (substr($data, -1 * strlen(HandleableRawData::STREAM_END_MARKER), strlen(HandleableRawData::STREAM_END_MARKER)) == HandleableRawData::STREAM_END_MARKER));
 
                // ... and return it
                return $isset;
index fae30321de999f1358fb81ab4cfc8f5ebeb97563..ad068657684296d9849de77b7f3e5e07c0fe5de9 100644 (file)
@@ -1,17 +1,17 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Node\Announcement\Answer;
+namespace Org\Shipsimu\Hub\Handler\Node\Announcement\Answer;
 
 // Import application-specific stuff
-use Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
-use Hub\Factory\Dht\DhtObjectFactory;
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Network\Receive\Receivable;
-use Hub\Node\BaseHubNode;
+use Org\Shipsimu\Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
+use Org\Shipsimu\Hub\Factory\Dht\DhtObjectFactory;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Node\BaseHubNode;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A AnnouncementAnswerOkay handler
index f3c4a47a387068a718af07dddb4c0c321aee39d0..cdda14fd7bb69bfe0b565ac55c12c712cf81a713 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Answer\Okay\NodeList;
+namespace Org\Shipsimu\Hub\Handler\Answer\Okay\NodeList;
 
 // Import application-specific stuff
-use Hub\Factory\Dht\DhtObjectFactory;
-use Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Factory\Dht\DhtObjectFactory;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A RequestNodeListAnswerOkay handler
index e5e2bfb9f583d4b400ce3ba01d4c6dc2880e5b7f..83c2b21325c94a9dc6e8e84eaf81b71e04f90048 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Data;
+namespace Org\Shipsimu\Hub\Handler\Data;
 
 // Import application-specific stuff
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Generic\HubInterface;
-use Hub\Handler\BaseHubHandler;
-use Hub\Network\Deliver\Deliverable;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Handler\BaseHubHandler;
+use Org\Shipsimu\Hub\Network\Deliver\Deliverable;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * A general data Handler
index debb99b65fd970ab8f7a6f86cebe6856994567a1..3acd72d6e08941e32d5cf160a7f45c9bd4d6a9c5 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Node\Message\Announcement;
+namespace Org\Shipsimu\Hub\Handler\Node\Message\Announcement;
 
 // Import application-specific stuff
-use Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Generic\BaseHubSystem;
-use Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
 
 // Import framework stuff
-use CoreFramework\Criteria\Storing\StoreableCriteria;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Criteria\Storing\StoreableCriteria;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A NodeMessageAnnouncement handler
index 932b647b1afa9e32605247b4e4371a38bad35a98..35912dc895683f276f07ea3a705c5025aeddbab0 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Node\Answer\Announcement;
+namespace Org\Shipsimu\Hub\Handler\Node\Answer\Announcement;
 
 // Import application-specific stuff
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Network\Receive\Receivable;
-use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Criteria\Storing\StoreableCriteria;
-use CoreFramework\Generic\UnsupportedOperationException;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Criteria\Storing\StoreableCriteria;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A NodeMessageAnnouncementAnswer handler
index e47c57a422d18e00f1e977f44db87d0e0fc49372..1f439daa2e53a3dc3824672176166db9ab608c12 100644 (file)
@@ -1,17 +1,17 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Answer\Node\DhtBootstrap;
+namespace Org\Shipsimu\Hub\Handler\Answer\Node\DhtBootstrap;
 
 // Import application-specific stuff
-use Hub\Factory\Dht\DhtObjectFactory;
-use Hub\Network\Receive\Receivable;
-use Hub\Template\Engine\Xml\Dht\Bootstrap\XmlDhtBootstrapTemplateEngine;
-use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
+use Org\Shipsimu\Hub\Factory\Dht\DhtObjectFactory;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Template\Engine\Xml\Dht\Bootstrap\XmlDhtBootstrapTemplateEngine;
+use Org\Shipsimu\Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Criteria\Storing\StoreableCriteria;
-use CoreFramework\Generic\UnsupportedOperationException;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Criteria\Storing\StoreableCriteria;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A NodeMessageDhtBootstrapAnswer handler
index 4f646d72d12049138598e911741a7ccf9efdf1fc..9fb7b7b70340c2203ea7302a3e2722e1139d3184 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Node\Answer\Request\NodeList;
+namespace Org\Shipsimu\Hub\Handler\Node\Answer\Request\NodeList;
 
 // Import application-specific stuff
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Network\Receive\Receivable;
-use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Criteria\Storing\StoreableCriteria;
-use CoreFramework\Generic\UnsupportedOperationException;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Criteria\Storing\StoreableCriteria;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A NodeMessageRequestNodeListAnswer handler
index 0a4077e16bf2d13bea0ef1fd799b10ca23c57c74..2a11d0bcb73d0fe8fed8f01222b97f5e0af41efc 100644 (file)
@@ -3,7 +3,7 @@
 namespace Hub\Handler\Message\;
 
 // Import framework stuff
-use CoreFramework\Criteria\Storing\StoreableCriteria;
+use Org\Mxchange\CoreFramework\Criteria\Storing\StoreableCriteria;
 
 /**
  * A NodeMessage??? handler
index 4d5563741fb305d1236af038770dc54f93f9a880..5a34263314fb269bdde33cf423220e25fd08eb8e 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Message;
+namespace Org\Shipsimu\Hub\Handler\Message;
 
 // Import hub-specific stuff
-use Hub\Factory\Dht\DhtObjectFactory;
-use Hub\Generic\BaseHubSystem;
-use Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Factory\Dht\DhtObjectFactory;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * A general message handler, this class must be abstract to make the template
index 61dc2e02696b8aaa33d9b40b0a62dde38a9ed138..6be4f882053945052dcf24ba5ea4412dd070f38a 100644 (file)
@@ -1,17 +1,17 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Node\Answer\Dht\Bootstrap;
+namespace Org\Shipsimu\Hub\Handler\Node\Answer\Dht\Bootstrap;
 
 // Import application-specific stuff
-use Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
-use Hub\Factory\Dht\DhtObjectFactory;
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Network\Receive\Receivable;
-use Hub\Template\Engine\Xml\Dht\Bootstrap\XmlDhtBootstrapTemplateEngine;
+use Org\Shipsimu\Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
+use Org\Shipsimu\Hub\Factory\Dht\DhtObjectFactory;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Template\Engine\Xml\Dht\Bootstrap\XmlDhtBootstrapTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Criteria\Storing\StoreableCriteria;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Criteria\Storing\StoreableCriteria;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A NodeMessageDhtBootstrap handler
index ce01a51e6d609607047c8826161c1ffce69250a1..d3955e17c344ab67d276e43c23c44b684f5198b8 100644 (file)
@@ -1,17 +1,17 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Node\Message\Request\NodeList;
+namespace Org\Shipsimu\Hub\Handler\Node\Message\Request\NodeList;
 
 // Import application-specific stuff
-use Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
-use Hub\Factory\Dht\DhtObjectFactory;
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Network\Receive\Receivable;
-use Hub\Node\BaseHubNode;
+use Org\Shipsimu\Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
+use Org\Shipsimu\Hub\Factory\Dht\DhtObjectFactory;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Node\BaseHubNode;
 
 // Import framework stuff
-use CoreFramework\Criteria\Storing\StoreableCriteria;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Criteria\Storing\StoreableCriteria;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A NodeMessageRequestNodeList handler
index b485f7b197bb5646366da81da233d9dc4204ecc5..c58ee8ba36628c554601530f232348c355cd6ea5 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Node\Message\SelfConnect;
+namespace Org\Shipsimu\Hub\Handler\Node\Message\SelfConnect;
 
 // Import application-specific stuff
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
 
 // Import framework stuff
-use CoreFramework\Criteria\Storing\StoreableCriteria;
-use CoreFramework\Generic\UnsupportedOperationException;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Criteria\Storing\StoreableCriteria;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A NodeMessageSelfConnect handler
index e0af2a97aa9689dba68281e671afeddae26806c0..6ee125b19b4c5a209d2593904cead03847a0a901 100644 (file)
@@ -7,7 +7,7 @@ use Hub\Handler\Protocol\BaseProtocolHandler;
 use Hub\Handler\Protocol\HandleableProtocol;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A ??? protocol handler
index c1fef8007c6464e19442ca8eb9aac98218aefcbc..fa911ea34cc7b2c79f2a6cadd090d300779d8ba0 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Protocol;
+namespace Org\Shipsimu\Hub\Handler\Protocol;
 
 // Import application-specific sutff
-use Hub\Handler\BaseHubHandler;
-use Hub\Handler\Protocol\HandleableProtocol;
-use Hub\Tools\HubTools;
+use Org\Shipsimu\Hub\Handler\BaseHubHandler;
+use Org\Shipsimu\Hub\Handler\Protocol\HandleableProtocol;
+use Org\Shipsimu\Hub\Tools\HubTools;
 
 /**
  * A general handler for protocols such as TCP, UDP and others.
index c76921f976df1873e1be50108c4aefb4d363dbd5..439a791d0f28f94a56ae50773dc3d116e3497534 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Protocol\Network\IpV4;
+namespace Org\Shipsimu\Hub\Handler\Protocol\Network\IpV4;
 
 // Import application-specific stuff
-use Hub\Factory\Network\Locator\UniversalNodeLocatorFactory;
-use Hub\Handler\Protocol\BaseProtocolHandler;
-use Hub\Locator\Node\LocateableNode;
-use Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Factory\Network\Locator\UniversalNodeLocatorFactory;
+use Org\Shipsimu\Hub\Handler\Protocol\BaseProtocolHandler;
+use Org\Shipsimu\Hub\Locator\Node\LocateableNode;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
 
 /**
  * A general handler for IPv4 protocols such as TCP, UDP and others.
index a22706bee387c931342a0595b276c80c5ff7c3fe..0317d7f6f901a3032d8bcd199ed599c72c053a4b 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Protocol\Network\IpV4\Tcp;
+namespace Org\Shipsimu\Hub\Handler\Protocol\Network\IpV4\Tcp;
 
 // Import application-specific stuff
-use Hub\Handler\Protocol\Network\IpV4\BaseIpV4ProtocolHandler;
-use Hub\Handler\Protocol\HandleableProtocol;
+use Org\Shipsimu\Hub\Handler\Protocol\Network\IpV4\BaseIpV4ProtocolHandler;
+use Org\Shipsimu\Hub\Handler\Protocol\HandleableProtocol;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A TCP protocol handler (IPv4)
index 4e38ff9c1ffba40042669c8b9784a3b4da3a53ce..5bfd9e0903247d3e05d48ea0c0a92f0d99f7d1c6 100644 (file)
@@ -1,17 +1,17 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Network\RawData;
+namespace Org\Shipsimu\Hub\Handler\Network\RawData;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Generic\HubInterface;
-use Hub\Handler\BaseHubHandler;
-use Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Handler\BaseHubHandler;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
 
 /**
  * A general Handler for raw data from sockets
@@ -35,27 +35,7 @@ use CoreFramework\Generic\UnsupportedOperationException;
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-class BaseRawDataHandler extends BaseHubHandler implements HubInterface {
-       // - Package errors
-       const PACKAGE_ERROR_INVALID_DATA       = 'invalid_data';    // Invalid data in package found
-       const PACKAGE_ERROR_INCOMPLETE_DATA    = 'incomplete_data'; // Incomplete data sent (e.g. field is missing)
-       const PACKAGE_ERROR_INVALID_CONTENT    = 'invalid_content'; // Content is invalid (e.g. not well-formed)
-       const PACKAGE_ERROR_RECIPIENT_MISMATCH = 'recipient_error'; // Recipient is not us
-       const PACKAGE_LEVEL_CHECK_OKAY         = 'checked_package'; // Package is fine
-
-       // Package data
-       const PACKAGE_RAW_DATA   = 'raw_data';
-       const PACKAGE_ERROR_CODE = 'error_code';
-
-       // Start/end marker
-       const STREAM_START_MARKER = '[[S]]';
-       const STREAM_END_MARKER   = '[[E]]';
-
-       /**
-        * Stacker for raw data
-        */
-       const STACKER_NAME_RAW_DATA = 'raw_data';
-
+class BaseRawDataHandler extends BaseHubHandler implements HandleableRawData {
        /**
         * Error code from socket
         */
@@ -103,24 +83,24 @@ class BaseRawDataHandler extends BaseHubHandler implements HubInterface {
        /**
         * Adds given raw data to the raw data stacker
         *
-        * @param       $rawData        raw data from the socket resource
+        * @param       $rawData        Raw data from the socket resource
         * @return      void
         */
        protected function addRawDataToStacker ($rawData) {
                // Trace message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('RAW-DATA-HANDLER: rawData()=%d - CALLED!', strlen($rawData)));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('RAW-DATA-HANDLER: rawData(%d)=%s - CALLED!', strlen($rawData), $rawData));
 
                /*
                 * Add the deocoded data and error code to the stacker so other classes
                 * (e.g. NetworkPackage) can "pop" it from the stacker.
                 */
                $this->getStackInstance()->pushNamed(self::STACKER_NAME_RAW_DATA, array(
-                       self::PACKAGE_RAW_DATA   => $rawData,
-                       self::PACKAGE_ERROR_CODE => $this->getErrorCode()
+                       HandleableRawData::PACKAGE_RAW_DATA   => $rawData,
+                       HandleableRawData::PACKAGE_ERROR_CODE => $this->getErrorCode()
                ));
 
                // Trace message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('RAW-DATA-HANDLER: EXIT!');
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('RAW-DATA-HANDLER: EXIT!');
        }
 
        /**
index 17905bfe1ef5fd64a6d7880e210c90e5d6eaab8c..00f402be26a41e1e32807d1556a3fb075a1b95b7 100644 (file)
@@ -1,10 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Network\Socket\RawData;
+namespace Org\Shipsimu\Hub\Handler\Network\Socket\RawData;
 
 // Import application-specific stuff
-use Hub\Handler\Network\RawData\BaseRawDataHandler;
-use Hub\Network\Networkable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Handler\Network\RawData\BaseRawDataHandler;
+use Org\Shipsimu\Hub\Network\Networkable;
 
 /**
  * A file-based socket raw data handler
@@ -59,11 +60,11 @@ class SocketRawDataHandler extends BaseRawDataHandler implements Networkable {
         * Processes raw data from given socket instance. This is mostly useful for
         * raw package handling and is implemented in the ???Listener class.
         *
-        * @param       $resource       A valid socket resource array
+        * @param       $socketInstance         An instance of a StorableSocket class
         * @return      void
         */
-       public function processRawDataFromSocketArray (array $socketArray) {
-               $this->partialStub('socketArray=' . print_r($socketArray, TRUE));
+       public function processRawDataFromSocketInstance (StorableSocket $socketInstance) {
+               $this->partialStub('socketInstance=' . print_r($socketInstance, TRUE));
        }
 
 }
index c09a61e2a4ce3f257b0223a12cf1ae929bb788a2..d233f3260557100f1a2532b49cb14d49300ace37 100644 (file)
@@ -142,7 +142,7 @@ use Hub\Listener\BaseListener;
 use Hub\Listener\Listenable;
 
 // Import framework stuff
-use CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
 
 <?php
 /**
index b22a8d553a7eb3cc371f1b774a8f753337753e25..3d978904a1f3f816d60fe71067e6e15ddbc5acbf 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Network\RawData\Tcp;
+namespace Org\Shipsimu\Hub\Handler\Network\RawData\Tcp;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Handler\Network\RawData\BaseRawDataHandler;
-use Hub\Network\Networkable;
-use Hub\Pool\Poolable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Handler\Network\RawData\BaseRawDataHandler;
+use Org\Shipsimu\Hub\Network\Networkable;
+use Org\Shipsimu\Hub\Pool\Poolable;
 
 // Import framework stuff
-use CoreFramework\Socket\InvalidSocketException;
+use Org\Mxchange\CoreFramework\Socket\InvalidSocketException;
 
 // Import SPL stuff
 use \InvalidArgumentException;
@@ -37,6 +37,11 @@ use \InvalidArgumentException;
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 class TcpRawDataHandler extends BaseRawDataHandler implements Networkable {
+       /**
+        * Last socket error (default: Success)
+        */
+       private $lastSocketError = 0;
+
        /**
         * Protected constructor
         *
@@ -69,76 +74,69 @@ class TcpRawDataHandler extends BaseRawDataHandler implements Networkable {
         *
         * @param       $resource       A valid socket resource array
         * @return      void
-        * @throws      InvalidArgumentException        If the socket instance is not set
         */
-       public function processRawDataFromSocketArray (array $socketArray) {
+       public function processRawDataFromSocketInstance (StorableSocket $socketInstance) {
                // Trace message
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('TCP-RAWDATA-HANDLER: socketArray()=%d - CALLED!', count($socketArray)));
-
-               // Check the resource
-               if ((!isset($socketArray[Poolable::SOCKET_ARRAY_INSTANCE])) || (!($socketArray[Poolable::SOCKET_ARRAY_INSTANCE] instanceof StorableSocket))) {
-                       // Throw an exception
-                       throw new InvalidArgumentException(sprintf('socketArray[%s] is not set or invalid.', Poolable::SOCKET_ARRAY_INSTANCE));
-               } // END - if
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('TCP-RAW-DATA-HANDLER: socketInstance=%s - CALLED!', $socketInstance->__toString()));
 
                // Reset error code to unhandled
-               $this->setErrorCode(self::SOCKET_ERROR_UNHANDLED);
+               $this->setErrorCode(StorableSocket::SOCKET_ERROR_UNHANDLED);
 
                // Debug message
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TCP-RAWDATA-HANDLER: Handling TCP package from resource=' . $socketArray[Poolable::SOCKET_ARRAY_INSTANCE] . ',type=' . $socketArray[Poolable::SOCKET_ARRAY_CONN_TYPE] . ',last error=' . socket_strerror($this->lastSocketError));
-               $this->partialStub('Please rewrite this part.');
-               return;
-
-               /*
-                * Read the raw data from socket. If you change PHP_BINARY_READ to
-                * PHP_NORMAL_READ, this line will endless block. This script does only
-                * provide simultanous or faked threads, not real.
-                */
-               $rawData = socket_read($socketArray[Poolable::SOCKET_ARRAY_INSTANCE], $this->getConfigInstance()->getConfigEntry('tcp_buffer_length'), PHP_BINARY_READ);
-
-               // Get socket error code back
-               $this->lastSocketError = $socketArray[Poolable::SOCKET_ARRAY_INSTANCE]->getSocketLastErrorCode();
-
-               // Debug output of read data length
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TCP-RAWDATA-HANDLER: rawData[' . gettype($rawData) . ']=' . strlen($rawData) . ',MD5=' . md5($rawData) . ',resource=' . $socketArray[Poolable::SOCKET_ARRAY_INSTANCE] . ',this->lastSocketError=' . socket_strerror($this->lastSocketError));
-               /* NOISY-DEBUG: */ if ($rawData !== FALSE) self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TCP-RAWDATA-HANDLER: rawData=' . $rawData);
-
-               // Is it valid?
-               if ($this->lastSocketError == 11) {
-                       // Debug message
-                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TCP-RAWDATA-HANDLER: Ignoring error 11 (Resource temporary unavailable) from socket resource=' . $socketArray[Poolable::SOCKET_ARRAY_INSTANCE]);
-
-                       /*
-                        * Error code 11 (Resource temporary unavailable) can be safely
-                        * ignored on non-blocking sockets. The socket is currently not
-                        * sending any data.
-                        */
-                        $socketArray[Poolable::SOCKET_ARRAY_INSTANCE]->clearLastSocketError();
-
-                        // Skip any further processing
-                        return;
-               } elseif (($rawData === FALSE) || ($this->lastSocketError > 0)) {
-                       // Network error or connection lost
-                       $this->setErrorCode($this->lastSocketError);
-               } elseif (empty($rawData)) {
-                       // Trace message
-                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TCP-RAWDATA-HANDLER: No raw data pending. - EXIT!');
-
-                       // The peer did send nothing to us which is now being ignored
-                       return;
-               } else {
-                       /*
-                        * All is fine at this point. So it is okay to add the raw data to
-                        * the stacker. Here it doesn't matter if the raw data is a
-                        * well-formed BASE64-encoded message with start and markers. This
-                        * will be checked later on.
-                        */
-                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TCP-RAWDATA-HANDLER: Adding ' . strlen($rawData) . ' bytes to stacker ...');
-                       $this->addRawDataToStacker($rawData);
-               }
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TCP-RAW-DATA-HANDLER: Handling TCP package from resource=' . $socketInstance->getSocketResource() . ',last error=' . $socketInstance->getLastSocketErrorMessage());
+
+               // Read the raw data from socket in a loop
+               while ($rawData = $socketInstance->readDataFromSocket()) {
+                       // Get socket error code back
+                       $this->lastSocketError = $socketInstance->getLastSocketErrorCode();
+
+                       // Debug output of read data length
+                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TCP-RAW-DATA-HANDLER: rawData[' . gettype($rawData) . ']=' . strlen($rawData) . ',MD5=' . md5($rawData) . ',resource=' . $socketInstance . ',this->lastSocketError=' . socket_strerror($this->lastSocketError));
+
+                       // Is not FALSE?
+                       if ($rawData !== FALSE) {
+                               // Output raw data
+                               /* NOISY-DEBUG: */self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TCP-RAW-DATA-HANDLER: rawData=' . $rawData);
+                       } // END - if
+
+                       // Is it valid?
+                       if ($this->lastSocketError == 11) {
+                               // Debug message
+                               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TCP-RAW-DATA-HANDLER: Ignoring error 11 (Resource temporary unavailable) from socket resource=' . $socketInstance);
+
+                               /*
+                                * Error code 11 (Resource temporary unavailable) can be safely
+                                * ignored on non-blocking sockets. The socket is currently not
+                                * sending any data.
+                                */
+                                $socketInstance->clearLastSocketError();
+
+                               // Skip any further processing
+                               continue;
+                       } elseif (($rawData === FALSE) || ($this->lastSocketError > 0)) {
+                               // Network error or connection lost
+                               $this->setErrorCode($this->lastSocketError);
+                               break;
+                       } elseif (empty($rawData)) {
+                               // Trace message
+                               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TCP-RAW-DATA-HANDLER: No raw data pending. - EXIT!');
+
+                               // The peer did send nothing to us which is now being ignored
+                               continue;
+                       } else {
+                               /*
+                                * All is fine at this point. So it is okay to add the raw data to
+                                * the stacker. Here it doesn't matter if the raw data is a
+                                * well-formed BASE64-encoded message with start and markers. This
+                                * will be checked later on.
+                                */
+                               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TCP-RAW-DATA-HANDLER: Adding ' . strlen($rawData) . ' bytes to stacker ...');
+                               $this->addRawDataToStacker($rawData);
+                       }
+               } // END - while
 
                // Trace message
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TCP-RAWDATA-HANDLER: EXIT!');
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TCP-RAW-DATA-HANDLER: EXIT!');
 
        }
 
index a8e193b07139ae5c05d9d2c0ab051f51e240f7c2..221099b35dc9ecef8fa0efe7e1c660afc4412f9b 100644 (file)
@@ -1,11 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Network\RawData\Udp;
+namespace Org\Shipsimu\Hub\Handler\Network\RawData\Udp;
 
 // Import application-specific stuff
-use Hub\Handler\Network\RawData\BaseRawDataHandler;
-use Hub\Network\Networkable;
-use Hub\Pool\Poolable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Handler\Network\RawData\BaseRawDataHandler;
+use Org\Shipsimu\Hub\Network\Networkable;
+use Org\Shipsimu\Hub\Pool\Poolable;
 
 /**
  * A UDP raw data handler
@@ -46,7 +47,7 @@ class UdpRawDataHandler extends BaseRawDataHandler implements Networkable {
        /**
         * Creates an instance of this class
         *
-        * @return      $handlerInstance                An instance of a Networkable class
+        * @return      $handlerInstance        An instance of a Networkable class
         */
        public static final function createUdpRawDataHandler () {
                // Get new instance
@@ -60,25 +61,15 @@ class UdpRawDataHandler extends BaseRawDataHandler implements Networkable {
         * Processes raw data from given socket instance. This is mostly useful for
         * UDP package handling and is implemented in the UDPListener class
         *
-        * @param       $resource       A valid socket resource array
+        * @param       $socketInstance         An instance of a StorableSocket socket
         * @return      void
-        * @throws      InvalidArgumentException        If the socket instance is not set
         */
-       public function processRawDataFromSocketArray (array $socketArray) {
-               // Debug message
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('UDP-HANDLER: socketArray()=%d - CALLED!', count($socketArray)));
-
-               // Check the resource
-               if ((!isset($socketArray[Poolable::SOCKET_ARRAY_INSTANCE])) || (!($socketArray[Poolable::SOCKET_ARRAY_INSTANCE] instanceof StorableSocket))) {
-                       // Throw an exception
-                       throw new InvalidArgumentException(sprintf('socketArray[%s] is not set or invalid.', Poolable::SOCKET_ARRAY_INSTANCE));
-               } // END - if
-
+       public function processRawDataFromSocketInstance (StorableSocket $socketInstance) {
                // Reset error code to unhandled
-               $this->setErrorCode(self::SOCKET_ERROR_UNHANDLED);
+               $this->setErrorCode(StorableSocket::SOCKET_ERROR_UNHANDLED);
 
                // Debug message
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('UDP-HANDLER: Handling UDP package from resource=' . $socketArray[Poolable::SOCKET_ARRAY_INSTANCE] . ',type=' . $socketArray[Poolable::SOCKET_ARRAY_CONN_TYPE] . ',last error=' . socket_strerror($this->lastSocketError));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('UDP-HANDLER: Handling UDP package from resource=' . $socketInstance->getSocketResource() . ',last error=' . $socketInstance->getLastSocketErrorMessage());
                $this->partialStub('Please rewrite this part.');
                return;
        }
index 482a99d084f644800a578fb83d17851abf05b93e..f18be2ab4b7c49de4c9965df28fc878bf992bb4a 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Helper;
+namespace Org\Shipsimu\Hub\Helper;
 
 // Import hub-specific stuff
-use Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
 /**
  * A general hub helper class. This class does not extend BaseHelper.
index 7d83fec76f2ad221523f4934a0b859f0f64d1d43..23faea7a56a6baef6cdaf8f73628fbf49943dbb1 100644 (file)
@@ -1,22 +1,22 @@
 <?php
 // Own namespace
-namespace Hub\Helper\Connection;
+namespace Org\Shipsimu\Hub\Helper\Connection;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Factory\Fragmenter\FragmenterFactory;
-use Hub\Factory\Network\NetworkPackageFactory;
-use Hub\Factory\State\Peer\PeerStateFactory;
-use Hub\Helper\BaseHubSystemHelper;
-use Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Factory\Fragmenter\FragmenterFactory;
+use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
+use Org\Shipsimu\Hub\Factory\State\Peer\PeerStateFactory;
+use Org\Shipsimu\Hub\Helper\BaseHubSystemHelper;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Generic\FrameworkInterface;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A general ConnectionHelper class
@@ -189,27 +189,32 @@ class BaseConnectionHelper extends BaseHubSystemHelper implements Visitable, Reg
                $rawDataChunk = $this->getFragmenterInstance()->getNextRawDataChunk($this->currentFinalHash);
 
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-HELPER: rawDataChunk=' . print_r($rawDataChunk, TRUE));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-HELPER: rawDataChunk=' . print_r($rawDataChunk, TRUE));
 
                // Get chunk hashes and chunk data
                $chunkHashes = array_keys($rawDataChunk);
                $chunkData   = array_values($rawDataChunk);
 
+               // Default is empty raw data
+               $rawData = '';
+
                // Is the required data there?
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-HELPER: chunkHashes[]=' . count($chunkHashes) . ',chunkData[]=' . count($chunkData));
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('chunkData='.print_r($chunkData, TRUE));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-HELPER: chunkHashes[]=' . count($chunkHashes) . ',chunkData[]=' . count($chunkData));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('chunkData='.print_r($chunkData, TRUE));
                if ((isset($chunkHashes[0])) && (isset($chunkData[0]))) {
                        // Remember this chunk as queued
                        $this->queuedChunks[$chunkHashes[0]] = $chunkData[0];
 
                        // Return the raw data
-                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-HELPER: Returning ' . strlen($chunkData[0]) . ' bytes from ' . __METHOD__ . ' ...');
-                       return $chunkData[0];
-               } else {
-                       // Return zero string
-                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-HELPER: Returning zero bytes from ' . __METHOD__ . '!');
-                       return '';
-               }
+                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-HELPER: rawData()=' . strlen($chunkData[0]) . ' bytes.');
+                       $rawData = $chunkData[0];
+               } // END - if
+
+               // Trace message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-HELPER: rawData()=%d - EXIT!', strlen($rawData)));
+
+               // Return raw data
+               return $rawData;
        }
 
        /**
@@ -237,7 +242,7 @@ class BaseConnectionHelper extends BaseHubSystemHelper implements Visitable, Reg
         */
        public function sendRawPackageData (array $packageData) {
                // Trace message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-HELPER: packageData()=%d - CALLED!', count($packageData)));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-HELPER: packageData()=%d - CALLED!', count($packageData)));
 
                // The helper's state must be 'connected'
                $this->getStateInstance()->validatePeerStateConnected();
@@ -246,12 +251,12 @@ class BaseConnectionHelper extends BaseHubSystemHelper implements Visitable, Reg
                $finalHash = $this->getFragmenterInstance()->fragmentPackageArray($packageData, $this);
 
                // Trace message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-HELPER: finalHash[%s]=%s', gettype($finalHash), $finalHash));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-HELPER: finalHash[%s]=%s', gettype($finalHash), $finalHash));
 
                // Is the final hash set?
                if ($finalHash !== TRUE) {
                        // Debug message
-                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-HELPER: Setting finalHash=' . $finalHash . ',currentFinalHash[' . gettype($this->currentFinalHash) . ']=' . $this->currentFinalHash);
+                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-HELPER: Setting finalHash=' . $finalHash . ',currentFinalHash[' . gettype($this->currentFinalHash) . ']=' . $this->currentFinalHash);
 
                        // Set final hash
                        $this->currentFinalHash = $finalHash;
@@ -267,26 +272,32 @@ class BaseConnectionHelper extends BaseHubSystemHelper implements Visitable, Reg
                // Fill sending buffer with data
                while (TRUE) {
                        // Debug message
-                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-HELPER: dataStream()=%d', strlen($dataStream)));
+                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-HELPER: dataStream()=%d - BEFORE!', strlen($dataStream)));
 
                        // Convert the package data array to a raw data stream
                        $dataStream = $this->getRawDataFromPackageArray($packageData);
 
+                       // Debug message
+                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-HELPER: dataStream()=%d - AFTER!', strlen($dataStream)));
+
                        // Is it empty?
                        if (strlen($dataStream) == 0) {
+                               // Debug message
+                               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-HELPER: dataStream is now empty, exiting loop ...');
+
                                // Abort here
                                break;
                        } // END - if
 
                        // Debug message
-                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-HELPER: Adding ' . strlen($dataStream) . ' bytes to the sending buffer ...');
+                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-HELPER: Adding ' . strlen($dataStream) . ' bytes to the sending buffer ...');
 
                        // Add raw data
                        $rawData .= $dataStream;
                } // END - while
 
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-HELPER: rawData()=%d', strlen($rawData)));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-HELPER: rawData()=%d - after loop ...', strlen($rawData)));
 
                // Nothing to sent is bad news, so assert on it
                assert(strlen($rawData) > 0);
@@ -295,13 +306,13 @@ class BaseConnectionHelper extends BaseHubSystemHelper implements Visitable, Reg
                $bufferSize = $this->getConfigInstance()->getConfigEntry($this->getProtocolName() . '_buffer_length');
 
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-HELPER: bufferSize=%d', $bufferSize));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-HELPER: bufferSize=%d', $bufferSize));
 
                // Encode the raw data with our output-stream
                $encodedData = $this->getOutputStreamInstance()->streamData($rawData);
 
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-HELPER: socketResource[]=' . gettype($this->getSocketInstance()->getSocketResource()));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-HELPER: socketResource[%s]=%s', gettype($this->getSocketInstance()->getSocketResource()), $this->getSocketInstance()->getSocketResource()));
 
                // Init array
                $encodedDataArray = array(
@@ -310,20 +321,14 @@ class BaseConnectionHelper extends BaseHubSystemHelper implements Visitable, Reg
                        NetworkPackage::RAW_INDEX_SENT_BYTES      => 0,
                        NetworkPackage::RAW_INDEX_SOCKET_INSTANCE => $this->getSocketInstance(),
                        NetworkPackage::RAW_INDEX_BUFFER_SIZE     => $bufferSize,
-                       NetworkPackage::RAW_INDEX_DIFF            => 0
+                       NetworkPackage::RAW_INDEX_DIFF            => ($bufferSize - strlen($encodedData)),
                );
 
-               // Calculate difference
-               $diff = $encodedDataArray[NetworkPackage::RAW_INDEX_BUFFER_SIZE] - strlen($encodedDataArray[NetworkPackage::RAW_INDEX_ENCODED_DATA]);
-
-               // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-HELPER: diff=' . $diff);
-
                // Push raw data to the package's outgoing stack
                $this->getPackageInstance()->getStackInstance()->pushNamed(NetworkPackage::STACKER_NAME_OUTGOING_STREAM, $encodedDataArray);
 
                // Trace message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-HELPER: EXIT!');
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-HELPER: EXIT!');
        }
 
        /**
index 877f08556f8daba6ae73cd74ff86bf9029190e1a..37cf5057d6c9f2b7bc6138a6dc32f9a722bc5e1c 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Helper\Connection\Network\IpV4;
+namespace Org\Shipsimu\Hub\Helper\Connection\Network\IpV4;
 
 // Import application-specific stuff
-use Hub\Factory\State\Peer\PeerStateFactory;
-use Hub\Helper\Connection\BaseConnectionHelper;
-use Hub\Locator\Node\LocateableNode;
+use Org\Shipsimu\Hub\Factory\State\Peer\PeerStateFactory;
+use Org\Shipsimu\Hub\Helper\Connection\BaseConnectionHelper;
+use Org\Shipsimu\Hub\Locator\Node\LocateableNode;
 
 /**
  * A ??? connection helper class
index 7513b416a554d23e5c713551fa73f9ce8b0eba0e..afff6958836c6eed9eb9a2549539c240cd6654e8 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Helper\Connection\Network\IpV4\Tcp;
+namespace Org\Shipsimu\Hub\Helper\Connection\Network\IpV4\Tcp;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Factory\Handler\Protocol\ProtocolHandlerFactory;
-use Hub\Factory\Socket\SocketFactory;
-use Hub\Helper\Connection\ConnectionHelper;
-use Hub\Helper\Connection\Network\IpV4\BaseIpV4ConnectionHelper;
-use Hub\Locator\Node\LocateableNode;
-use Hub\Network\Package\NetworkPackage;
-use Hub\Tools\HubTools;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Factory\Handler\Protocol\ProtocolHandlerFactory;
+use Org\Shipsimu\Hub\Factory\Socket\SocketFactory;
+use Org\Shipsimu\Hub\Helper\Connection\ConnectionHelper;
+use Org\Shipsimu\Hub\Helper\Connection\Network\IpV4\BaseIpV4ConnectionHelper;
+use Org\Shipsimu\Hub\Locator\Node\LocateableNode;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Tools\HubTools;
 
 // Import framework stuff
 
index 32e286320f0e000ae7b825b63fd8a6ff601c0fb1..6cf3aa87eba90fb577b2d63bce2cba9b752d9f46 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Helper\Connection\Network\IpV4\Udp;
+namespace Org\Shipsimu\Hub\Helper\Connection\Network\IpV4\Udp;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Helper\Connection\ConnectionHelper;
-use Hub\Helper\Connection\Network\IpV4\BaseIpV4ConnectionHelper;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Helper\Connection\ConnectionHelper;
+use Org\Shipsimu\Hub\Helper\Connection\Network\IpV4\BaseIpV4ConnectionHelper;
 
 /**
  * A UDP connection helper class
index 436b1add012c6c6ad23c757e7e7d9b841b8c215f..2dd0b90fcdb425fc15ed2749007692d44cce57ef 100644 (file)
@@ -1,17 +1,17 @@
 <?php
 // Own namespace
-namespace Hub\Helper\Dht\Bootstrap;
+namespace Org\Shipsimu\Hub\Helper\Dht\Bootstrap;
 
 // Import application-specific stuff
-use Hub\Dht\Distributable;
-use Hub\Factory\Network\NetworkPackageFactory;
-use Hub\Generic\BaseHubSystem;
-use Hub\Helper\BaseHubSystemHelper;
-use Hub\Helper\Dht\HelpableDht;
-use Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Dht\Distributable;
+use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Helper\BaseHubSystemHelper;
+use Org\Shipsimu\Hub\Helper\Dht\HelpableDht;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
 
 // Import framework stuff
-use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
+use Org\Mxchange\CoreFramework\Factory\Template\XmlTemplateEngineFactory;
 
 /**
  * A Bootstrap Dht helper class
index bf1c13a37b583944ddd3437f8a8ce806e11e28d4..44fc5bd1df403afac8ff38b1d5a0c9fbb92ad3b9 100644 (file)
@@ -1,17 +1,17 @@
 <?php
 // Own namespace
-namespace Hub\Helper\Dht\Publish;
+namespace Org\Shipsimu\Hub\Helper\Dht\Publish;
 
 // Import application-specific stuff
-use Hub\Dht\Distributable;
-use Hub\Factory\Network\NetworkPackageFactory;
-use Hub\Generic\BaseHubSystem;
-use Hub\Helper\BaseHubSystemHelper;
-use Hub\Helper\Dht\HelpableDht;
-use Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Dht\Distributable;
+use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Helper\BaseHubSystemHelper;
+use Org\Shipsimu\Hub\Helper\Dht\HelpableDht;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
 
 // Import framework stuff
-use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
+use Org\Mxchange\CoreFramework\Factory\Template\XmlTemplateEngineFactory;
 
 /**
  * A PublishingEntry Dht helper class
index 214561350591402616eae6f0f03768e752fe877a..6fc29f74d7b809a284aaaa4a566ad4272a859dfb 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Helper\Message;
+namespace Org\Shipsimu\Hub\Helper\Message;
 
 // Import application-specific stuff
-use Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
 /**
  * A general Message class
index 8940f1cfa25f3f1b53fe4d53171d83bb0486044b..15dd4caf9800d6f85610869bf529aaa245cf836b 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Helper\Crypto\Message\RandomUnit;
+namespace Org\Shipsimu\Hub\Helper\Crypto\Message\RandomUnit;
 
 // Import application-specific stuff
-use Hub\Factory\Source\Unit\UnitSourceFactory;
+use Org\Shipsimu\Hub\Factory\Source\Unit\UnitSourceFactory;
 
 /**
  * A CryptoRandom message helper
index c5928ab3242a56145fe44d8f863bcab5a6201d1e..c8fd613514dfb71675ae617f445dcff85c532ba4 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Node\Helper\Announcement;
+namespace Org\Shipsimu\Hub\Node\Helper\Announcement;
 
 // Import application-specific stuff
-use Hub\Factory\Network\NetworkPackageFactory;
-use Hub\Helper\Node\BaseNodeHelper;
-use Hub\Helper\Node\NodeHelper;
-use Hub\Network\Package\NetworkPackage;
-use Hub\Node\Helper\HelpableNode;
+use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
+use Org\Shipsimu\Hub\Helper\Node\BaseNodeHelper;
+use Org\Shipsimu\Hub\Helper\Node\NodeHelper;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Node\Helper\HelpableNode;
 
 // Import framework stuff
-use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
+use Org\Mxchange\CoreFramework\Factory\Template\XmlTemplateEngineFactory;
 
 /**
  * A helper class for announcing this node to other nodes
index b8308a5cb87c23cd52728d96c3d6e4cbc701739c..79942418a50591979098dcbe6b9a920f56fe647c 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Node\Helper\Answer\Announcement;
+namespace Org\Shipsimu\Hub\Node\Helper\Answer\Announcement;
 
 // Import application-specific stuff
-use Hub\Factory\Network\NetworkPackageFactory;
-use Hub\Helper\Node\NodeHelper;
-use Hub\Node\Helper\HelpableNode;
+use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
+use Org\Shipsimu\Hub\Helper\Node\NodeHelper;
+use Org\Shipsimu\Hub\Node\Helper\HelpableNode;
 
 // Import framework stuff
-use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
+use Org\Mxchange\CoreFramework\Factory\Template\XmlTemplateEngineFactory;
 
 /**
  * A AnnouncementMessageAnswer node helper class
index 89d5c0a88517a33caaab4066c8f11b14771243aa..7eae6be6e1053de523400c5215e730ce29e7a7bc 100644 (file)
@@ -3,7 +3,7 @@
 namespace Helper\Node\Answer;
 
 // Import application-specific stuff
-use Hub\Helper\Node\BaseNodeHelper;
+use Org\Shipsimu\Hub\Helper\Node\BaseNodeHelper;
 
 /**
  * A general hub message answer helper class
index bd78c34a48e9ef9373d0990046a59b93500e42bb..6903b0ce2ba76fb69741d6e4e4be7d68af7ed272 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Node\Helper\Answer\Dht\Bootstrap;
+namespace Org\Shipsimu\Hub\Node\Helper\Answer\Dht\Bootstrap;
 
 // Import application-specific stuff
-use Hub\Factory\Network\NetworkPackageFactory;
-use Hub\Helper\Node\NodeHelper;
-use Hub\Node\Helper\HelpableNode;
-use Hub\Template\Engine\Xml\Dht\Bootstrap\XmlDhtBootstrapTemplateEngine;
+use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
+use Org\Shipsimu\Hub\Helper\Node\NodeHelper;
+use Org\Shipsimu\Hub\Node\Helper\HelpableNode;
+use Org\Shipsimu\Hub\Template\Engine\Xml\Dht\Bootstrap\XmlDhtBootstrapTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
+use Org\Mxchange\CoreFramework\Factory\Template\XmlTemplateEngineFactory;
 
 /**
  * A DhtBootstrapMessageAnswer node helper class
index d7a2087415c82360b1567c43d41db87c083e3a92..623bd4eb001a7bc6dd800a21f7f5831c48435645 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Node\Helper\Answer\Request\NodeList;
+namespace Org\Shipsimu\Hub\Node\Helper\Answer\Request\NodeList;
 
 // Import application-specific stuff
-use Hub\Factory\Network\NetworkPackageFactory;
-use Hub\Helper\Node\NodeHelper;
-use Hub\Node\Helper\HelpableNode;
+use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
+use Org\Shipsimu\Hub\Helper\Node\NodeHelper;
+use Org\Shipsimu\Hub\Node\Helper\HelpableNode;
 
 // Import framework stuff
-use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
+use Org\Mxchange\CoreFramework\Factory\Template\XmlTemplateEngineFactory;
 
 /**
  * A RequestNodeListMessageAnswer node helper class
index dfe6bac553eaffcfd55695acebda2624431b2f15..faa91d3e4d1e4ee6744c602f8e2b1485c3f58b9f 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Helper\Node;
+namespace Org\Shipsimu\Hub\Helper\Node;
 
 // Import hub-specific stuff
-use Hub\Generic\BaseHubSystem;
-use Hub\Helper\BaseHubSystemHelper;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Helper\BaseHubSystemHelper;
 
 /**
  * A general node helper class
index 00dc7f0e6469154694fa2468bed22f6974193fb3..2c2cbb73f8b7ba48e9607cfa3d0e461af77f7163 100644 (file)
@@ -1,17 +1,17 @@
 <?php
 // Own namespace
-namespace Hub\Node\Helper\SelfConnect;
+namespace Org\Shipsimu\Hub\Node\Helper\SelfConnect;
 
 // Import application-specific stuff
-use Hub\Factory\Network\NetworkPackageFactory;
-use Hub\Helper\Node\BaseNodeHelper;
-use Hub\Helper\Node\NodeHelper;
-use Hub\Network\Package\NetworkPackage;
-use Hub\Node\Helper\HelpableNode;
-use Hub\Tag\Tagable;
+use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
+use Org\Shipsimu\Hub\Helper\Node\BaseNodeHelper;
+use Org\Shipsimu\Hub\Helper\Node\NodeHelper;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Node\Helper\HelpableNode;
+use Org\Shipsimu\Hub\Tag\Tagable;
 
 // Import framework stuff
-use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
+use Org\Mxchange\CoreFramework\Factory\Template\XmlTemplateEngineFactory;
 
 /**
  * A SelfConnect hub helper class
index d3b0932b4f057b9daceff5361d817ee31c606aa2..0ac6ef5995fba020bcf01ed7accd4e0bbacaf0e9 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Node\Helper\Request\NodeList;
+namespace Org\Shipsimu\Hub\Node\Helper\Request\NodeList;
 
 // Import application-specific stuff
-use Hub\Factory\Network\NetworkPackageFactory;
-use Hub\Helper\Node\BaseNodeHelper;
-use Hub\Helper\Node\NodeHelper;
-use Hub\Network\Package\NetworkPackage;
-use Hub\Node\Helper\HelpableNode;
+use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
+use Org\Shipsimu\Hub\Helper\Node\BaseNodeHelper;
+use Org\Shipsimu\Hub\Helper\Node\NodeHelper;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Node\Helper\HelpableNode;
 
 // Import framework stuff
-use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
+use Org\Mxchange\CoreFramework\Factory\Template\XmlTemplateEngineFactory;
 
 /**
  * A ??? hub helper class
index b0ab1a5bec9ad0adcdc702d0908f1826e051afa9..d09e8466eb677c4d83d96926603d1b1700ccaea9 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Helper\WorkUnit;
+namespace Org\Shipsimu\Hub\Helper\WorkUnit;
 
 // Import application-specific stuff
-use Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
 /**
  * A general WorkUnit class
index 837ebb2697a90a39aec3d66352d4ae60ae677bc8..838065639b69cd35830c7e6a6db89ae655057b0e 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Information;
+namespace Org\Shipsimu\Hub\Information;
 
 // Import application-specific stuff
-use Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
 /**
  * A general Info class
index 990f52b12a4aa90d8ea5bff2c1996ea578d8aad0..7406f3477e8f6312b9face37b956d621984155f4 100644 (file)
@@ -1,18 +1,18 @@
 <?php
 // Own namespace
-namespace Hub\Information\Connection;
+namespace Org\Shipsimu\Hub\Information\Connection;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Helper\Connection\ConnectionHelper;
-use Hub\Information\BaseInfo;
-use Hub\Information\ShareableInfo;
-use Hub\Listener\Listenable;
-use Hub\Locator\Node\LocateableNode;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Helper\Connection\ConnectionHelper;
+use Org\Shipsimu\Hub\Information\BaseInfo;
+use Org\Shipsimu\Hub\Information\ShareableInfo;
+use Org\Shipsimu\Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Locator\Node\LocateableNode;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Socket\InvalidSocketException;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Socket\InvalidSocketException;
 
 /**
  * A Connection information class
@@ -37,6 +37,11 @@ use CoreFramework\Socket\InvalidSocketException;
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 class ConnectionInfo extends BaseInfo implements ShareableInfo, Registerable {
+       /**
+        * Connection type: 'incoming', 'outgoing', 'server'
+        */
+       private $connectionType = 'invalid';
+
        /**
         * Protected constructor
         *
@@ -50,16 +55,39 @@ class ConnectionInfo extends BaseInfo implements ShareableInfo, Registerable {
        /**
         * Creates an instance of this class
         *
+        * @param       $connectionType         Connection type (valid: 'incoming', 'outgoing', 'server')
         * @return      $infoInstance   An instance of a ShareableInfo class
         */
-       public final static function createConnectionInfo () {
+       public final static function createConnectionInfo ($connectionType) {
                // Get new instance
                $infoInstance = new ConnectionInfo();
 
+               // Set connection type here
+               $infoInstance->setConnectionType($connectionType);
+
                // Return the prepared instance
                return $infoInstance;
        }
 
+       /**
+        * Setter for connection type
+        *
+        * @param       $connectionType         Connection type
+        * @return      void
+        */
+       private function setConnectionType ($connectionType) {
+               $this->connectionType = $connectionType;
+       }
+
+       /**
+        * Getter for connection type
+        *
+        * @return      $connectionType         Connection type
+        */
+       public final function getConnectionType () {
+               return $this->connectionType;
+       }
+
        /**
         * Fills the information class with data from a Listenable instance
         *
index c871039f6dd0beee4c37e14cddd7caf3426f0b5b..5ed7daa46a425721f754173726f965f99d640612 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Iterator\Network\Listener;
+namespace Org\Shipsimu\Hub\Iterator\Network\Listener;
 
 // Import framework stuff
-use CoreFramework\Iterator\BaseIterator;
-use CoreFramework\Lists\Listable;
+use Org\Mxchange\CoreFramework\Iterator\BaseIterator;
+use Org\Mxchange\CoreFramework\Lists\Listable;
 
 // Import SPL stuff
 use \Iterator;
index 905e4f0fd460ff73fbc7d5b1e7024c04174d0470..f6ca5e9c79d57d41c09fc1506ad7ee718094aa86 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Iterator\Node\Ping;
+namespace Org\Shipsimu\Hub\Iterator\Node\Ping;
 
 // Import framework stuff
-use CoreFramework\Iterator\BaseIterator;
+use Org\Mxchange\CoreFramework\Iterator\BaseIterator;
 
 // Import SPL stuff
 use \Iterator;
index acbb5eb321b14c66b2993f611e132a1844ce6bc1..85c3bda8ee3d447f17826ca95fde54a7885f7124 100644 (file)
@@ -3,7 +3,7 @@
 namespace Hub\Iterator\Handler\;
 
 // Import framework stuff
-use CoreFramework\Iterator\BaseIterator;
+use Org\Mxchange\CoreFramework\Iterator\BaseIterator;
 
 // Import SPL stuff
 use \Iterator;
index bb100c97d929b36a1208399f591b1e665ec02c60..6f528bd9516490db703cfb2ba4e5c06082510cb7 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Iterator\Handler\Pool;
+namespace Org\Shipsimu\Hub\Iterator\Handler\Pool;
 
 // Import framework stuff
-use CoreFramework\Iterator\BaseIterator;
-use CoreFramework\Lists\Listable;
+use Org\Mxchange\CoreFramework\Iterator\BaseIterator;
+use Org\Mxchange\CoreFramework\Lists\Listable;
 
 // Import SPL stuff
 use \Iterator;
index 04ce447daeaf804868234a9469773d41c06396f5..43e4eb32d3cff2e0eab86ff7662014b193f7bfad 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Iterator\Pool\Monitor;
+namespace Org\Shipsimu\Hub\Iterator\Pool\Monitor;
 
 // Import framework stuff
-use CoreFramework\Iterator\BaseIterator;
-use CoreFramework\Lists\Listable;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Iterator\BaseIterator;
+use Org\Mxchange\CoreFramework\Lists\Listable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 // Import SPL stuff
 use \Iterator;
index 998c3aa6074362a58ec59f46e668a8ae53b9f108..8ecf9de32559a32206284ed766511fb8b404c118 100644 (file)
@@ -3,7 +3,7 @@
 namespace Hub\Iterator\Shutdown\;
 
 // Import framework stuff
-use CoreFramework\Iterator\BaseIterator;
+use Org\Mxchange\CoreFramework\Iterator\BaseIterator;
 
 // Import SPL stuff
 use \Iterator;
index f1890c6b355d5bf2640e9d776dba28c1d9c7f474..216a124aec86ac1c00462682167a19d3265e2f7d 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Iterator\Shutdown\Pool;
+namespace Org\Shipsimu\Hub\Iterator\Shutdown\Pool;
 
 // Import framework stuff
-use CoreFramework\Iterator\BaseIterator;
-use CoreFramework\Lists\Listable;
+use Org\Mxchange\CoreFramework\Iterator\BaseIterator;
+use Org\Mxchange\CoreFramework\Lists\Listable;
 
 // Import SPL stuff
 use \Iterator;
index fbcdc84f93f8258593a1ca9160813b14dc3201aa..4b64ace27f6468069497971e922e70b3d0822cc1 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Iterator\Pool\Task;
+namespace Org\Shipsimu\Hub\Iterator\Pool\Task;
 
 // Import framework stuff
-use CoreFramework\Iterator\BaseIterator;
-use CoreFramework\Lists\Listable;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Iterator\BaseIterator;
+use Org\Mxchange\CoreFramework\Lists\Listable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 // Import SPL stuff
 use \Iterator;
index 498b28fb4bf279b5ba15f7ae0c8d2589089cf6c8..ab9d12289dcf875fe1d3fd0907f4ace2ea225e73 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Iterator\Producer\TestUnitKey;
+namespace Org\Shipsimu\Hub\Iterator\Producer\TestUnitKey;
 
 // Import framework stuff
-use CoreFramework\Generic\UnsupportedOperationException;
-use CoreFramework\Iterator\BaseIterator;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Iterator\BaseIterator;
 
 // Import SPL stuff
 use \Iterator;
index adc9f9ca976124cad782005697a49a70bcdfc3c8..fb656ebc43e1f444894714063cb5b0e920c76b64 100644 (file)
@@ -1,27 +1,27 @@
 <?php
 // Own namespace
-namespace Hub\Listener;
+namespace Org\Shipsimu\Hub\Listener;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Factory\Information\Connection\ConnectionInfoFactory;
-use Hub\Factory\Network\Locator\UniversalNodeLocatorFactory;
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Factory\Socket\SocketFactory;
-use Hub\Generic\BaseHubSystem;
-use Hub\Information\ShareableInfo;
-use Hub\Network\Package\NetworkPackage;
-use Hub\Pool\Peer\PoolablePeer;
-use Hub\Pool\Poolable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Factory\Information\Connection\ConnectionInfoFactory;
+use Org\Shipsimu\Hub\Factory\Network\Locator\UniversalNodeLocatorFactory;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Factory\Socket\SocketFactory;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Information\ShareableInfo;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Pool\Peer\PoolablePeer;
+use Org\Shipsimu\Hub\Pool\Poolable;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Factory\Registry\Socket\SocketRegistryFactory;
-use CoreFramework\Generic\UnsupportedOperationException;
-use CoreFramework\Socket\InvalidServerSocketException;
-use CoreFramework\Socket\SocketAlreadyRegisteredException;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Factory\Registry\Socket\SocketRegistryFactory;
+use Org\Mxchange\CoreFramework\Generic\NullPointerException;
+use Org\Mxchange\CoreFramework\Socket\InvalidServerSocketException;
+use Org\Mxchange\CoreFramework\Socket\SocketAlreadyRegisteredException;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 // Import SPL stuff
 use \LogicException;
@@ -83,6 +83,12 @@ class BaseListener extends BaseHubSystem implements Visitable {
        protected function __construct ($className) {
                // Call parent constructor
                parent::__construct($className);
+
+               // Get a socket registry instance (singleton)
+               $registryInstance = SocketRegistryFactory::createSocketRegistryInstance();
+
+               // And set it here for later on making lesser calls
+               $this->setRegistryInstance($registryInstance);
        }
 
        /**
@@ -174,7 +180,7 @@ class BaseListener extends BaseHubSystem implements Visitable {
         */
        protected function registerServerSocketInstance (StorableSocket $socketInstance) {
                // Trace message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('LISTENER: socketInstance=%s - CALLED!', $socketInstance->__toString()));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: socketInstance=%s - CALLED!', strtoupper($this->getProtocolName()), $socketInstance->__toString()));
 
                // First check if it is valid
                if ($this->isServerSocketRegistered($socketInstance)) {
@@ -182,11 +188,8 @@ class BaseListener extends BaseHubSystem implements Visitable {
                        throw new SocketAlreadyRegisteredException(array($this, $socketInstance->getSocketResource()), self::EXCEPTION_SOCKET_ALREADY_REGISTERED);
                } // END - if
 
-               // Get a socket registry instance (singleton)
-               $registryInstance = SocketRegistryFactory::createSocketRegistryInstance();
-
                // Get a connection info instance
-               $infoInstance = ConnectionInfoFactory::createConnectionInfoInstance($this->getProtocolName(), 'listener');
+               $infoInstance = ConnectionInfoFactory::createConnectionInfoInstance($this->getProtocolName(), StorableSocket::CONNECTION_TYPE_SERVER);
 
                // Is the instance set?
                if (!($infoInstance instanceof ShareableInfo)) {
@@ -198,16 +201,16 @@ class BaseListener extends BaseHubSystem implements Visitable {
                $infoInstance->fillWithListenerInformation($this);
 
                // Register the socket
-               $registryInstance->registerSocketInstance($infoInstance, $socketInstance);
+               $this->getRegistryInstance()->registerSocketInstance($infoInstance, $socketInstance);
 
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('LISTENER: Setting socketInstance ... (socketResource=%s)', $socketInstance->getSocketResource()));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: Setting socketInstance ... (socketResource=%s)', strtoupper($this->getProtocolName()), $socketInstance->getSocketResource()));
 
                // And set it here
                $this->setSocketInstance($socketInstance);
 
                // Trace message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('LISTENER: EXIT!');
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: EXIT!', strtoupper($this->getProtocolName())));
        }
 
        /**
@@ -219,16 +222,13 @@ class BaseListener extends BaseHubSystem implements Visitable {
         */
        protected function isServerSocketRegistered (StorableSocket $socketInstance) {
                // Trace message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('LISTENER: socketInstance=%s - CALLED!', $socketInstance->__toString()));
-
-               // Get a socket registry instance (singleton)
-               $registryInstance = SocketRegistryFactory::createSocketRegistryInstance();
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: socketInstance=%s - CALLED!', strtoupper($this->getProtocolName()), $socketInstance->__toString()));
 
                // Get a connection info instance
-               $infoInstance = ConnectionInfoFactory::createConnectionInfoInstance($this->getProtocolName(), 'listener');
+               $infoInstance = ConnectionInfoFactory::createConnectionInfoInstance($this->getProtocolName(), StorableSocket::CONNECTION_TYPE_SERVER);
 
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('LISTENER: infoInstance[]=%s', gettype($infoInstance)));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: infoInstance[]=%s', strtoupper($this->getProtocolName()), gettype($infoInstance)));
 
                // Is the instance set?
                if (!($infoInstance instanceof ShareableInfo)) {
@@ -240,13 +240,13 @@ class BaseListener extends BaseHubSystem implements Visitable {
                $infoInstance->fillWithListenerInformation($this);
 
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('LISTENER: Checking socketInstance ... (socketResource=%s)', $socketInstance->getSocketResource()));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: Checking socketInstance ... (socketResource=%s)', strtoupper($this->getProtocolName()), $socketInstance->getSocketResource()));
 
                // Check it
-               $isRegistered = $registryInstance->isSocketRegistered($infoInstance, $socketInstance);
+               $isRegistered = $this->getRegistryInstance()->isSocketRegistered($infoInstance, $socketInstance);
 
                // Trace message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('LISTENER: isRegistered=%d - EXIT!', intval($isRegistered)));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: isRegistered=%d - EXIT!', strtoupper($this->getProtocolName()), intval($isRegistered)));
 
                // Return result
                return $isRegistered;
@@ -260,30 +260,81 @@ class BaseListener extends BaseHubSystem implements Visitable {
         */
        public function accept (Visitor $visitorInstance) {
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(strtoupper($this->getProtocolName()) . '-LISTENER: ' . $visitorInstance->__toString() . ' has visited ' . $this->__toString() . ' - CALLED!');
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(strtoupper($this->getProtocolName()) . '-LISTENER: ' . $visitorInstance->__toString() . ' has visited ' . $this->__toString() . ' - CALLED!');
 
                // Visit this listener
                $visitorInstance->visitListener($this);
 
                // Visit the pool if set
                if ($this->getPoolInstance() instanceof Poolable) {
+                       // Visit pool instance
                        $this->getPoolInstance()->accept($visitorInstance);
                } // END - if
 
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(strtoupper($this->getProtocolName()) . '-LISTENER: ' . $visitorInstance->__toString() . ' has visited ' . $this->__toString() . ' - EXIT!');
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(strtoupper($this->getProtocolName()) . '-LISTENER: ' . $visitorInstance->__toString() . ' has visited ' . $this->__toString() . ' - EXIT!');
        }
 
        /**
-        * Monitors incoming raw data from the handler and transfers it to the
-        * given receiver instance. This method should not be called, please call
-        * the decorator's version instead to separator node/client traffic.
+        * Monitors incoming raw data from all registered sockets and if found,
+        * processRawDataFromSocketInstance() is being called.
         *
         * @return      void
-        * @throws      UnsupportedOperatorException    If this method is called by a mistake
         */
        public function monitorIncomingRawData () {
-               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
+               // Trace message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: CALLED!', strtoupper($this->getProtocolName())));
+
+               // Check if an incoming socket is registered
+               if (!$this->getRegistryInstance()->isIncomingSocketRegistered()) {
+                       // Trace message
+                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: No socket of type "%s" registered. - EXIT!', strtoupper($this->getProtocolName()), StorableSocket::CONNECTION_TYPE_INCOMING));
+
+                       // Skip further processing
+                       return;
+               } // END - if
+
+               // Debugging:
+               /* DEBUG-DIE: */ $this->getRegistryInstance()->debugInstance();
+
+               // Get iterator from registry instance
+               $iteratorInstance = $this->getRegistryInstance()->getIterator();
+
+               // Debug message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: iteratorInstance[]=%s', strtoupper($this->getProtocolName()), gettype($iteratorInstance)));
+
+               // Should be valid instance
+               if (is_null($iteratorInstance)) {
+                       // Throw NPE
+                       throw new NullPointerException($this, self::EXCEPTION_IS_NULL_POINTER);
+               } // END - if
+
+               // Is it valid?
+               if (!$iteratorInstance->valid()) {
+                       // Then rewind it
+                       $iteratorInstance->rewind();
+               } // END - if
+
+               // Get current instance
+               $socketInstance = $iteratorInstance->current();
+
+               // Debug message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: socketInstance[]=%s', strtoupper($this->getProtocolName()), gettype($socketInstance)));
+
+               // Is NULL returned?
+               if (is_null($socketInstance)) {
+                       // Trace message
+                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: socketInstance=NULL - EXIT!', strtoupper($this->getProtocolName())));
+
+                       // Then abort here
+                       return;
+               } // END - if
+
+               // Advance to next
+               $iteratorInstance->next();
+
+               // Trace message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: EXIT!', strtoupper($this->getProtocolName())));
        }
 
        /**
@@ -295,7 +346,7 @@ class BaseListener extends BaseHubSystem implements Visitable {
         */
        protected function doListenSocketSelect ($peerSuffix) {
                // Trace message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('LISTENER: peerSuffix=%s - CALLED!', $peerSuffix));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: peerSuffix=%s - CALLED!', strtoupper($this->getProtocolName()), $peerSuffix));
 
                // Check on all instances
                assert($this->getPoolInstance() instanceof Poolable);
@@ -305,19 +356,19 @@ class BaseListener extends BaseHubSystem implements Visitable {
                $socketInstance = SocketFactory::createNextAcceptedSocketFromPool($this->getPoolInstance(), $this->getSocketInstance());
 
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('LISTENER: socketInstance[]=%s accepted.', gettype($socketInstance)));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: socketInstance[]=%s accepted.', strtoupper($this->getProtocolName()), gettype($socketInstance)));
 
                // Is socket instance set?
                if (!($socketInstance instanceof StorableSocket)) {
                        // Trace message
-                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('LISTENER: No new connection on listener ... - EXIT!');
+                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: No new connection on listener ... - EXIT!', strtoupper($this->getProtocolName())));
 
                        // Nothing has changed on the listener
                        return;
                } // END - if
 
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('LISTENER: socketInstance.socketResource=%s accepted.', $socketInstance->getSocketResource()));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: socketInstance.socketResource=%s accepted.', strtoupper($this->getProtocolName()), $socketInstance->getSocketResource()));
 
                // Init peer address/port
                $peerAddress = '0.0.0.0';
@@ -332,16 +383,11 @@ class BaseListener extends BaseHubSystem implements Visitable {
                // Get node instance
                $nodeInstance = NodeObjectFactory::createNodeInstance();
 
-               // Create a faked package data array
-               $packageData = array(
-                       NetworkPackage::PACKAGE_DATA_SENDER_ADDRESS => $peerAddress . $peerSuffix,
-                       NetworkPackage::PACKAGE_DATA_SENDER_PORT    => $peerPort,
-                       NetworkPackage::PACKAGE_DATA_RECIPIENT      => $nodeInstance->getSessionId(),
-                       NetworkPackage::PACKAGE_DATA_STATUS         => NetworkPackage::PACKAGE_STATUS_FAKED
-               );
-
                // Get a connection info instance
-               $infoInstance = ConnectionInfoFactory::createConnectionInfoInstance($this->getProtocolName(), 'listener');
+               $infoInstance = ConnectionInfoFactory::createConnectionInfoInstance($this->getProtocolName(), StorableSocket::CONNECTION_TYPE_INCOMING);
+
+               // Debug message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: infoInstance[]=%s', strtoupper($this->getProtocolName()), gettype($infoInstance)));
 
                // Is the instance set?
                if (!($infoInstance instanceof ShareableInfo)) {
@@ -352,35 +398,28 @@ class BaseListener extends BaseHubSystem implements Visitable {
                // Will the info instance with listener data
                $infoInstance->fillWithSocketPeerInformation($socketInstance);
 
-               // Get a socket registry
-               $registryInstance = SocketRegistryFactory::createSocketRegistryInstance();
-
-               // Register the socket with the registry and with the faked array
-               $registryInstance->registerSocketInstance($infoInstance, $socketInstance, $packageData);
+               // Debugging:
+               //* DEBUG-DIE: */ $infoInstance->debugInstance();
 
-               // Do we have to rewind?
-               if (!$this->getIteratorInstance()->valid()) {
-                       // Rewind the list
-                       $this->getIteratorInstance()->rewind();
-               } // END - if
+               // Create a faked package data array
+               $packageData = array(
+                       NetworkPackage::PACKAGE_DATA_SENDER_ADDRESS => $peerAddress . $peerSuffix,
+                       NetworkPackage::PACKAGE_DATA_SENDER_PORT    => $peerPort,
+                       NetworkPackage::PACKAGE_DATA_RECIPIENT      => $nodeInstance->getSessionId(),
+                       NetworkPackage::PACKAGE_DATA_STATUS         => NetworkPackage::PACKAGE_STATUS_FAKED
+               );
 
-               // Get the current value
-               $currentSocketData = $this->getIteratorInstance()->current();
+               // Register the socket with the registry and with the faked array
+               $this->getRegistryInstance()->registerSocketInstance($infoInstance, $socketInstance, $packageData);
 
-               // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('LISTENER: currentSocketData=' . $currentSocketData[Poolable::SOCKET_ARRAY_INSTANCE] . ',type=' . $currentSocketData[Poolable::SOCKET_ARRAY_CONN_TYPE] . ',serverSocket=' . $this->getSocketInstance()->getSocketResource());
+               // Trace message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: Calling this.handlerInstance.processRawDataFromSocketInstance(resource=%s) ...', strtoupper($this->getProtocolName()), $socketInstance->getSocketResource()));
 
                // Handle it here, if not main server socket
-               if (($currentSocketData[Poolable::SOCKET_ARRAY_CONN_TYPE] != StorableSocket::CONNECTION_TYPE_SERVER) && (!$currentSocketData[Poolable::SOCKET_ARRAY_INSTANCE]->equals($this->getSocketInstance()))) {
-                       // ... or else it will raise warnings like 'Transport endpoint is not connected'
-                       $this->getHandlerInstance()->processRawDataFromSocketArray($currentSocketData);
-               } // END - if
-
-               // Advance to next entry. This should be the last line.
-               $this->getIteratorInstance()->next();
+               $this->getHandlerInstance()->processRawDataFromSocketInstance($socketInstance);
 
                // Trace message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('LISTENER: EXIT!');
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: EXIT!', strtoupper($this->getProtocolName())));
        }
 
        /**
@@ -391,7 +430,7 @@ class BaseListener extends BaseHubSystem implements Visitable {
         */
        public function ifListenerAcceptsPackageData (array $packageData) {
                // Trace message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('LISTENER: packageData()=%d - CALLED!', count($packageData)));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: packageData()=%d - CALLED!', strtoupper($this->getProtocolName()), count($packageData)));
 
                // Check if same socket protocol
                $socketProtocol = $this->getSocketInstance()->getSocketProtocol();
@@ -403,13 +442,13 @@ class BaseListener extends BaseHubSystem implements Visitable {
                $unlProtocol = $unlInstance->getUnlProtocol();
 
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('LISTENER: unlInstance.unlProtocol=%s,socketProtocol=%s', $unlProtocol, $socketProtocol));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: unlInstance.unlProtocol=%s,socketProtocol=%s', strtoupper($this->getProtocolName()), $unlProtocol, $socketProtocol));
 
                // Is same protocol?
                $accepts = ($unlProtocol == $socketProtocol);
 
                // Trace message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('LISTENER: accepts=%d - EXIT!', $accepts));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: accepts=%d - EXIT!', strtoupper($this->getProtocolName()), $accepts));
 
                // Return the result
                return $accepts;
index 866c6d81bab2e45bed155fb5f5f688f0d3929287..50097c108a190ac298097352911d41570aa3c450 100644 (file)
@@ -1,19 +1,23 @@
 <?php
 // Own namespace
-namespace Hub\Listener;
+namespace Org\Shipsimu\Hub\Listener;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Factory\Network\NetworkPackageFactory;
-use Hub\Listener\Listenable;
-use Hub\Locator\Node\LocateableNode;
-use Hub\Network\Networkable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
+use Org\Shipsimu\Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Locator\Node\LocateableNode;
+use Org\Shipsimu\Hub\Network\Networkable;
 
 // Import framework stuff
-use CoreFramework\Generic\BaseDecorator;
-use CoreFramework\Generic\UnsupportedOperationException;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Generic\BaseDecorator;
+use Org\Mxchange\CoreFramework\Generic\NullPointerException;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
+
+// Import SPL stuff
+use \LogicException;
 
 /**
  * A general decorator for listeners to communicate to hubs
@@ -93,11 +97,20 @@ class BaseListenerDecorator extends BaseDecorator implements Visitable {
         * @return      void
         */
        public function accept (Visitor $visitorInstance) {
+               // Trace message
+               /* NOSY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('LISTENER-DECORATOR: visitorInstance=%s - CALLED!', $visitorInstance->__toString()));
+
                // Visit this decorator
                $visitorInstance->visitDecorator($this);
 
+               // Trace message
+               /* NOSY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('LISTENER-DECORATOR: Calling visitorInstance->visitListener(%s) ...', $this->getListenerInstance()->__toString()));
+
                // Visit the covered class
                $visitorInstance->visitListener($this->getListenerInstance());
+
+               // Trace message
+               /* NOSY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('LISTENER-DECORATOR: EXIT!');
        }
 
        /**
@@ -137,32 +150,35 @@ class BaseListenerDecorator extends BaseDecorator implements Visitable {
         * given receiver instance.
         *
         * @return      void
+        * @throws      NullPointerException    If no handler instance is set in listener instance
+        * @throws      LogicException  If the given handler instance is not implementing a required interface
         */
        public function monitorIncomingRawData () {
                // Trace message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('LISTENER-DECORATOR: CALLED!');
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('LISTENER-DECORATOR: CALLED!');
 
                // Get the handler instance
                $handlerInstance = $this->getListenerInstance()->getHandlerInstance();
 
                /*
                 * Does the deocorated listener (or even a decorator again) have a
-                * handler assigned? Remember that a handler will hold all incoming raw
-                * data and not a listener.
+                * handler assigned? This is now mandadory.
                 */
-               if (!$handlerInstance instanceof Networkable) {
-                       // Skip this silently for now. Later on, this will become mandatory!
-                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('LISTENER-DECORATOR: No handler assigned to this listener decorator. this=' . $this->__toString() . ', listenerInstance=' . $this->getListenerInstance()->__toString());
-                       return;
-               } // END - if
+               if (is_null($handlerInstance)) {
+                       // Should not happen anymore
+                       throw new NullPointerException($this, self::EXCEPTION_IS_NULL_POINTER);
+               } elseif (!$handlerInstance instanceof Networkable) {
+                       // Bad, bad!
+                       throw new LogicException(sprintf('listenerInstance.handlerInstance[]=%s is not imlementing Networkable.', gettype($handlerInstance)));
+               }
 
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('LISTENER-DECORATOR: handlerInstance=%s', $handlerInstance->__toString()));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('LISTENER-DECORATOR: handlerInstance=%s', $handlerInstance->__toString()));
 
                // Does the handler have some decoded data pending?
                if (!$handlerInstance->isRawDataPending()) {
                        // No data is pending so skip further code silently
-                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('LISTENER-DECORATOR: No data pending on handlerInstance=' . $handlerInstance->__toString() . ' - EXIT!');
+                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('LISTENER-DECORATOR: No data pending on handlerInstance=' . $handlerInstance->__toString() . ' - EXIT!');
                        return;
                } // END - if
 
@@ -176,11 +192,11 @@ class BaseListenerDecorator extends BaseDecorator implements Visitable {
                 * know if the decoded data origins from a TCP or UDP connection so it
                 * can just be passed over to the network package receiver.
                 */
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('LISTENER-DECORATOR: Going to handle over some raw data to receiverInstance=' . $receiverInstance->__toString() . ' ...');
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('LISTENER-DECORATOR: Going to handle over some raw data to receiverInstance=' . $receiverInstance->__toString() . ' ...');
                $receiverInstance->addRawDataToIncomingStack($handlerInstance);
 
                // Trace message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('LISTENER-DECORATOR: EXIT!');
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('LISTENER-DECORATOR: EXIT!');
        }
 
        /**
index 02b8fd252b91ba5060c7ba406ae57f9b46b4c0d0..f865ead7ee256a1c8cd0180b6bfbc9676f9b396a 100644 (file)
@@ -1,17 +1,17 @@
 <?php
 // Own namespace
-namespace Hub\Listener\Socket;
+namespace Org\Shipsimu\Hub\Listener\Socket;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Factory\Socket\SocketFactory;
-use Hub\Factory\Tag\Package\PackageTagsFactory;
-use Hub\Listener\BaseListener;
-use Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Factory\Socket\SocketFactory;
+use Org\Shipsimu\Hub\Factory\Tag\Package\PackageTagsFactory;
+use Org\Shipsimu\Hub\Listener\BaseListener;
+use Org\Shipsimu\Hub\Listener\Listenable;
 
 // Import framework stuff
-use CoreFramework\Bootstrap\FrameworkBootstrap;
-use CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
 
 /**
  * A file-based socket listener
index cd1af3927e2d8d7a4acd9a1efed5a3fc5f444a25..7a8472b596ddcfabb5f9dbe576b5eacb4df083a0 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Listener\Socket;
+namespace Org\Shipsimu\Hub\Listener\Socket;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Factory\Tag\Package\PackageTagsFactory;
-use Hub\Listener\BaseListenerDecorator;
-use Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Factory\Tag\Package\PackageTagsFactory;
+use Org\Shipsimu\Hub\Listener\BaseListenerDecorator;
+use Org\Shipsimu\Hub\Listener\Listenable;
 
 // Import framework stuff
 
index 1bca41f6f7fe5344fb1b037976df6df01841651f..6f2931806f770f3dc819408f08bc39a823a94c9a 100644 (file)
@@ -141,7 +141,7 @@ use Hub\Listener\BaseListener;
 use Hub\Listener\Listenable;
 
 // Import framework stuff
-use CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
 
 <?php
 /**
index 11c7b2c1fbb6814b6d7d7d2c0cd0581a6871f441..b8cf929c963baf2835635e6ab1dba33bc6f9654e 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Listener\Tcp;
+namespace Org\Shipsimu\Hub\Listener\Tcp;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Factory\Socket\SocketFactory;
-use Hub\Listener\BaseListener;
-use Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Factory\Socket\SocketFactory;
+use Org\Shipsimu\Hub\Listener\BaseListener;
+use Org\Shipsimu\Hub\Listener\Listenable;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
 
 /**
  * A TCP connection listener
index 672c1384b6ae7c054fb23657b95777f61396909a..d65a4daa610b0260964375886d24899d9124591a 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Listener\Client\Tcp;
+namespace Org\Shipsimu\Hub\Listener\Client\Tcp;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Factory\Tag\Package\PackageTagsFactory;
-use Hub\Listener\BaseListenerDecorator;
-use Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Factory\Tag\Package\PackageTagsFactory;
+use Org\Shipsimu\Hub\Listener\BaseListenerDecorator;
+use Org\Shipsimu\Hub\Listener\Listenable;
 
 // Import framework stuff
 
index b4e252b19ce44131c4ac0d24a3a4a67cadb386e1..bcabb5fa1b1109a01f7c24dfba1211e48b37dd59 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Listener\Hub\Tcp;
+namespace Org\Shipsimu\Hub\Listener\Hub\Tcp;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Factory\Tag\Package\PackageTagsFactory;
-use Hub\Listener\BaseListenerDecorator;
-use Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Factory\Tag\Package\PackageTagsFactory;
+use Org\Shipsimu\Hub\Listener\BaseListenerDecorator;
+use Org\Shipsimu\Hub\Listener\Listenable;
 
 // Import framework stuff
 
index 668a35e831bdc479e9d50c1604faf86f63f3e209..b8f87699c356a4c062e8b16860bc288374882a17 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Listener\Udp;
+namespace Org\Shipsimu\Hub\Listener\Udp;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Factory\Socket\SocketFactory;
-use Hub\Listener\BaseListener;
-use Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Factory\Socket\SocketFactory;
+use Org\Shipsimu\Hub\Listener\BaseListener;
+use Org\Shipsimu\Hub\Listener\Listenable;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Generic\UnsupportedOperationException;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Generic\UnsupportedOperationException;
 
 /**
  * An UDP connection listener
index 07804f42bd037bfaa0d604ae959a818d3d694dc8..1de47c55a5a9b379347c1045caef6ed066e27368 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Listener\Client\Udp;
+namespace Org\Shipsimu\Hub\Listener\Client\Udp;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Factory\Tag\Package\PackageTagsFactory;
-use Hub\Listener\BaseListenerDecorator;
-use Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Factory\Tag\Package\PackageTagsFactory;
+use Org\Shipsimu\Hub\Listener\BaseListenerDecorator;
+use Org\Shipsimu\Hub\Listener\Listenable;
 
 // Import framework stuff
 
index 1c3389fe0a9aa1cbdc8748fa5b60de5bdb6d9881..76d2984500c5445886d5b0a60842777910321ac6 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Listener\Hub\Udp;
+namespace Org\Shipsimu\Hub\Listener\Hub\Udp;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Factory\Tag\Package\PackageTagsFactory;
-use Hub\Listener\BaseListenerDecorator;
-use Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Factory\Tag\Package\PackageTagsFactory;
+use Org\Shipsimu\Hub\Listener\BaseListenerDecorator;
+use Org\Shipsimu\Hub\Listener\Listenable;
 
 // Import framework stuff
 
index b7933d1aeeba43f1c7e080ff1443f8bb197f1dfd..62c1ae270c76b3ee0e14626d98b6c140a60af58d 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Lists\Hub;
+namespace Org\Shipsimu\Hub\Lists\Hub;
 
 // Import framework stuff
-use CoreFramework\Lists\BaseList;
-use CoreFramework\Lists\Listable;
+use Org\Mxchange\CoreFramework\Lists\BaseList;
+use Org\Mxchange\CoreFramework\Lists\Listable;
 
 /**
  * A Hub list
index 4745e932125054216a1e2351adca7ec25389befe..e95fb6a4317b8939c64148b901fec043db0a50bd 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Lists\Pool;
+namespace Org\Shipsimu\Hub\Lists\Pool;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Lists\BaseList;
-use CoreFramework\Lists\Listable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Lists\BaseList;
+use Org\Mxchange\CoreFramework\Lists\Listable;
 
 /**
  * A list for pool entries
index 8f3a2b75f7f5313d785a106fdd5622f5a0ca26dc..68d9fd41cbb8864ce47cb2b9f2e8dc7059b65b1a 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Lists\Recipient;
+namespace Org\Shipsimu\Hub\Lists\Recipient;
 
 // Import framework stuff
-use CoreFramework\Lists\BaseList;
-use CoreFramework\Lists\Listable;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Lists\BaseList;
+use Org\Mxchange\CoreFramework\Lists\Listable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A Recipient list
index 8f381f390dafa6b923708d5b65e4dfda836ef474..23630f4fe39e2581d720ab3b44d220f586f4f349 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Locator\Node;
+namespace Org\Shipsimu\Hub\Locator\Node;
 
 // Import application-specific stuff
-use Hub\Database\Frontend\Node\Information\NodeInformationDatabaseWrapper;
-use Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Database\Frontend\Node\Information\NodeInformationDatabaseWrapper;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 // Import SPL stuff
 use \BadMethodCallException;
index 866c9d248db2fe33c63e7c1190acf551b275060e..546545f1d4616bb627ebf68ccf8f4267684cb11a 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Miner;
+namespace Org\Shipsimu\Hub\Miner;
 
 // Import framework stuff
-use CoreFramework\Controller\Controller;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A hub-mcrypt miner class
index 46a808e22b0788db0b8c1eca8c9299bf3a0df0aa..48feec9d4d2fe1b957aaeb68a6d62206c6e8abde 100644 (file)
@@ -3,7 +3,7 @@
 namespace Hub\Miner;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A hub-miner class for the '???' mode
index 2114c55dfe2c0b1fbb8fb9e80289808503053e64..f92b8b3d62f36165b1c67d6b8b63f1763c22005b 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Miner;
+namespace Org\Shipsimu\Hub\Miner;
 
 // Import hub-specific stuff
-use Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
 // Import framework stuff
-use CoreFramework\Database\Updateable;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Database\Updateable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A general hub miner class
index b78ad4f5aee085c5dfd41d943dd0aff769a6bd76..d029e5a946f48cd089f0d471bd99e27d1e2118a1 100644 (file)
@@ -1,17 +1,17 @@
 <?php
 // Own namespace
-namespace Hub\Node\Boot;
+namespace Org\Shipsimu\Hub\Node\Boot;
 
 // Import application-specific stuff
-use Hub\Node\BaseHubNode;
-use Hub\Helper\Node\NodeHelper;
+use Org\Shipsimu\Hub\Node\BaseHubNode;
+use Org\Shipsimu\Hub\Helper\Node\NodeHelper;
 
 // Import framework stuff
-use CoreFramework\Bootstrap\FrameworkBootstrap;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Handler\Task\HandleableTask;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Handler\Task\HandleableTask;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A hub-node class for the 'Boot' mode
index db94391dd289d3e0cc9a335d2e98e8623fa56125..900d4a47029edfdd4f91fcce6e8e2261f22f6d77 100644 (file)
@@ -7,7 +7,7 @@ use Hub\Node\BaseHubNode;
 use Hub\Helper\Node\NodeHelper;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A hub-node class for the '???' mode
index 964d5427fb48da1dfdadcebf65c754011a0778f9..d778e08f208a78cbceb525989f87160c75b64587 100644 (file)
@@ -1,32 +1,33 @@
 <?php
 // Own namespace
-namespace Hub\Node;
+namespace Org\Shipsimu\Hub\Node;
 
 // Import hub-specific stuff
-use Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
-use Hub\Database\Frontend\Node\Information\NodeInformationDatabaseWrapper;
-use Hub\Factory\Registry\Object\ObjectTypeRegistryFactory;
-use Hub\Factory\State\Node\NodeStateFactory;
-use Hub\Locator\Node\LocateableNode;
-use Hub\Generic\BaseHubSystem;
-use Hub\Network\Package\NetworkPackage;
-use Hub\Network\Receive\Receivable;
-use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
-use Hub\Template\Engine\Xml\ObjectRegistry\XmlObjectRegistryTemplateEngine;
-use Hub\Tools\HubTools;
+use Org\Shipsimu\Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
+use Org\Shipsimu\Hub\Database\Frontend\Node\Information\NodeInformationDatabaseWrapper;
+use Org\Shipsimu\Hub\Factory\Registry\Object\ObjectTypeRegistryFactory;
+use Org\Shipsimu\Hub\Factory\State\Node\NodeStateFactory;
+use Org\Shipsimu\Hub\Locator\Node\LocateableNode;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
+use Org\Shipsimu\Hub\Template\Engine\Xml\ObjectRegistry\XmlObjectRegistryTemplateEngine;
+use Org\Shipsimu\Hub\Tools\HubTools;
 
 // Import framework stuff
-use CoreFramework\Bootstrap\FrameworkBootstrap;
-use CoreFramework\Criteria\Add\AddableCriteria;
-use CoreFramework\Criteria\Local\LocalSearchCriteria;
-use CoreFramework\Criteria\Storing\StoreableCriteria;
-use CoreFramework\Database\Updateable;
-use CoreFramework\Factory\Database\Wrapper\DatabaseWrapperFactory;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
-use CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
+use Org\Mxchange\CoreFramework\Criteria\Add\AddableCriteria;
+use Org\Mxchange\CoreFramework\Criteria\Local\LocalSearchCriteria;
+use Org\Mxchange\CoreFramework\Criteria\Storing\StoreableCriteria;
+use Org\Mxchange\CoreFramework\Database\Updateable;
+use Org\Mxchange\CoreFramework\Factory\Database\Wrapper\DatabaseWrapperFactory;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Generic\NullPointerException;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Task\Taskable;
 
 /**
  * A general hub node class
@@ -243,6 +244,12 @@ class BaseHubNode extends BaseHubSystem implements Updateable, AddableCriteria {
                        // Get the UNL array back
                        $unlInstance = $this->determineUniversalNodeLocator();
 
+                       // Is the instance valid?
+                       if (NULL == $unlInstance) {
+                               // Throw NPE
+                               throw new NullPointerException($this, self::EXCEPTION_IS_NULL_POINTER);
+                       } // END - if
+
                        // There are 2 UNLs, internal and external.
                        if ($this->getConfigInstance()->getConfigEntry('allow_publish_internal_address') == 'N') {
                                // Public "external" UNL address
index e7d0587b965069bf039e1adfe2728d15e731bb8f..42bfee0edfbb796305f5fc0e71f7eeebafe4d2b5 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Node\Backup;
+namespace Org\Shipsimu\Hub\Node\Backup;
 
 // Import application-specific stuff
-use Hub\Node\BaseHubNode;
-use Hub\Helper\Node\NodeHelper;
+use Org\Shipsimu\Hub\Node\BaseHubNode;
+use Org\Shipsimu\Hub\Helper\Node\NodeHelper;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Handler\Task\HandleableTask;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Handler\Task\HandleableTask;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A hub-node class for the 'List' mode
index 9909f36b8cdb93819be433c264d6ae7d8ad60acb..fd7fae08c3c762b90d5e01ef333cf86ee80c5e06 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Node\Master;
+namespace Org\Shipsimu\Hub\Node\Master;
 
 // Import application-specific stuff
-use Hub\Node\BaseHubNode;
-use Hub\Helper\Node\NodeHelper;
+use Org\Shipsimu\Hub\Node\BaseHubNode;
+use Org\Shipsimu\Hub\Helper\Node\NodeHelper;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Handler\Task\HandleableTask;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Handler\Task\HandleableTask;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A hub-node class for the 'Master' mode
index 1b80ee5c9fc93def6fb6aa1d4b815b5c5f251596..4d97ee4b3807580d8fab6aff3084e466356de2df 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Node\Regular;
+namespace Org\Shipsimu\Hub\Node\Regular;
 
 // Import application-specific stuff
-use Hub\Node\BaseHubNode;
-use Hub\Helper\Node\NodeHelper;
+use Org\Shipsimu\Hub\Node\BaseHubNode;
+use Org\Shipsimu\Hub\Helper\Node\NodeHelper;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Handler\Task\HandleableTask;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Handler\Task\HandleableTask;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A hub-node class for the 'regular' mode
index 4e8eddfd79aa502e0042b36dca20970dc6209909..4535ed85062904157b232830598c9d910b864a2c 100644 (file)
@@ -1,21 +1,21 @@
 <?php
 // Own namespace
-namespace Hub\Network\Package\Assembler;
+namespace Org\Shipsimu\Hub\Network\Package\Assembler;
 
 // Import hub-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Factory\Handler\Chunk\ChunkHandlerFactory;
-use Hub\Generic\BaseHubSystem;
-use Hub\Handler\Network\RawData\BaseRawDataHandler;
-use Hub\Network\Package\Fragment\PackageFragmenter;
-use Hub\Network\Package\NetworkPackage;
-use Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Factory\Handler\Chunk\ChunkHandlerFactory;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Handler\Network\RawData\HandleableRawData;
+use Org\Shipsimu\Hub\Network\Package\Fragment\PackageFragmenter;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A PackageAssembler class to assemble a package content stream fragemented
@@ -131,7 +131,7 @@ class PackageAssembler extends BaseHubSystem implements Assembler, Registerable,
         */
        private function isPackageContentCompleted (array $packageContent) {
                // Check both
-               $isCompleted = $this->ifStartEndMarkersSet($packageContent[BaseRawDataHandler::PACKAGE_RAW_DATA]);
+               $isCompleted = $this->ifStartEndMarkersSet($packageContent[HandleableRawData::PACKAGE_RAW_DATA]);
 
                // Return status
                return $isCompleted;
@@ -154,21 +154,21 @@ class PackageAssembler extends BaseHubSystem implements Assembler, Registerable,
        public function chunkPackageContent (array $packageContent) {
                // Validate the package content array again
                assert(
-                       (isset($packageContent[BaseRawDataHandler::PACKAGE_RAW_DATA])) &&
-                       (isset($packageContent[BaseRawDataHandler::PACKAGE_ERROR_CODE]))
+                       (isset($packageContent[HandleableRawData::PACKAGE_RAW_DATA])) &&
+                       (isset($packageContent[HandleableRawData::PACKAGE_ERROR_CODE]))
                );
 
                // Construct call-back name from package error code
-               $this->callbacks[$packageContent[BaseRawDataHandler::PACKAGE_ERROR_CODE]] = 'handlePackageBy' . self::convertToClassName($packageContent[BaseRawDataHandler::PACKAGE_ERROR_CODE]);
+               $this->callbacks[$packageContent[HandleableRawData::PACKAGE_ERROR_CODE]] = 'handlePackageBy' . self::convertToClassName($packageContent[HandleableRawData::PACKAGE_ERROR_CODE]);
 
                // Abort if the call-back method is not there
-               if (!method_exists($this, $this->callbacks[$packageContent[BaseRawDataHandler::PACKAGE_ERROR_CODE]])) {
+               if (!method_exists($this, $this->callbacks[$packageContent[HandleableRawData::PACKAGE_ERROR_CODE]])) {
                        // Throw an exception
-                       throw new UnsupportedPackageCodeHandlerException(array($this, $this->callbacks[$packageContent[BaseRawDataHandler::PACKAGE_ERROR_CODE]], $packageContent), self::EXCEPTION_UNSUPPORTED_PACKAGE_CODE_HANDLER);
+                       throw new UnsupportedPackageCodeHandlerException(array($this, $this->callbacks[$packageContent[HandleableRawData::PACKAGE_ERROR_CODE]], $packageContent), self::EXCEPTION_UNSUPPORTED_PACKAGE_CODE_HANDLER);
                } // END - if
 
                // Call it back
-               call_user_func(array($this, $this->callbacks[$packageContent[BaseRawDataHandler::PACKAGE_ERROR_CODE]]), $packageContent);
+               call_user_func(array($this, $this->callbacks[$packageContent[HandleableRawData::PACKAGE_ERROR_CODE]]), $packageContent);
        }
 
        /**************************************************************************
@@ -186,15 +186,15 @@ class PackageAssembler extends BaseHubSystem implements Assembler, Registerable,
         */
        private function handlePackageByUnhandledPackage (array $packageContent) {
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PACKAGE-ASSEMBLER: packageData[' . BaseRawDataHandler::PACKAGE_RAW_DATA . ']=' . $packageContent[BaseRawDataHandler::PACKAGE_RAW_DATA]);
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PACKAGE-ASSEMBLER: packageData[' . HandleableRawData::PACKAGE_RAW_DATA . ']=' . $packageContent[HandleableRawData::PACKAGE_RAW_DATA]);
 
                // Check for some conditions
                if ((!$this->ifInputBufferIsEmpty()) || (!$this->isPackageContentCompleted($packageContent))) {
                        // Last chunk is not valid, so wait for more
-                       $this->pendingData .= $packageContent[BaseRawDataHandler::PACKAGE_RAW_DATA];
+                       $this->pendingData .= $packageContent[HandleableRawData::PACKAGE_RAW_DATA];
 
                        // Debug message
-                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PACKAGE-ASSEMBLER: Partial data received. Waiting for more ... ( ' . strlen($packageContent[BaseRawDataHandler::PACKAGE_RAW_DATA]) . ' bytes)');
+                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PACKAGE-ASSEMBLER: Partial data received. Waiting for more ... ( ' . strlen($packageContent[HandleableRawData::PACKAGE_RAW_DATA]) . ' bytes)');
                } else {
                        // Debug message
                        //* DEBUG */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PACKAGE-ASSEMBLER: packageContent=' . print_r($packageContent, TRUE) . ',chunks='.print_r($chunks, TRUE));
@@ -249,14 +249,14 @@ class PackageAssembler extends BaseHubSystem implements Assembler, Registerable,
                        //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PACKAGE-ASSEMBLER: Pending data of ' . strlen($this->pendingData) . ' Bytes are incomplete, waiting for more ...');
                        //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PACKAGE-ASSEMBLER: this->pendingData=' . $this->pendingData);
                        return;
-               } elseif (substr_count($this->pendingData, BaseRawDataHandler::STREAM_START_MARKER) > 1) {
+               } elseif (substr_count($this->pendingData, HandleableRawData::STREAM_START_MARKER) > 1) {
                        /*
                         * Multiple messages found, so split off first message as the input
                         * stream can only handle one message per time.
                         */
-                       foreach (explode(BaseRawDataHandler::STREAM_START_MARKER, $this->pendingData) as $message) {
+                       foreach (explode(HandleableRawData::STREAM_START_MARKER, $this->pendingData) as $message) {
                                // Prepend start marker again as it is needed to decode the message.
-                               $message = BaseRawDataHandler::STREAM_START_MARKER . $message;
+                               $message = HandleableRawData::STREAM_START_MARKER . $message;
 
                                // Push it on stack
                                $this->getStackInstance()->pushNamed(self::STACKER_NAME_MULTIPLE_MESSAGE, $message);
@@ -271,8 +271,8 @@ class PackageAssembler extends BaseHubSystem implements Assembler, Registerable,
 
                // Init fake array
                $packageContent = array(
-                       BaseRawDataHandler::PACKAGE_RAW_DATA   => $this->getInputStreamInstance()->streamData($this->pendingData),
-                       BaseRawDataHandler::PACKAGE_ERROR_CODE => StorableSocket::SOCKET_ERROR_UNHANDLED
+                       HandleableRawData::PACKAGE_RAW_DATA   => $this->getInputStreamInstance()->streamData($this->pendingData),
+                       HandleableRawData::PACKAGE_ERROR_CODE => StorableSocket::SOCKET_ERROR_UNHANDLED
                );
 
                /*
@@ -282,12 +282,12 @@ class PackageAssembler extends BaseHubSystem implements Assembler, Registerable,
                $this->clearPendingData();
 
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PACKAGE-ASSEMBLER: Last block of partial data received. A total of ' . strlen($packageContent[BaseRawDataHandler::PACKAGE_RAW_DATA]) . ' bytes has been received.');
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PACKAGE-ASSEMBLER: Last block of partial data received. A total of ' . strlen($packageContent[HandleableRawData::PACKAGE_RAW_DATA]) . ' bytes has been received.');
 
                // Make sure last CHUNK_SEPARATOR is not there
-               if (substr($packageContent[BaseRawDataHandler::PACKAGE_RAW_DATA], -1, 1) == PackageFragmenter::CHUNK_SEPARATOR) {
+               if (substr($packageContent[HandleableRawData::PACKAGE_RAW_DATA], -1, 1) == PackageFragmenter::CHUNK_SEPARATOR) {
                        // Remove it
-                       $packageContent[BaseRawDataHandler::PACKAGE_RAW_DATA] = substr($packageContent[BaseRawDataHandler::PACKAGE_RAW_DATA], 0, -1);
+                       $packageContent[HandleableRawData::PACKAGE_RAW_DATA] = substr($packageContent[HandleableRawData::PACKAGE_RAW_DATA], 0, -1);
                } // END - if
 
                /*
@@ -295,7 +295,7 @@ class PackageAssembler extends BaseHubSystem implements Assembler, Registerable,
                 * array of chunks. These chunks must then be verified by their
                 * checksums. Also the final chunk must be handled.
                 */
-               $chunks = explode(PackageFragmenter::CHUNK_SEPARATOR, $packageContent[BaseRawDataHandler::PACKAGE_RAW_DATA]);
+               $chunks = explode(PackageFragmenter::CHUNK_SEPARATOR, $packageContent[HandleableRawData::PACKAGE_RAW_DATA]);
 
                // Add all chunks because the last final chunk is found
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('PACKAGE-ASSEMBLER: Going to add ' . count($chunks) . ' to chunk handler ...');
index a7a0b05b0139fc1e1ba90b7c08f51c4ab2889246..1933b8315ac3f4e48293283e8ab3455fc3582a23 100644 (file)
@@ -1,38 +1,38 @@
 <?php
 // Own namespace
-namespace Hub\Network\Package;
+namespace Org\Shipsimu\Hub\Network\Package;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
-use Hub\Factory\Assembler\Package\PackageAssemblerFactory;
-use Hub\Factory\Dht\DhtObjectFactory;
-use Hub\Factory\Discovery\Package\PackageDiscoveryFactory;
-use Hub\Factory\Discovery\Socket\SocketDiscoveryFactory;
-use Hub\Factory\Information\Connection\ConnectionInfoFactory;
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Generic\BaseHubSystem;
-use Hub\Handler\Network\RawData\BaseRawDataHandler;
-use Hub\Helper\Connection\ConnectionHelper;
-use Hub\Helper\HubHelper;
-use Hub\Information\ShareableInfo;
-use Hub\Network\Deliver\Deliverable;
-use Hub\Network\Networkable;
-use Hub\Network\Package\Fragment\PackageFragmenter;
-use Hub\Network\Receive\Receivable;
-use Hub\Tag\Tagable;
-use Hub\Tools\HubTools;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
+use Org\Shipsimu\Hub\Factory\Assembler\Package\PackageAssemblerFactory;
+use Org\Shipsimu\Hub\Factory\Dht\DhtObjectFactory;
+use Org\Shipsimu\Hub\Factory\Discovery\Package\PackageDiscoveryFactory;
+use Org\Shipsimu\Hub\Factory\Discovery\Socket\SocketDiscoveryFactory;
+use Org\Shipsimu\Hub\Factory\Information\Connection\ConnectionInfoFactory;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Handler\Network\RawData\HandleableRawData;
+use Org\Shipsimu\Hub\Helper\Connection\ConnectionHelper;
+use Org\Shipsimu\Hub\Helper\HubHelper;
+use Org\Shipsimu\Hub\Information\ShareableInfo;
+use Org\Shipsimu\Hub\Network\Deliver\Deliverable;
+use Org\Shipsimu\Hub\Network\Networkable;
+use Org\Shipsimu\Hub\Network\Package\Fragment\PackageFragmenter;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Tag\Tagable;
+use Org\Shipsimu\Hub\Tools\HubTools;
 
 // Import framework stuff
-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;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Compressor\Compressor;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Factory\Registry\Socket\SocketRegistryFactory;
+use Org\Mxchange\CoreFramework\Feature\FrameworkFeature;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Socket\InvalidSocketException;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 // Import SPL stuff
 use \Iterator;
@@ -313,6 +313,12 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R
        protected function __construct () {
                // Call parent constructor
                parent::__construct(__CLASS__);
+
+               // The socket needs to be put in a special registry that can handle such data
+               $registryInstance = SocketRegistryFactory::createSocketRegistryInstance();
+
+               // Set it here
+               $this->setRegistryInstance($registryInstance);
        }
 
        /**
@@ -625,9 +631,6 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R
                // Debug message
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE: Reached line ' . __LINE__ . ' after discoverSocket() has been called.');
 
-               // The socket needs to be put in a special registry that can handle such data
-               $registryInstance = SocketRegistryFactory::createSocketRegistryInstance();
-
                // Get the connection helper from registry
                $helperInstance = Registry::getRegistry()->getInstance('connection');
 
@@ -647,12 +650,12 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE: Reached line ' . __LINE__ . ' before isSocketRegistered() has been called.');
 
                // Is it not there?
-               if (($socketInstance->isValidSocket()) && (!$registryInstance->isSocketRegistered($infoInstance, $socketInstance))) {
+               if (($socketInstance->isValidSocket()) && (!$this->getRegistryInstance()->isSocketRegistered($infoInstance, $socketInstance))) {
                        // Debug message
                        //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE: Registering socket ' . $socketInstance . ' ...');
 
                        // Then register it
-                       $registryInstance->registerSocketInstance($infoInstance, $socketInstance, $packageData);
+                       $this->getRegistryInstance()->registerSocketInstance($infoInstance, $socketInstance, $packageData);
                } elseif (!$helperInstance->getStateInstance()->isPeerStateConnected()) {
                        // Is not connected, then we cannot send
                        self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE: Unexpected peer state ' . $helperInstance->getStateInstance()->__toString() . ' detected.');
@@ -684,11 +687,14 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R
         * @return      void
         */
        private function sendOutgoingRawPackageData (array $packageData) {
+               // Trace message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('NETWORK-PACKAGE: packageData()=%d - CALLED!', count($packageData)));
+
                // Init sent bytes
                $sentBytes = 0;
 
                // Get the right connection instance
-               $infoInstance = SocketRegistryFactory::createSocketRegistryInstance()->getInfoInstanceFromPackageData($packageData);
+               $infoInstance = $this->getRegistryInstance()->getInfoInstanceFromPackageData($packageData);
 
                // Test helper instance
                assert($infoInstance instanceof ShareableInfo);
@@ -710,6 +716,9 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R
 
                // Sent out package data
                $helperInstance->sendRawPackageData($packageData);
+
+               // Debug message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE: EXIT!');
        }
 
        /**
@@ -1049,24 +1058,27 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R
                } // END - if
 
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('NETWORK-PACKAGE: sentBytes[%s]=%d', gettype($sentBytes), $sentBytes));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('NETWORK-PACKAGE: sentBytes[%s]=%d', gettype($sentBytes), $sentBytes));
 
                // If there was an error, don't continue here
                if (($sentBytes === 0) && (strlen($encodedDataArray[self::RAW_INDEX_ENCODED_DATA]) > 0)) {
                        // Nothing sent means all data has been sent
-                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-HELPER: All sent! (LINE=' . __LINE__ . ')');
+                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-HELPER: All sent! (LINE=' . __LINE__ . ')');
                        return;
-               } elseif (strlen($encodedDataArray[self::RAW_INDEX_ENCODED_DATA]) <= 0) {
+               } elseif (strlen($encodedDataArray[self::RAW_INDEX_ENCODED_DATA]) == 0) {
                        // Abort here, all sent!
-                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-HELPER: All sent! (LINE=' . __LINE__ . ')');
+                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-HELPER: All sent! (LINE=' . __LINE__ . ')');
                        return;
                }
 
+               // Debug message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-HELPER: Pushing raw data back to stacker, as still some data is pending delivery.');
+
                // Push array back in stack
                $this->getStackInstance()->pushNamed(self::STACKER_NAME_OUTGOING_STREAM, $encodedDataArray);
 
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE: EXIT!');
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE: EXIT!');
        }
 
        ///////////////////////////////////////////////////////////////////////////
@@ -1138,25 +1150,25 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R
                // Make sure both array elements are there
                assert(
                        (is_array($decodedData)) &&
-                       (isset($decodedData[BaseRawDataHandler::PACKAGE_RAW_DATA])) &&
-                       (isset($decodedData[BaseRawDataHandler::PACKAGE_ERROR_CODE]))
+                       (isset($decodedData[HandleableRawData::PACKAGE_RAW_DATA])) &&
+                       (isset($decodedData[HandleableRawData::PACKAGE_ERROR_CODE]))
                );
 
                /*
                 * Also make sure the error code is SOCKET_ERROR_UNHANDLED because we
                 * only want to handle unhandled packages here.
                 */
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE: errorCode=' . $decodedData[BaseRawDataHandler::PACKAGE_ERROR_CODE] . '(' . StorableSocket::SOCKET_ERROR_UNHANDLED . ')');
-               assert($decodedData[BaseRawDataHandler::PACKAGE_ERROR_CODE] == StorableSocket::SOCKET_ERROR_UNHANDLED);
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE: errorCode=' . $decodedData[HandleableRawData::PACKAGE_ERROR_CODE] . '(' . StorableSocket::SOCKET_ERROR_UNHANDLED . ')');
+               assert($decodedData[HandleableRawData::PACKAGE_ERROR_CODE] == StorableSocket::SOCKET_ERROR_UNHANDLED);
 
                // Remove the last chunk SEPARATOR (because there is no need for it)
-               if (substr($decodedData[BaseRawDataHandler::PACKAGE_RAW_DATA], -1, 1) == PackageFragmenter::CHUNK_SEPARATOR) {
+               if (substr($decodedData[HandleableRawData::PACKAGE_RAW_DATA], -1, 1) == PackageFragmenter::CHUNK_SEPARATOR) {
                        // It is there and should be removed
-                       $decodedData[BaseRawDataHandler::PACKAGE_RAW_DATA] = substr($decodedData[BaseRawDataHandler::PACKAGE_RAW_DATA], 0, -1);
+                       $decodedData[HandleableRawData::PACKAGE_RAW_DATA] = substr($decodedData[HandleableRawData::PACKAGE_RAW_DATA], 0, -1);
                } // END - if
 
                // This package is "handled" and can be pushed on the next stack
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE: Pushing ' . strlen($decodedData[BaseRawDataHandler::PACKAGE_RAW_DATA]) . ' bytes to stack ' . self::STACKER_NAME_DECODED_HANDLED . ' ...');
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE: Pushing ' . strlen($decodedData[HandleableRawData::PACKAGE_RAW_DATA]) . ' bytes to stack ' . self::STACKER_NAME_DECODED_HANDLED . ' ...');
                $this->getStackInstance()->pushNamed(self::STACKER_NAME_DECODED_HANDLED, $decodedData);
        }
 
@@ -1257,8 +1269,8 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R
                // Assert on some elements
                assert(
                        (is_array($packageContent)) &&
-                       (isset($packageContent[BaseRawDataHandler::PACKAGE_RAW_DATA])) &&
-                       (isset($packageContent[BaseRawDataHandler::PACKAGE_ERROR_CODE]))
+                       (isset($packageContent[HandleableRawData::PACKAGE_RAW_DATA])) &&
+                       (isset($packageContent[HandleableRawData::PACKAGE_ERROR_CODE]))
                );
 
                // Start assembling the raw package data array by chunking it
@@ -1268,7 +1280,7 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R
                $this->getStackInstance()->popNamed(self::STACKER_NAME_DECODED_HANDLED);
 
                // ... and push it on the 'chunked' stacker
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE: Pushing ' . strlen($packageContent[BaseRawDataHandler::PACKAGE_RAW_DATA]) . ' bytes on stack ' . self::STACKER_NAME_DECODED_CHUNKED . ',packageContent=' . print_r($packageContent, TRUE));
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE: Pushing ' . strlen($packageContent[HandleableRawData::PACKAGE_RAW_DATA]) . ' bytes on stack ' . self::STACKER_NAME_DECODED_CHUNKED . ',packageContent=' . print_r($packageContent, TRUE));
                $this->getStackInstance()->pushNamed(self::STACKER_NAME_DECODED_CHUNKED, $packageContent);
        }
 
index fd49cfe5a24ce5ace55d15335fafa1f139d6a643..8cfc6e71ed3dbe30bb4262299453e50373dd7cb9 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Network\Package\Fragment;
+namespace Org\Shipsimu\Hub\Network\Package\Fragment;
 
 // Import application-specific stuff
-use Hub\Generic\BaseHubSystem;
-use Hub\Helper\Connection\ConnectionHelper;
-use Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Helper\Connection\ConnectionHelper;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A PackageFragmenter class to fragment package data into smaller chunks for
index 0e6109f815383772a1c4b92986095e5d85d23051..bd838f65ddc98afb8f4a10555e6d97350282889a 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Pool;
+namespace Org\Shipsimu\Hub\Pool;
 
 // Import hub-specific stuff
-use Hub\Generic\BaseHubSystem;
-use Hub\Pool\Poolable;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Pool\Poolable;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A general pool class
index 6485d298c77f45fee3e40c0eec05f07930ae02ef..f895501a36b33c6b657ce320bc01b1641fe922fa 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Pool\Listener;
+namespace Org\Shipsimu\Hub\Pool\Listener;
 
 // Import application-specific stuff
-use Hub\Helper\Node\NodeHelper;
-use Hub\Listener\Listenable;
-use Hub\Pool\BasePool;
-use Hub\Pool\Listener\PoolableListener;
+use Org\Shipsimu\Hub\Helper\Node\NodeHelper;
+use Org\Shipsimu\Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Pool\BasePool;
+use Org\Shipsimu\Hub\Pool\Listener\PoolableListener;
 
 // Import framework stuff
 
index 83a29ce30deb278236db65c205a97cf1e4852dcc..6c38390fb0439603bb364aa37dfd76d619b7f6b3 100644 (file)
@@ -1,20 +1,20 @@
 <?php
 // Own namespace
-namespace Hub\Pool\Peer;
+namespace Org\Shipsimu\Hub\Pool\Peer;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Connection\InvalidConnectionTypeException;
-use Hub\Factory\Handler\Protocol\ProtocolHandlerFactory;
-use Hub\Listener\Listenable;
-use Hub\Locator\Node\LocateableNode;
-use Hub\Network\Package\NetworkPackage;
-use Hub\Pool\BasePool;
-use Hub\Pool\Poolable;
-use Hub\Pool\Peer\PoolablePeer;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Connection\InvalidConnectionTypeException;
+use Org\Shipsimu\Hub\Factory\Handler\Protocol\ProtocolHandlerFactory;
+use Org\Shipsimu\Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Locator\Node\LocateableNode;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Pool\BasePool;
+use Org\Shipsimu\Hub\Pool\Poolable;
+use Org\Shipsimu\Hub\Pool\Peer\PoolablePeer;
 
 // Import framework stuff
-use CoreFramework\Socket\InvalidSocketException;
+use Org\Mxchange\CoreFramework\Socket\InvalidSocketException;
 
 // Import SPL stuff
 use \LogicException;
index 59b8a06992c3d58b831fc74b56170f8d4ac77653..73915cacb90d5a656fc0116af4b85e457e60a27e 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Producer;
+namespace Org\Shipsimu\Hub\Producer;
 
 // Import application-specific stuff
-use Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A general Producer class
index 83980750ea7d99932165bae90f3ede0eb79e60c8..65fbcf062532f651f6ffdf5eabccc5e03205e9e8 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Producer\Cruncher\Key;
+namespace Org\Shipsimu\Hub\Producer\Cruncher\Key;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registerable;
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A CruncherKey producer class
@@ -132,6 +132,3 @@ class CruncherKeyProducer extends BaseKeyProducer implements KeyProducer, Regist
                $this->getIteratorInstance()->next();
        }
 }
-
-// [EOF]
-?>
index 2c8d8bb740883336e7597b0e66720fa5b5f952a0..a95841ad3aaac90f7bff78cbc5ede58137b54743 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Cruncher\Producer\Unit;
+namespace Org\Shipsimu\Hub\Cruncher\Producer\Unit;
 
 // Import framework stuff
-use CoreFramework\Factory\Database\Wrapper\DatabaseWrapperFactory;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
-use CoreFramework\Registry\Registerable;
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\Factory\Database\Wrapper\DatabaseWrapperFactory;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Factory\Template\XmlTemplateEngineFactory;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A CruncherTestUnit producer class
@@ -125,6 +125,3 @@ class CruncherTestUnitProducer extends BaseUnitProducer implements UnitProducer,
                $this->partialStub('Maybe implement this method?');
        }
 }
-
-// [EOF]
-?>
index 97b7f8e5c4fb1102883a20f8dcf39d86e41003d2..889a3ea5de2c0a0c0d12878209dc0e7376621863 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Miner\Producer\Block\Genesis;
+namespace Org\Shipsimu\Hub\Miner\Producer\Block\Genesis;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registerable;
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A MinerRealGenesisBlock producer class
index fbf80a39f0e55fb0024a44207281345cc876db8a..dd4bdab3254c2d36870e3b02b25b058d07688fc6 100644 (file)
@@ -90,6 +90,3 @@ class MinerTestGenesisBlockProducer extends BaseBlockProducer implements BlockPr
                 */
        }
 }
-
-// [EOF]
-?>
index e65c6558f57037899662224f55fbef37816bbece..ca3b5b96bf704be290ec430cf363cf5c25c588b3 100644 (file)
@@ -6,7 +6,7 @@ namespace Hub\Network\Recipient\;
 use Hub\Network\Recipient\BaseRecipient;
 
 // Import framework stuff
-use CoreFramework\Lists\Listable;
+use Org\Mxchange\CoreFramework\Lists\Listable;
 
 /**
  * A ??? recipient
index 5340d0e6a0b01b10d8e072b4336335d3ecade6df..c93976e91e1d94747ce8a7a8bcb6102b23fa0219 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Network\Recipient;
+namespace Org\Shipsimu\Hub\Network\Recipient;
 
 // Import hub-specific stuff
-use Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
 /**
  * A general Recipient class
index 10a2b722b1f1e2880e7a88d0d8151f6679efb604..de027dacf320bdffafed4fdb8afa463b074af39a 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Network\Recipient\Dht;
+namespace Org\Shipsimu\Hub\Network\Recipient\Dht;
 
 // Import application-specific stuff
-use Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
-use Hub\Network\Package\NetworkPackage;
-use Hub\Network\Recipient\BaseRecipient;
-use Hub\Network\Recipient\Recipient;
+use Org\Shipsimu\Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Network\Recipient\BaseRecipient;
+use Org\Shipsimu\Hub\Network\Recipient\Recipient;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Lists\Listable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Lists\Listable;
 
 /**
  * A DHT recipient
index 0924696b2ac3a551f128978d5b26760618ff462d..21c8b4987c74e0b828d49a4e063476ec2bce6a1e 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Network\Recipient\Direct;
+namespace Org\Shipsimu\Hub\Network\Recipient\Direct;
 
 // Import hub-specific sutff
-use Hub\Network\Package\NetworkPackage;
-use Hub\Network\Recipient\BaseRecipient;
-use Hub\Network\Recipient\Recipient;
-use Hub\Tools\HubTools;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Network\Recipient\BaseRecipient;
+use Org\Shipsimu\Hub\Network\Recipient\Recipient;
+use Org\Shipsimu\Hub\Tools\HubTools;
 
 // Import framework stuff
-use CoreFramework\Lists\Listable;
+use Org\Mxchange\CoreFramework\Lists\Listable;
 
 /**
  * A Direct recipient
index 9601c2b2c0714d4af2b0d2fd0ed7636e9eef9f21..e468cdbda781bfde357763efa4501f85b53e52b1 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Network\Recipient\Loopback;
+namespace Org\Shipsimu\Hub\Network\Recipient\Loopback;
 
 // Import hub-specific sutff
-use Hub\Network\Package\NetworkPackage;
-use Hub\Network\Recipient\BaseRecipient;
-use Hub\Network\Recipient\Recipient;
-use Hub\Tools\HubTools;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Network\Recipient\BaseRecipient;
+use Org\Shipsimu\Hub\Network\Recipient\Recipient;
+use Org\Shipsimu\Hub\Tools\HubTools;
 
 // Import framework stuff
-use CoreFramework\Lists\Listable;
+use Org\Mxchange\CoreFramework\Lists\Listable;
 
 /**
  * A Self recipient
index 582d70683667f3e69de293511d05182d90fcffb9..09c479f4f0abc6985a6a44aa59c370bb07b08067 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Network\Recipient\Upper;
+namespace Org\Shipsimu\Hub\Network\Recipient\Upper;
 
 // Import hub-specific stuff
-use Hub\Generic\BaseHubSystem;
-use Hub\Network\Package\NetworkPackage;
-use Hub\Network\Recipient\BaseRecipient;
-use Hub\Network\Recipient\Recipient;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Network\Recipient\BaseRecipient;
+use Org\Shipsimu\Hub\Network\Recipient\Recipient;
 
 // Import framework stuff
-use CoreFramework\Lists\Listable;
+use Org\Mxchange\CoreFramework\Lists\Listable;
 
 /**
  * A Upper recipient
index cc73b12a940498c2b20d2013041fcd796254b83c..9d908d8c89688a3b8ee8ff66c7710316389bfd5e 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Registry\Object;
+namespace Org\Shipsimu\Hub\Registry\Object;
 
 // Imported framework stuff
-use CoreFramework\Registry\BaseRegistry;
-use CoreFramework\Registry\Register;
+use Org\Mxchange\CoreFramework\Registry\BaseRegistry;
+use Org\Mxchange\CoreFramework\Registry\Register;
 
 /**
  * A ObjectType registry
index 90729f5ed259635f3c2e0e3252fb270e390a7489..cc080909ce10a7f6f2118014067bbf3b12327f14 100644 (file)
@@ -1,23 +1,24 @@
 <?php
 // Own namespace
-namespace Hub\Registry\Socket;
+namespace Org\Shipsimu\Hub\Registry\Socket;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Factory\Information\Connection\ConnectionInfoFactory;
-use Hub\Helper\Connection\ConnectionHelper;
-use Hub\Information\ShareableInfo;
-use Hub\Listener\BaseListener;
-use Hub\Listener\Listenable;
-use Hub\Network\Package\NetworkPackage;
-use Hub\Registry\Socket\RegisterableSocket;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Factory\Information\Connection\ConnectionInfoFactory;
+use Org\Shipsimu\Hub\Helper\Connection\ConnectionHelper;
+use Org\Shipsimu\Hub\Information\ShareableInfo;
+use Org\Shipsimu\Hub\Listener\BaseListener;
+use Org\Shipsimu\Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Registry\Socket\RegisterableSocket;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\BaseRegistry;
-use CoreFramework\Registry\Register;
-use CoreFramework\Registry\Sub\SubRegistry;
-use CoreFramework\Socket\SocketAlreadyRegisteredException;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
+use Org\Mxchange\CoreFramework\Registry\BaseRegistry;
+use Org\Mxchange\CoreFramework\Registry\Register;
+use Org\Mxchange\CoreFramework\Registry\Sub\SubRegistry;
+use Org\Mxchange\CoreFramework\Socket\SocketAlreadyRegisteredException;
 
 /**
  * A Socket registry
@@ -247,6 +248,9 @@ class SocketRegistry extends BaseRegistry implements Register, RegisterableSocke
 
                // Also register all instances from info instance in socket
                $socketInstance->registerInfoInstance($infoInstance);
+
+               // Trace message
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('SOCKET-REGISTRY: EXIT!');
        }
 
        /**
@@ -359,4 +363,24 @@ class SocketRegistry extends BaseRegistry implements Register, RegisterableSocke
                return $infoInstance;
        }
 
+       /**
+        * Checks whether a socket of a connection type 'incoming' is registered.
+        *
+        * @return      $isRegistered   Whether such a socket is registered
+        * @todo        0% done
+        */
+       public function isIncomingSocketRegistered () {
+               // Trace message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('SOCKET-REGISTRY: CALLED!');
+
+               // Default is not found
+               $isRegistered = FALSE;
+
+               // Trace message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('SOCKET-REGISTRY: isRegistered=%d - EXIT!', intval($isRegistered)));
+
+               // Return status
+               return $isRegistered;
+       }
+
 }
index aa26c2764b0deb6509cf7c8bebc9631927b9b650..ae0b61c972cc6383f856ebaff8b28929a6e031dd 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Resolver\Command;
+namespace Org\Shipsimu\Hub\Resolver\Command;
 
 // Import Framework stuff
-use CoreFramework\Manager\ManageableApplication;
-use CoreFramework\Resolver\Command\BaseCommandResolver;
-use CoreFramework\Resolver\Command\CommandResolver;
+use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
+use Org\Mxchange\CoreFramework\Resolver\Command\BaseCommandResolver;
+use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 
 /**
  * A command resolver for local (non-hubbed) web commands
@@ -60,13 +60,13 @@ class HubConsoleCommandResolver extends BaseCommandResolver implements CommandRe
                if (empty($commandName)) {
                        // Then thrown an exception here
                        throw new EmptyVariableException(array($resolverInstance, 'commandName'), self::EXCEPTION_UNEXPECTED_EMPTY_STRING);
-               } elseif ($resolverInstance->isCommandValid('Hub\Command', $commandName) === FALSE) {
+               } elseif ($resolverInstance->isCommandValid('Org\Shipsimu\Hub\Command', $commandName) === FALSE) {
                        // Invalid command found
                        throw new InvalidCommandException(array($resolverInstance, $commandName), self::EXCEPTION_INVALID_COMMAND);
                }
 
                // Set namespace and application instance
-               $resolverInstance->setNamespace('Hub\Command');
+               $resolverInstance->setNamespace('Org\Shipsimu\Hub\Command');
                $resolverInstance->setApplicationInstance($applicationInstance);
 
                // Return the prepared instance
index a71ad087d2665f5a6c4c76aff0bf2210beb012cc..9327834fcf1c4044662f681e847a5f431f05c83b 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Resolver\Command;
+namespace Org\Shipsimu\Hub\Resolver\Command;
 
 // Import Framework stuff
-use CoreFramework\Manager\ManageableApplication;
-use CoreFramework\Resolver\Command\BaseCommandResolver;
-use CoreFramework\Resolver\Command\CommandResolver;
+use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
+use Org\Mxchange\CoreFramework\Resolver\Command\BaseCommandResolver;
+use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 
 /**
  * A command resolver for HTML commands
@@ -60,13 +60,13 @@ class HubHtmlCommandResolver extends BaseCommandResolver implements CommandResol
                if (empty($commandName)) {
                        // Then thrown an exception here
                        throw new EmptyVariableException(array($resolverInstance, 'commandName'), self::EXCEPTION_UNEXPECTED_EMPTY_STRING);
-               } elseif ($resolverInstance->isCommandValid('Hub\Command', $commandName) === FALSE) {
+               } elseif ($resolverInstance->isCommandValid('Org\Shipsimu\Hub\Command', $commandName) === FALSE) {
                        // Invalid command found
                        throw new InvalidCommandException(array($resolverInstance, $commandName), self::EXCEPTION_INVALID_COMMAND);
                }
 
                // Set namespace and application instance
-               $resolverInstance->setNamespace('Hub\Command');
+               $resolverInstance->setNamespace('Org\Shipsimu\Hub\Command');
                $resolverInstance->setApplicationInstance($applicationInstance);
 
                // Return the prepared instance
index cab02d6e59960d30a7c6f40610d38c4c1e0d2003..1433bb062e5f29bc89eeb699ced3a36db4e7d6e8 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Resolver\Controller;
+namespace Org\Shipsimu\Hub\Resolver\Controller;
 
 // Import framework stuff
-use CoreFramework\Controller\Controller;
-use CoreFramework\Manager\ManageableApplication;
-use CoreFramework\Resolver\Controller\BaseControllerResolver;
-use CoreFramework\Resolver\Controller\ControllerResolver;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
+use Org\Mxchange\CoreFramework\Resolver\Controller\BaseControllerResolver;
+use Org\Mxchange\CoreFramework\Resolver\Controller\ControllerResolver;
 
 /**
  * A resolver for resolving controllers locally
@@ -61,7 +61,7 @@ class HubConsoleControllerResolver extends BaseControllerResolver implements Con
                if (empty($controllerName)) {
                        // Then thrown an exception here
                        throw new EmptyVariableException(array($resolverInstance, 'commandName'), self::EXCEPTION_UNEXPECTED_EMPTY_STRING);
-               } elseif ($resolverInstance->isControllerValid('Hub\Controller', $controllerName) === false)  {
+               } elseif ($resolverInstance->isControllerValid('Org\Shipsimu\Hub\Controller', $controllerName) === false)  {
                        // Invalid command found
                        throw new InvalidControllerException(array($resolverInstance, $controllerName), self::EXCEPTION_INVALID_CONTROLLER);
                }
@@ -70,7 +70,7 @@ class HubConsoleControllerResolver extends BaseControllerResolver implements Con
                $resolverInstance->setApplicationInstance($applicationInstance);
 
                // Set namespace and command name
-               $resolverInstance->setNamespace('Hub\Controller');
+               $resolverInstance->setNamespace('Org\Shipsimu\Hub\Controller');
                $resolverInstance->setControllerName($controllerName);
 
                // Return the prepared instance
index 5a479574604154b67bfbe340105df1a1ca5e102a..2e1299c93a84fab376879b6b7656dce3621cb985 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Resolver\Controller;
+namespace Org\Shipsimu\Hub\Resolver\Controller;
 
 // Import framework stuff
-use CoreFramework\Controller\Controller;
-use CoreFramework\Manager\ManageableApplication;
-use CoreFramework\Resolver\Controller\BaseControllerResolver;
-use CoreFramework\Resolver\Controller\ControllerResolver;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
+use Org\Mxchange\CoreFramework\Resolver\Controller\BaseControllerResolver;
+use Org\Mxchange\CoreFramework\Resolver\Controller\ControllerResolver;
 
 /**
  * A resolver for resolving controllers locally
@@ -61,7 +61,7 @@ class HubHtmlControllerResolver extends BaseControllerResolver implements Contro
                if (empty($controllerName)) {
                        // Then thrown an exception here
                        throw new EmptyVariableException(array($resolverInstance, 'commandName'), self::EXCEPTION_UNEXPECTED_EMPTY_STRING);
-               } elseif ($resolverInstance->isControllerValid('Hub\Controller', $controllerName) === false)  {
+               } elseif ($resolverInstance->isControllerValid('Org\Shipsimu\Hub\Controller', $controllerName) === false)  {
                        // Invalid command found
                        throw new InvalidControllerException(array($resolverInstance, $controllerName), self::EXCEPTION_INVALID_CONTROLLER);
                }
@@ -70,7 +70,7 @@ class HubHtmlControllerResolver extends BaseControllerResolver implements Contro
                $resolverInstance->setApplicationInstance($applicationInstance);
 
                // Set namespace and command name
-               $resolverInstance->setNamespace('Hub\Controller');
+               $resolverInstance->setNamespace('Org\Shipsimu\Hub\Controller');
                $resolverInstance->setControllerName($controllerName);
 
                // Return the prepared instance
index c7c40df2466f4c7ac5d48071a7e646fe982f1155..ca48cdd855eb0af3a3b92b0ec3a1357a7fb70f8a 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Resolver\Protocol;
+namespace Org\Shipsimu\Hub\Resolver\Protocol;
 
 // Import hub-specific stuff
-use Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
 /**
  * A generic protocol resolver class
index 1e8afedcfab190be86f5d402d3866ec13fc0b8ff..971901b5668dd5f0ad705933ed8ae589fe9cdc8e 100644 (file)
@@ -1,18 +1,18 @@
 <?php
 // Own namespace
-namespace Hub\Resolver\Protocol\Tcp;
+namespace Org\Shipsimu\Hub\Resolver\Protocol\Tcp;
 
 // Import application-specific stuff
-use Hub\Database\Frontend\Node\Information\NodeInformationDatabaseWrapper;
-use Hub\Factory\Network\Locator\UniversalNodeLocatorFactory;
-use Hub\Helper\Node\NodeHelper;
-use Hub\Resolver\Protocol\BaseProtocolResolver;
-use Hub\Resolver\Protocol\ProtocolResolver;
+use Org\Shipsimu\Hub\Database\Frontend\Node\Information\NodeInformationDatabaseWrapper;
+use Org\Shipsimu\Hub\Factory\Network\Locator\UniversalNodeLocatorFactory;
+use Org\Shipsimu\Hub\Helper\Node\NodeHelper;
+use Org\Shipsimu\Hub\Resolver\Protocol\BaseProtocolResolver;
+use Org\Shipsimu\Hub\Resolver\Protocol\ProtocolResolver;
 
 // Import framework stuff
-use CoreFramework\Console\Tools\ConsoleTools;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Console\Tools\ConsoleTools;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A TCP protocol resolver class
index e6107574c68d8fe33af0e7e57a1c47574d631141..06cf46fabc65e8c5d34728fb5d041e9323d35907 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Resolver\State;
+namespace Org\Shipsimu\Hub\Resolver\State;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Resolver\BaseResolver;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Resolver\BaseResolver;
 
 /**
  * A generic state resolver class
index 97147445e94ab88242dddc573987b2f2b84923e9..865b34e0ce4076ece7b6286b194edd0f277eae4c 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Resolver\State\Peer;
+namespace Org\Shipsimu\Hub\Resolver\State\Peer;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Factory\State\Peer\PeerStateFactory;
-use Hub\Helper\Connection\ConnectionHelper;
-use Hub\Resolver\State\BaseStateResolver;
-use Hub\Resolver\State\StateResolver;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Factory\State\Peer\PeerStateFactory;
+use Org\Shipsimu\Hub\Helper\Connection\ConnectionHelper;
+use Org\Shipsimu\Hub\Resolver\State\BaseStateResolver;
+use Org\Shipsimu\Hub\Resolver\State\StateResolver;
 
 // Import framework stuff
-use CoreFramework\Socket\InvalidSocketException;
+use Org\Mxchange\CoreFramework\Socket\InvalidSocketException;
 
 /**
  * A resolver for resolving peer states locally
index a2f174cb664dcd9714091199114a7a4fcf874fca..2716cb2b1ea6cb35ee6077576fee00e37e60c62e 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Scanner;
+namespace Org\Shipsimu\Hub\Scanner;
 
 // Import hub-specific stuff
-use Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
 /**
  * A general Scanner class
index 25a640c08e881f3150d09d9ef9f3b646e1407c62..60ceaf4dde5d7aafc5bfd9377d0ff638aabcc793 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Scanner\UploadedList;
+namespace Org\Shipsimu\Hub\Crawler\Scanner\UploadedList;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A UploadedList scanner class for crawlers
index 875c8e114e95158aefebcbb3b8f3cc90925b7f22..fe05bd7f1a75090c5a2e11b6124401d9ac67c017 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Source;
+namespace Org\Shipsimu\Hub\Source;
 
 // Import hub-specific stuff
-use Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
 /**
  * A general Source class
index 45ae0cdc95017f5b6b8978ee153d9060d8f857fc..610d7778d51d2cbaef33f73a28b675bb1d605b75 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Source\Unit;
+namespace Org\Shipsimu\Hub\Source\Unit;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A TestUnit source class
index 89bb32835d3fd602a907522d64ad802e67bfceff..f96ebbc8f123463457dcc68366a424ca0f91df3e 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Source\FoundRss;
+namespace Org\Shipsimu\Hub\Crawler\Source\FoundRss;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A FoundRss URL source class for crawlers
index c89f61fef0b37d5f73a9301401e46e9a2f3593db..c17a152f3c94afed73c96c2075e537bce5bb638c 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Source\LocalStart;
+namespace Org\Shipsimu\Hub\Crawler\Source\LocalStart;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A ??? URL source class for crawlers
index 2f9cd10f286e22bca8cf462a4fde4163e53c6a67..5185577243d4c36813678691a74e2bfd8becf2a7 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Source\RssStart;
+namespace Org\Shipsimu\Hub\Crawler\Source\RssStart;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A RssStart URL source class for crawlers
index 9ad2f51645e54120def12ec7e81edd2823d3d1d1..daa2bb8a82f6f54af7bf2c0906baec6b467f58fe 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Source\Url\UploadList;
+namespace Org\Shipsimu\Hub\Crawler\Source\Url\UploadList;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Generic\NullPointerException;
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Generic\NullPointerException;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A UploadedList URL source class for crawlers
index 00d5e4088141abadd6845271716e2b8800abf853..f24b9562e7980916a9f20bc51df49408a68120a7 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\State\Communicator;
+namespace Org\Shipsimu\Hub\State\Communicator;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A active communicator state class
index bfb80130b865d2ebd924af0f09622150af4baea8..1ddb6cba0e88feb094620d8dd0884732196a8eb4 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Communicator\State;
+namespace Org\Shipsimu\Hub\Communicator\State;
 
 // Import framework stuff
-use CoreFramework\State\BaseState;
+use Org\Mxchange\CoreFramework\State\BaseState;
 
 /**
  * A general communicator state class
index 8f05ca6b191da0f502547b88c363ed7d059d0800..b699d28ee470b2a0cc47019b6d24b7047dffcdc1 100644 (file)
@@ -3,7 +3,7 @@
 namespace Hub\State\Communicator\;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A ??? communicator state class
index d3f166e4b2fd59ee8d8e362205ac3bb63c22e338..e192260c45437a86eff9671e6c5c7853961bc301 100644 (file)
@@ -1,9 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\State\Communicator;
+namespace Org\Shipsimu\Hub\State\Communicator;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\Executor\Executor;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A init communicator state class
@@ -68,6 +69,3 @@ class CommunicatorInitState extends BaseCommunicatorState implements Stateable {
        public function executeState (Executor $executorInstance) {
        }
 }
-
-// [EOF]
-?>
index 647f1b1866ff0fbf908fb10bcef6c7fd25442c27..18f56ac474f1987c774660eca1c02cb02af1e8f0 100644 (file)
@@ -1,9 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\State\Crawler;
+namespace Org\Shipsimu\Hub\State\Crawler;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\Executor\Executor;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A active crawler state class
@@ -66,6 +67,3 @@ class CrawlerActiveState extends BaseCrawlerState implements Stateable {
                $this->partialStub('Unfinished method, executorInstance=' . $executorInstance->__toString());
        }
 }
-
-// [EOF]
-?>
index 684f3262e86fad7a1321cef93cba3d6b09d06751..0c6d1f9acb254ec13cb4c746b071aef1120d29dc 100644 (file)
@@ -1,9 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\State\Crawler;
+namespace Org\Shipsimu\Hub\State\Crawler;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\Executor\Executor;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A booting crawler state class
@@ -65,6 +66,3 @@ class CrawlerBootingState extends BaseCrawlerState implements Stateable {
                $this->partialStub('Unfinished method, executorInstance=' . $executorInstance->__toString());
        }
 }
-
-// [EOF]
-?>
index dcfefa1d5d5e6ba300c88553041c54f0101d2196..6c715641e247a14ae09e8b7b458f3025a149ebcd 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\State;
+namespace Org\Shipsimu\Hub\Crawler\State;
 
 // Import framework stuff
-use CoreFramework\State\BaseState;
+use Org\Mxchange\CoreFramework\State\BaseState;
 
 /**
  * A general crawler state class
index e03a60c76ccd77f8660dca918c4b2193bb1b572e..65811ee3d660c3343217196abdcd1fa040cd9556 100644 (file)
@@ -3,7 +3,7 @@
 namespace Hub\State\Crawler\;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A ??? crawler state class
index 6c7cdd07d9e05f6d2b0b5c91f29276d1cdbc4be0..da4840c0141c5de3b7a941d8eadbe6dd14457ff9 100644 (file)
@@ -1,9 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\State\Crawler;
+namespace Org\Shipsimu\Hub\State\Crawler;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\Executor\Executor;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A init crawler state class
@@ -79,6 +80,3 @@ class CrawlerInitState extends BaseCrawlerState implements Stateable {
                CrawlerStateFactory::createCrawlerStateInstanceByName('booting');
        }
 }
-
-// [EOF]
-?>
index 357abe17062e81a56f5ce4b363e96e74d0636c0a..eb7df383f32ce69f86668349d6e51cf06af3b8a8 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Cruncher\State;
+namespace Org\Shipsimu\Hub\Cruncher\State;
 
 // Import framework stuff
-use CoreFramework\State\BaseState;
+use Org\Mxchange\CoreFramework\State\BaseState;
 
 /**
  * A general cruncher state class
index 33b6e167b95028add65970faaf62c2c9868a1f2b..fd2446ce36421e5f246546fc9ee6e07e2a66cfe2 100644 (file)
@@ -3,7 +3,8 @@
 namespace Hub\State\Cruncher\;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\Executor\Executor;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A ??? cruncher state class
index 22d0ca66cac0886cc00f75b88c9dd4426165c5e7..1f3629b08ff33ff860f9fd401fcde9352904e95e 100644 (file)
@@ -1,9 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\State\Cruncher;
+namespace Org\Shipsimu\Hub\State\Cruncher;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\Executor\Executor;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A Init cruncher state class
@@ -76,6 +77,3 @@ class CruncherInitState extends BaseCruncherState implements Stateable {
                CruncherStateFactory::createCruncherStateInstanceByName('virgin');
        }
 }
-
-// [EOF]
-?>
index 9dce0225bf239b55cc71988d5f78e49ef557a455..aaab7c5a849d64ef3f4fef788cae14a0f8cfc180 100644 (file)
@@ -1,9 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\State\Cruncher;
+namespace Org\Shipsimu\Hub\State\Cruncher;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\Executor\Executor;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A Virgin cruncher state class
@@ -65,6 +66,3 @@ class CruncherVirginState extends BaseCruncherState implements Stateable {
                $executorInstance->produceKeys($this);
        }
 }
-
-// [EOF]
-?>
index 9e908d6b9e1f6c8eb101d2f2f3cf8a74a61e2acb..594e2742bd113d23906ec83e374a182a22814d73 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\State\Dht;
+namespace Org\Shipsimu\Hub\State\Dht;
 
 // Import application-specific stuff
-use Hub\Dht\Distributable;
+use Org\Shipsimu\Hub\Dht\Distributable;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A Active dht state class
index e03a97a8c8a62bba89b1bbc2d273f8ea68090b63..2f06bfab041c59c57a77166b68fbdd38f0d10681 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\State\Dht;
+namespace Org\Shipsimu\Hub\State\Dht;
 
 // Import application-specific stuff
-use Hub\Dht\Distributable;
+use Org\Shipsimu\Hub\Dht\Distributable;
 
 // Import application-specific stuff
-use Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A Booting dht state class
index f6051285eb1b275e267075d3999b5a934c605381..167e5eda2da47ca66c43ce0d67a1505146544b7d 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\State\Dht;
+namespace Org\Shipsimu\Hub\State\Dht;
 
 // Import framework stuff
-use CoreFramework\State\BaseState;
+use Org\Mxchange\CoreFramework\State\BaseState;
 
 /**
  * A general DHT state class
index 71aea4b48a59a287ad5310a9567e6992a0ca02f5..28c8c5dadeb3be075e2119f299da876976b88950 100644 (file)
@@ -6,7 +6,7 @@ namespace Hub\State\Dht\;
 use Hub\Dht\Distributable;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A ??? dht state class
index da78087471b26daae8a467df2366b0285f17e326..9ae936b11fc6ac30029396e7d0e701bb2123205e 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\State\Dht;
+namespace Org\Shipsimu\Hub\State\Dht;
 
 // Import application-specific stuff
-use Hub\Dht\Distributable;
-use Hub\Factory\Dht\DhtObjectFactory;
-use Hub\Factory\State\Dht\DhtStateFactory;
+use Org\Shipsimu\Hub\Dht\Distributable;
+use Org\Shipsimu\Hub\Factory\Dht\DhtObjectFactory;
+use Org\Shipsimu\Hub\Factory\State\Dht\DhtStateFactory;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A Init dht state class
index 8ddde77956ff983bc9558e42f10d466e1e96faf1..b0591692dab98ac53b7e8c0513b8329f225afcb5 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\State\Dht;
+namespace Org\Shipsimu\Hub\State\Dht;
 
 // Import application-specific stuff
-use Hub\Dht\Distributable;
-use Hub\Factory\Dht\DhtObjectFactory;
-use Hub\Factory\State\Dht\DhtStateFactory;
+use Org\Shipsimu\Hub\Dht\Distributable;
+use Org\Shipsimu\Hub\Factory\Dht\DhtObjectFactory;
+use Org\Shipsimu\Hub\Factory\State\Dht\DhtStateFactory;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A Virgin dht state class
index 4bc9d534e28c633610f0e0aa76747623bd738cdf..0c9fba290327b70e27e6bf7d3e2037d768bd49a1 100644 (file)
@@ -1,9 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\State\Miner;
+namespace Org\Shipsimu\Hub\State\Miner;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\Executor\Executor;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A Booting miner state class
index 3b1a13693e8b9e28ca9fa600e70963d79512378e..455b3506ed76d708ecf83da1358bbe8aa0566d30 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Miner\State;
+namespace Org\Shipsimu\Hub\Miner\State;
 
 // Import framework stuff
-use CoreFramework\State\BaseState;
+use Org\Mxchange\CoreFramework\State\BaseState;
 
 /**
  * A general miner state class
index 46b121ffc5c6ad9a48e4a937d8a417d610eeae5b..d3300d876e1a415443dbb5acb7f30495637e0580 100644 (file)
@@ -3,7 +3,8 @@
 namespace Hub\State\Miner\;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\Executor\Executor;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A ??? miner state class
index e123723d48c4c2e3b5ebcd5d4c7162d3988bd4b1..a92f55046e6b006da9b1c9562cf7df7d607a5350 100644 (file)
@@ -1,9 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\State\Miner;
+namespace Org\Shipsimu\Hub\State\Miner;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\Executor\Executor;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A Init miner state class
@@ -75,6 +76,3 @@ class MinerInitState extends BaseMinerState implements Stateable {
                MinerStateFactory::createMinerStateInstanceByName('virgin');
        }
 }
-
-// [EOF]
-?>
index f2e9e84e46ef5c9186e371f906ee0454b6cd9ad9..32c1b5861e62c9a4f3318cd2a834ac52875decc5 100644 (file)
@@ -1,9 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\State\Miner;
+namespace Org\Shipsimu\Hub\State\Miner;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\Executor\Executor;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A Virgin miner state class
@@ -65,6 +66,3 @@ class MinerVirginState extends BaseMinerState implements Stateable {
                $executorInstance->produceKeys($this);
        }
 }
-
-// [EOF]
-?>
index 6fad50910ad70ec23c95f4f83a78934217eed991..907783d1469b11e9f102b659cc36160a3920d3b7 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\State\Node;
+namespace Org\Shipsimu\Hub\State\Node;
 
 // Import framework stuff
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Factory\State\Node\NodeStateFactory;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Factory\State\Node\NodeStateFactory;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * An active node state class
index 9120d542d83a82f2b9403a4c2d58de987aabb7be..8b8e509b99d5eee92ef7c23f0ca1f10ac2523835 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\State\Node;
+namespace Org\Shipsimu\Hub\State\Node;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A AnnouncementCompleted node state class
index 702b2f636c39f295d270891569a8b6bf877ba4b6..ef8118ce310ed73ac875dba811eb86bd46d27cab 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\State\Node;
+namespace Org\Shipsimu\Hub\State\Node;
 
 // Import framework stuff
-use Hub\Factory\State\Node\NodeStateFactory;
+use Org\Shipsimu\Hub\Factory\State\Node\NodeStateFactory;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A Announcing node state class
index ee234276496618bfb9dc13101d1fb85fc0a5be59..cae52d00a71368b070ce65abc29ab450df7a9e08 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\State\Node;
+namespace Org\Shipsimu\Hub\State\Node;
 
 // Import framework stuff
-use CoreFramework\State\BaseState;
+use Org\Mxchange\CoreFramework\State\BaseState;
 
 /**
  * A general node state class
index 51c034474d33ce1390fc5eec14b53758f2fc9b46..0c8cace4a5b352e049d5bdcd32826da472140b64 100644 (file)
@@ -6,7 +6,7 @@ namespace Hub\State\Node\;
 use Hub\Helper\Node\NodeHelper;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A ??? node state class
index 6e209798176476b279b4275b850688e2dcdd7648..13f8e9713657935a41527f24324fac29592b4fba 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\State\Node;
+namespace Org\Shipsimu\Hub\State\Node;
 
 // Import framework stuff
-use Hub\Factory\State\Node\NodeStateFactory;
+use Org\Shipsimu\Hub\Factory\State\Node\NodeStateFactory;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A init node state class
index 92716831a633cc8a2c5197e4253dead19c6b70fd..ba110d103f3b074c7e97bb2e7ff48cd54c0eea62 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\State\Node;
+namespace Org\Shipsimu\Hub\State\Node;
 
 // Import framework stuff
-use Hub\Factory\State\Node\NodeStateFactory;
+use Org\Shipsimu\Hub\Factory\State\Node\NodeStateFactory;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A Reachable node state class
index c9ce7e4232c2daa4c0be2bfac4e2f4476a00a1a3..b0cf5e8c8082cf62a86cddbb3629d20e536ebe1d 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\State\Node;
+namespace Org\Shipsimu\Hub\State\Node;
 
 // Import framework stuff
-use Hub\Factory\State\Node\NodeStateFactory;
+use Org\Shipsimu\Hub\Factory\State\Node\NodeStateFactory;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A virgin node state class
index 13cbe515c505cff1c923d177dbbb66ccb35f7e70..385bab710a05914fbbe4cd29be101e17870ef0f2 100644 (file)
@@ -7,7 +7,7 @@ use Hub\Container\Socket\StorableSocket;
 use Hub\State\Peer\PeerStateable;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A ??? peer state class
index abfdc3c5212038d0dd71734241568fd7623bce20..31daf298702cc97ccc896463184d3307384fa95d 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\State\Peer;
+namespace Org\Shipsimu\Hub\State\Peer;
 
 // Import framework stuff
-use CoreFramework\State\BaseState;
+use Org\Mxchange\CoreFramework\State\BaseState;
 
 /**
  * A general peer state class
index 45e82c18affa0f5b746efa4fd04be6dc3e56ad98..591d93c509d94fe683dde8d7bc1dc769270fc6e0 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\State\Peer;
+namespace Org\Shipsimu\Hub\State\Peer;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\State\Peer\PeerStateable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\State\Peer\PeerStateable;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A Connected peer state class
index cf42313a955b2715a58424624b2ccf84700c4bf5..64e271ae6db848f7cce6c69822ccc004ae4f72b6 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\State\Peer;
+namespace Org\Shipsimu\Hub\State\Peer;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\State\Peer\PeerStateable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\State\Peer\PeerStateable;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A ConnectionRefused peer state class
index 2de0616eb6c908d3dfec150759fc3425d2d43b29..da407dddd3ce2da19a00869a2033d05b4196a663 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\State\Peer;
+namespace Org\Shipsimu\Hub\State\Peer;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\State\Peer\PeerStateable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\State\Peer\PeerStateable;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A ConnectionTimedOut peer state class
index b90fb9ebe1eb654fa4f509a95d364b1a420f2841..789394c4f4ae8abf2d3a1bc4cec50257b34cd611 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\State\Peer;
+namespace Org\Shipsimu\Hub\State\Peer;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\State\Peer\PeerStateable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\State\Peer\PeerStateable;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A NoRouteToHost peer state class
index f33ed89944d958b376110b6be71d7cfde0cc5de4..f0c6c38369c9339aefce1da5116807516e75f81e 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\State\Peer;
+namespace Org\Shipsimu\Hub\State\Peer;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\State\Peer\PeerStateable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\State\Peer\PeerStateable;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A OperationAlreadyProgress peer state class
index 51fce8833219e9511db098f2bc484bf75f43014c..f850dccf9e21fb9f7733db2d8311d1e0635e6509 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\State\Peer;
+namespace Org\Shipsimu\Hub\State\Peer;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\State\Peer\PeerStateable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\State\Peer\PeerStateable;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A Problem peer state class
index 3a6430742ef7eeebc9c02ef258069f598d5c4c22..13b7d303d16404b782de512706c78796f8067b12 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\State\Peer;
+namespace Org\Shipsimu\Hub\State\Peer;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\State\Peer\PeerStateable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\State\Peer\PeerStateable;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A TransportEndpointGone peer state class
index a3aab472300f41bc4831d5b9848ff231e11d3d5c..4540b7f08dd992b49cbc26e6af699cbb3df3bf9b 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\State\Peer;
+namespace Org\Shipsimu\Hub\State\Peer;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * A Init peer state class
index d24f16cbb05d4c3d98234e78bbc33256dd420507..f6738ae6a6284ca31e5c01ad9363b95c6a10bb24 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Helper\Connection;
+namespace Org\Shipsimu\Hub\Helper\Connection;
 
 // Import hub-specific stuff
-use Hub\Generic\BaseHubSystem;
-use Hub\Helper\Connection\ConnectionHelper;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Helper\Connection\ConnectionHelper;
 
 /**
  * A helper class for maintaining connection statistics, no instance is
index 6774f624c85c344eff79c21533bb5602bb70fc3c..1108b6425c316b4e0fe9d4dc34b0222c74047401 100644 (file)
@@ -1,13 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Stream\Network\Input\RawData;
+namespace Org\Shipsimu\Hub\Stream\Network\Input\RawData;
 
 // Import application-specific stuff
-use Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Handler\Network\RawData\HandleableRawData;
 
 // Import framework stuff
-use CoreFramework\Stream\BaseStream;
-use CoreFramework\Stream\Input\InputStream;
+use Org\Mxchange\CoreFramework\Stream\BaseStream;
+use Org\Mxchange\CoreFramework\Stream\Input\InputStream;
 
 /**
  * A class for handling incoming (encoded) raw data with start and end markers.
@@ -78,16 +79,16 @@ class RawDataInputStream extends BaseStream implements InputStream {
                assert($this->ifStartEndMarkersSet($data));
 
                // Count of start and end markers must be the same
-               assert(substr_count($data, BaseRawDataHandler::STREAM_START_MARKER) == substr_count($data, BaseRawDataHandler::STREAM_END_MARKER));
+               assert(substr_count($data, HandleableRawData::STREAM_START_MARKER) == substr_count($data, HandleableRawData::STREAM_END_MARKER));
 
                // Check if more than two start markers exist and if so, split it.
-               if (substr_count($data, BaseRawDataHandler::STREAM_START_MARKER) > 1) {
+               if (substr_count($data, HandleableRawData::STREAM_START_MARKER) > 1) {
                        // Please do it outside this method
                        throw new MultipleMessageSentException(array($this, $data), BaseHubSystem::EXCEPTION_MULTIPLE_MESSAGE_SENT);
                } // END - if
 
                // Remove both
-               $data = substr($data, strlen(BaseRawDataHandler::STREAM_START_MARKER), -1 * strlen(BaseRawDataHandler::STREAM_END_MARKER));
+               $data = substr($data, strlen(HandleableRawData::STREAM_START_MARKER), -1 * strlen(HandleableRawData::STREAM_END_MARKER));
 
                // Can it be validated?
                if ((strlen($data) % 4) != 0) {
index 5ca6481dfea53f4dcd8cf1fc00b10f70b539b4f1..8ea061fa4a1a017f7006df6b996e1889d9e6a1c9 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Stream\Network\Output\RawData;
+namespace Org\Shipsimu\Hub\Stream\Network\Output\RawData;
 
 // Import application-specific stuff
-use Hub\Handler\Network\RawData\BaseRawDataHandler;
+use Org\Shipsimu\Hub\Handler\Network\RawData\HandleableRawData;
 
 // Import framework stuff
-use CoreFramework\Stream\BaseStream;
-use CoreFramework\Stream\Output\OutputStream;
+use Org\Mxchange\CoreFramework\Stream\BaseStream;
+use Org\Mxchange\CoreFramework\Stream\Output\OutputStream;
 
 /**
  * A RawDataOutputStream class
@@ -62,19 +62,25 @@ class RawDataOutputStream extends BaseStream implements OutputStream {
         * @return      $data   The data (string mostly) to "stream"
         */
        public function streamData ($data) {
+               // Trace message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('RAW-OUTPUT-STREAM: data()=%d - CALLED!', strlen($data)));
+
                /*
                 * Encode the data with BASE64 encoding and put it in a "frame":
                 *
                 * [[S]] - Start marker
                 * [[E]] - End marker
                 */
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('RAW-OUTPUT-STREAM: data()=' . strlen($data) . ' - BEFORE!');
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('RAW-OUTPUT-STREAM: data(%d)=%s - BEFORE!', strlen($data), $data));
                $data = sprintf('%s%s%s',
-                       BaseRawDataHandler::STREAM_START_MARKER,
+                       HandleableRawData::STREAM_START_MARKER,
                        base64_encode($data),
-                       BaseRawDataHandler::STREAM_END_MARKER
+                       HandleableRawData::STREAM_END_MARKER
                );
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('RAW-OUTPUT-STREAM: data(' . strlen($data) . ')=' . $data);
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('RAW-OUTPUT-STREAM: data(%d)=%s - AFTER!', strlen($data), $data));
+
+               // Trace message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('RAW-OUTPUT-STREAM: data()=%d - EXIT!', strlen($data)));
 
                // Return it
                return $data;
index 6de66a6803ebd31012396eff87bc85d02786660e..f1b8c59212c0d7755c8d78b980eb5b0fd9383515 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Tag;
+namespace Org\Shipsimu\Hub\Tag;
 
 // Import hub-specific stuff
-use Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A general Tags class
index defb26b224d1cb151ca1adb81f858f69b90cf79a..03d026cc19147a05d0d922545fbe27229a8ce658 100644 (file)
@@ -1,19 +1,19 @@
 <?php
 // Own namespace
-namespace Hub\Tag\Package;
+namespace Org\Shipsimu\Hub\Tag\Package;
 
 // Import application-specific stuff
-use Hub\Factory\Handler\Protocol\ProtocolHandlerFactory;
-use Hub\Factory\Registry\Object\ObjectTypeRegistryFactory;
-use Hub\Listener\Listenable;
-use Hub\Network\Package\NetworkPackage;
-use Hub\Tag\BaseTag;
-use Hub\Tag\Tagable;
-use Hub\Template\Engine\Xml\ObjectRegistry\XmlObjectRegistryTemplateEngine;
+use Org\Shipsimu\Hub\Factory\Handler\Protocol\ProtocolHandlerFactory;
+use Org\Shipsimu\Hub\Factory\Registry\Object\ObjectTypeRegistryFactory;
+use Org\Shipsimu\Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Tag\BaseTag;
+use Org\Shipsimu\Hub\Tag\Tagable;
+use Org\Shipsimu\Hub\Template\Engine\Xml\ObjectRegistry\XmlObjectRegistryTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
-use CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Factory\Template\XmlTemplateEngineFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A Package tags class
@@ -114,7 +114,7 @@ class PackageTags extends BaseTag implements Tagable {
         */
        private function extractTagsFromPackageData (array $packageData) {
                // Debug message
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TAGS: packageData=' . print_r($packageData, TRUE));
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TAGS: packageData=' . print_r($packageData, TRUE));
 
                /*
                 * We take a look at the tags (in most cases only one is needed) so
@@ -191,7 +191,7 @@ class PackageTags extends BaseTag implements Tagable {
                // Extract the tags
                $this->extractTagsFromPackageData($packageData);
 
-               // Now we need to verify every single tag
+               // Now every single tag needs to be validated
                $this->verifyAllTags($packageData);
 
                // Now simply check it out
index b11ac8fef100ded4bfb5e8e8e3be0ada0b3f1995..aef1feefa07340a23db5461ae31b650f48529f55 100644 (file)
@@ -3,10 +3,10 @@
 namespace Hub\Task\AptProxy\;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A ??? task for apt-proxy consoles
index 1fa8b30342c9301803826718254a06c8264119b7..355077ad1bf9b1471c803c7b94994df7fe591913 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\AptProxy\Task\Listener;
+namespace Org\Shipsimu\Hub\AptProxy\Task\Listener;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A proxy listener task for apt-proxy consoles
index 95200985b1f6788abb2a9b08ed9570a86720fafa..24747d535b828b4d47cf30fa6c9f3569ba01ba41 100644 (file)
@@ -3,10 +3,10 @@
 namespace Hub\Task\Chat\;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A ??? task for chat consoles
index cecc84acbe7714051e0e63ec812aa670e27bd2b3..a64fb0cf3ac6546228e51e4e1934cd40b22ff4ac 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Chat\Task\Listener\Telnet;
+namespace Org\Shipsimu\Hub\Chat\Task\Listener\Telnet;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A TelnetListener task for chat consoles
index 98c5de6c3b9fc32d40019e9f94b428a91d2dbb5e..c4da47a5e5f79dc42318647265e7229f15e7eb3d 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Task\Source\Url;
+namespace Org\Shipsimu\Hub\Task\Source\Url;
 
 // Import application-specific stuff
-use Hub\Source\Url\UrlSourceObjectFactory;
+use Org\Shipsimu\Hub\Source\Url\UrlSourceObjectFactory;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
 
 /**
  * A general URL source Task
index c7384fbcfa3dff9e554820f4107e9cff9aae840d..b6643d89a57ff477f4588d3602384bdccad0c2fe 100644 (file)
@@ -3,10 +3,10 @@
 namespace Hub\Task\Crawler\;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A ??? task for crawlers
index b49ecc74889c0bbc65864421769be2831cb0c493..d7296a41e74f0c462cac2b17b735f46b0dc8826d 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Task\Communicator\Node;
+namespace Org\Shipsimu\Hub\Crawler\Task\Communicator\Node;
 
 // Import framework stuff
-use CoreFramework\Registry\Registry;
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A NodeCommunicator task for crawlers
index 5d1d2ea2e09266b7d727bbd00c06ea98e5ab683b..2505a1cb78ac2e4588f40caf6781422b8c78ea09 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Parser\Document;
+namespace Org\Shipsimu\Hub\Crawler\Parser\Document;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A DocumentParser task for crawlers
index 1c0e1f86a4a035cf291f01ffc94613161cef7ce0..b308db4dbf6bb56524b1f8cc331eb1eaa2952753 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Sniffer\Mime;
+namespace Org\Shipsimu\Hub\Crawler\Sniffer\Mime;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A MimeSniffer task for crawlers
index bc22789d869f88cd8d2349dede29c520cdf57a69..8dfb590b32d94abc5a6be39e60c0fa47d6830ac3 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Ping;
+namespace Org\Shipsimu\Hub\Crawler\Ping;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A Ping task for crawlers
index 7bbd554b0fe98dfe693690cfdc4e521bf2e00309..00c2c77ae8a2a24859d675e254dc555f044b3697 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Publisher\Job\Remote;
+namespace Org\Shipsimu\Hub\Crawler\Publisher\Job\Remote;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A RemoteJobPublisher task for crawlers
index 6c7763f6d77870fc3f880227b9dc61d8ffcddee1..987f66058f5c1dc990e7028843c2dc664568a64e 100644 (file)
@@ -3,10 +3,10 @@
 namespace Hub\Task\Crawler\Scanner\;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A ??? scanner task for crawlers
index 8e6b59aad032e5134b0530c7f4ff8acbdef84644..0249172c69f7e4d2624fa930b876d7c15e64f375 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Task\Scanner\UploadedList;
+namespace Org\Shipsimu\Hub\Crawler\Task\Scanner\UploadedList;
 
 // Import application-specific stuff
-use Hub\Factory\Scanner\ScannerObjectFactory;
+use Org\Shipsimu\Hub\Factory\Scanner\ScannerObjectFactory;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A UploadedList scanner task for crawlers
index 4e60fd5aef3ebe9894520b9acd0c70f5dd8771d2..a9c009c3083658b12f4f664e0afe9dfbca391825 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\SnippetExtractor;
+namespace Org\Shipsimu\Hub\Crawler\SnippetExtractor;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A SnippetExtractor task for crawlers
index 7d91182f979d69f9392891a76cd69e49b6318207..031da689eafef95644eade55f1b29507219a04ec 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Analyzer\DocumentStructure;
+namespace Org\Shipsimu\Hub\Crawler\Analyzer\DocumentStructure;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A StructureAnalyzer task for crawlers
index 23c981f4f7d66c52cc73d6cbf91ce213e02480a8..37f62b9104bdf3c4c064940ec3e21f750084e752 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Local;
+namespace Org\Shipsimu\Hub\Crawler\Local;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A LocalUrlCrawler task for crawlers
index 9712af21651c5a952986ba74dd40044451fe6008..8031c445820c63efeece31c990881c0f869b621a 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Remote;
+namespace Org\Shipsimu\Hub\Crawler\Remote;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A RemoteUrlCrawler task for crawlers
index 4c478cc3bf3048095de96be3bcda899b01ad9025..85e7e98c2635a4755b100baf6e781906820125d4 100644 (file)
@@ -3,9 +3,9 @@
 namespace Hub\Task\Crawler\Source\Url\;
 
 // Import framework stuff
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * An URL source task for ??? for crawlers
index 864cc18a3004c49825039747be379893ec4c92f3..02f74f74741037e3dfc5fd19d0fa84ac01b125d9 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Source\FoundRss;
+namespace Org\Shipsimu\Hub\Crawler\Source\FoundRss;
 
 // Import framework stuff
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * An URL source task for FoundRss for crawlers
index 0e3f9c4e670c291dfcc0094d6c112b29b63603eb..48967056735de7548966b75d8b0f2c742249c247 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Source\LocalStart;
+namespace Org\Shipsimu\Hub\Crawler\Source\LocalStart;
 
 // Import framework stuff
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * An URL source task for LocalStart for crawlers
index 8add513895a80db8435f0d58f89c37c45ae92859..79c6bb2ed7757440dbdb5b9f2f4387b1c7059eac 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Source\RssStart;
+namespace Org\Shipsimu\Hub\Crawler\Source\RssStart;
 
 // Import framework stuff
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * An URL source task for RssStart for crawlers
index 85fea288db20f739b3cf0464a1a972577411a5cb..20dd88e705c11695f01c721662f52c97ce86ec1d 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Crawler\Source\UploadedList;
+namespace Org\Shipsimu\Hub\Crawler\Source\UploadedList;
 
 // Import framework stuff
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * An URL source task for UploadedList for crawlers
index 882933389aeabd417fa1429f77f8596924df0fd4..dbb2d7762e217332753204795acc43cbecd1e29c 100644 (file)
@@ -3,10 +3,10 @@
 namespace Hub\Task\Cruncher\;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A ??? task for crunchers
index b0ec5ee2ca581365173f910e7f49b208ceda99bf..8132033d8e4b303b9f0e820926c82d00efe86545 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Cruncher\Producer\Key;
+namespace Org\Shipsimu\Hub\Cruncher\Producer\Key;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A KeyProducer task for crunchers
index 2b08ed3e042738c771cad8996b509936aa76fa79..b6ac893b620011ab0b657a93c2d1e7587f0c0ca2 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Cruncher\Task\Producer\Unit;
+namespace Org\Shipsimu\Hub\Cruncher\Task\Producer\Unit;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A TestUnitProducer task for crunchers
index 15a306cf06a51396d973a83864cfc60bd8d338c4..eb6c4630834a885f94a7a7c4c9c703e159482438 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Cruncher\Task\Fetcher\WorkUnit;
+namespace Org\Shipsimu\Hub\Cruncher\Task\Fetcher\WorkUnit;
 
 // Import framework stuff
-use CoreFramework\Registry\Registry;
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A WorkUnitFetcher task for crunchers which asks the cruncher to fetch work
index b6c6d9c33e6bcd8352311528877bf9a893846a68..24bd321428f0b535c03760568a4ce2b82b8a22df 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Miner\Task\Fetcher\Block;
+namespace Org\Shipsimu\Hub\Miner\Task\Fetcher\Block;
 
 // Import framework stuff
-use CoreFramework\Registry\Registry;
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A BlockFetcher task for miners which asks the network for new blocks and
index bc6ed58de97d6597d9eead0931c22e0c77f13c27..78ae40a8b9ec4c2cce1e09e3a6883f0ccb7ce346 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Miner\Task\Producer\GenesisBlock;
+namespace Org\Shipsimu\Hub\Miner\Task\Producer\GenesisBlock;
 
 // Import framework stuff
-use CoreFramework\Registry\Registry;
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A RealGenesisBlockProducer task for miners
index c1ff8f3d7a919459ad56c9a5a70e8aaed41a04bd..ae2e0be06d1bebf169438b3b969c3db056942af0 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Miner\Task\Producer\GenesisBlock;
+namespace Org\Shipsimu\Hub\Miner\Task\Producer\GenesisBlock;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A TestGenesisBlockProducer task for miners
index 57d413d08bbf10d3ee74d8a509c612f5fbaa527a..e9bcb4697ee1695321f48cd1988072025aa2a324 100644 (file)
@@ -3,10 +3,10 @@
 namespace Hub\Task\Miner\;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A ??? task for miners
index a89138a437d6cde71e7df511ff4bf1cef58314f4..9e8a115900a8dc148ec0c01da3fcbc27701031a3 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Miner\Task\Communicator\Node;
+namespace Org\Shipsimu\Hub\Miner\Task\Communicator\Node;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A MinerCommunicator task for miners
index 99e20b28ee19f998039a5abda49094a173ec65e2..69c4125f9c328046c50babc4fa275203a1009b74 100644 (file)
@@ -3,10 +3,10 @@
 namespace Hub\Task\AptProxy\Task\Network\;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A ??? task for NetworkPackage
index f965bad16a56c64791da40d4e17b220759c88631..e8c5efd8f2e6421f8cec79d65288bd6456149bea 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Task\Network\Reader;
+namespace Org\Shipsimu\Hub\Task\Network\Reader;
 
 // Import application-specific stuff
-use Hub\Factory\Network\NetworkPackageFactory;
+use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A NetworkPackageReader task
index d177f322c42005d58c74695b119c7a23169e32fc..5e66c2d2239dbe408aa2ec6f17801d879c63e288 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Task\Network\Writer;
+namespace Org\Shipsimu\Hub\Task\Network\Writer;
 
 // Import application-specific stuff
-use Hub\Factory\Network\NetworkPackageFactory;
+use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A NetworkPackageWriter task
@@ -90,25 +90,25 @@ class NetworkPackageWriterTask extends BaseTask implements Taskable, Visitable {
                // Do we have something to deliver?
                if ($packageInstance->isEncodedDataPending()) {
                        // Trace message
-                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE-WRITER-TASK: Calling packageInstance->sendEncodedData() ...');
+                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE-WRITER-TASK: Calling packageInstance->sendEncodedData() ...');
 
                        // Sent encoded (raw) data
                        $packageInstance->sendEncodedData();
                } elseif ($packageInstance->isPackageWaitingForDelivery()) {
                        // Trace message
-                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE-WRITER-TASK: Calling packageInstance->sendWaitingPackage() ...');
+                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE-WRITER-TASK: Calling packageInstance->sendWaitingPackage() ...');
 
                        // Sent it finally out
                        $packageInstance->sendWaitingPackage();
                } elseif ($packageInstance->isPackageDeclared()) {
                        // Trace message
-                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE-WRITER-TASK: Calling packageInstance->processDeclaredPackage() ...');
+                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE-WRITER-TASK: Calling packageInstance->processDeclaredPackage() ...');
 
                        // Prepare package for delivery
                        $packageInstance->processDeclaredPackage();
                } elseif ($packageInstance->isPackageEnqueued()) {
                        // Trace message
-                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE-WRITER-TASK: Calling packageInstance->declareEnqueuedPackage() ...');
+                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NETWORK-PACKAGE-WRITER-TASK: Calling packageInstance->declareEnqueuedPackage() ...');
 
                        // Okay, then deliver (better discover its recipients) this package
                        $packageInstance->declareEnqueuedPackage();
index b83eca7ac6f15ddcb268abceae87424c90a0b14b..5a8f829fe0047cc67f916904b35b9b63438a32b1 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Node\Task\Announcement;
+namespace Org\Shipsimu\Hub\Node\Task\Announcement;
 
 // Import application-specific stuff
-use Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A Announcement node-task
index 556e032b2de9a8816ff16e64b2906dc68a99055d..17d5ea151ca050c5bd2307cf380a98ab27cae58f 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Node\Task\Assembler;
+namespace Org\Shipsimu\Hub\Node\Task\Assembler;
 
 // Import application-specific stuff
-use Hub\Factory\Handler\Chunk\ChunkHandlerFactory;
+use Org\Shipsimu\Hub\Factory\Handler\Chunk\ChunkHandlerFactory;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A ChunkAssembler node-task
index ca0ddc3811b6555ba51936486949ba2012fcef28..88c92346a31b78128da56ef45acfc0e7f46e92da 100644 (file)
@@ -3,10 +3,10 @@
 namespace Hub\Node\Task\;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A ??? node-task
index a570de132b81fc6e0ddc306b1f98af9ba2267a07..008ec00521febcbd54724a1966be692349e73bfd 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Node\Task\Decoder;
+namespace Org\Shipsimu\Hub\Node\Task\Decoder;
 
 // Import application-specific stuff
-use Hub\Factory\Decoder\DecoderFactory;
+use Org\Shipsimu\Hub\Factory\Decoder\DecoderFactory;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A PackageDecoder node-task
index 6f642a28eed50672058a79fdded94183e9e29d82..f34b61dd232b76202d4e05e16aa2b8ec9c69bbd9 100644 (file)
@@ -3,10 +3,10 @@
 namespace Hub\Task\Node\Dht\;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A ??? node DHT task
index c00f05218fb45ca4c5bfdac6c65efd868ceef3ca..3e2d2c864772883e0ccfe336018ad5bd7acf60b3 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Node\Task\Dht\Bootstrap;
+namespace Org\Shipsimu\Hub\Node\Task\Dht\Bootstrap;
 
 // Import application-specific stuff
-use Hub\Factory\Dht\DhtObjectFactory;
+use Org\Shipsimu\Hub\Factory\Dht\DhtObjectFactory;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A DhtBootstrap node-task
index ffac959576e21ba451af766b50c24c255d73b76c..c6a873aa021d9e45fbf01f11b158d325e0883006 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Node\Task\Dht\Initialization;
+namespace Org\Shipsimu\Hub\Node\Task\Dht\Initialization;
 
 // Import application-specific stuff
-use Hub\Factory\Dht\DhtObjectFactory;
+use Org\Shipsimu\Hub\Factory\Dht\DhtObjectFactory;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A DhtInitialization node-task
index 92aeffe5875679022dd762de7d6b1ea3e337e03b..b9acfbd6ae3bba90ec8fbddb054bd2b169c8e3ce 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Node\Task\Dht\Bootstrap\Late;
+namespace Org\Shipsimu\Hub\Node\Task\Dht\Bootstrap\Late;
 
 // Import application-specific stuff
-use Hub\Factory\Dht\DhtObjectFactory;
+use Org\Shipsimu\Hub\Factory\Dht\DhtObjectFactory;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A DhtBootstrap node-task
index babedfe6fc13d9827610321a26969ff32b3e3ba1..2b72b39e904b6c10b95d65dc0362a0ec56ba9b7a 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Node\Task\Dht\Check\Publication;
+namespace Org\Shipsimu\Hub\Node\Task\Dht\Check\Publication;
 
 // Import application-specific stuff
-use Hub\Factory\Dht\DhtObjectFactory;
+use Org\Shipsimu\Hub\Factory\Dht\DhtObjectFactory;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A DhtPublicationCheck node-task
index d25f6dcbae1abac12b2c70580a6388bcd0a337a5..8cb4af2daabd1e90ea5c02effb8b9b76c3a16056 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Node\Task\Dht\Publication;
+namespace Org\Shipsimu\Hub\Node\Task\Dht\Publication;
 
 // Import application-specific stuff
-use Hub\Factory\Dht\DhtObjectFactory;
+use Org\Shipsimu\Hub\Factory\Dht\DhtObjectFactory;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A DhtPublication node-task
index 34c11cf063d9a7e23801f96570478de19d087845..81dcc2758ce98f080e65f8198acd090e905addd5 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Node\Task\Dht\Query;
+namespace Org\Shipsimu\Hub\Node\Task\Dht\Query;
 
 // Import application-specific stuff
-use Hub\Factory\Dht\DhtObjectFactory;
+use Org\Shipsimu\Hub\Factory\Dht\DhtObjectFactory;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A DhtQuery node-task
index a852ca3b98fc31e99d77872cfed405805bead897..6b7d9b128c055b26cc382736eb2c2ea70c940897 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Node\Task\Listener\Socket;
+namespace Org\Shipsimu\Hub\Node\Task\Listener\Socket;
 
 // Import application-specific stuff
-use Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A HubSocketListener task
index f2fc8c5f697df4e4adf7b08aa7007c3495f14a94..c3cc406b0484a4853babc9e089ace2d8fd1e3b83 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Node\Ping;
+namespace Org\Shipsimu\Hub\Node\Ping;
 
 // Import framework stuff
-use CoreFramework\Lists\Listable;
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Lists\Listable;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A Ping node-task
index 700654dc622d909e6e0e09a5ff082de54de14a6d..35f828a88e5e45a1c46759dd0d03ff7863d75a59 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Node\Task\SelfConnect;
+namespace Org\Shipsimu\Hub\Node\Task\SelfConnect;
 
 // Import application-specific stuff
-use Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A SelfConnect node-task
index 8aaa8f045a65bd35614748d4955b1312fe69dbcf..71f9af1cabf63d8d1ead38ef57ba16198ea07179 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Node\Task\Initialization\Tag;
+namespace Org\Shipsimu\Hub\Node\Task\Initialization\Tag;
 
 // Import application-specific stuff
-use Hub\Factory\Tag\Package\PackageTagsFactory;
+use Org\Shipsimu\Hub\Factory\Tag\Package\PackageTagsFactory;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A PackageTagsInit node-task
index dd548905788a333411121d05f7d1941265ea71bf..bb85a6cfaa3c09dd3bc744000bdc91f954f1dd6d 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Node\Check\Update;
+namespace Org\Shipsimu\Hub\Node\Check\Update;
 
 // Import framework stuff
-use CoreFramework\Task\BaseTask;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\Visitable;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Task\BaseTask;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\Visitable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A UpdateCheck node-task
index cc79427c9eff4dd553ee5a7c13f5f3b0cd97280e..64590a8bec4b9c9d5db28e7e504d4ec525d643e8 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Template\Engine\Xml\Announcement;
+namespace Org\Shipsimu\Hub\Template\Engine\Xml\Announcement;
 
 // Import application-specific stuff
-use Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
+use Org\Shipsimu\Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Template\CompileableTemplate;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
 
 /**
  * An Announcement template engine class for XML templates
index 0707bfb4e6be83717a9170cf26e6f72197c85a09..eaa041b85135a6a898e47fa4bae2416bde39fe90 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Template\Engine\Xml\Answer\Announcement;
+namespace Org\Shipsimu\Hub\Template\Engine\Xml\Answer\Announcement;
 
 // Import application-specific stuff
-use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
+use Org\Shipsimu\Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Template\CompileableTemplate;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
 
 /**
  * An AnnouncementAnswer template engine class for XML templates
index 86bf6c3df4e7fa037ea059cb0a20120d5bf94a1d..f0b2bada6dac6b2dbd03b879393dbfaf3b941856 100644 (file)
@@ -6,8 +6,8 @@ namespace Hub\Template\Engine\Xml\Network\Answer\;
 use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Template\CompileableTemplate;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
 
 /**
  * An ??? answer template engine class for XML templates
index 9a689e5c7f3d12d74a8339cfa22e6faa791520f4..857c286b213cba490274a2baccd1b6a6b6dc8cd5 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Template\Engine\Xml\Network\Answer;
+namespace Org\Shipsimu\Hub\Template\Engine\Xml\Network\Answer;
 
 // Import application-specific stuff
-use Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
+use Org\Shipsimu\Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Template\CompileableTemplate;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
 
 /**
  * An generic answer template engine class for XML templates
index e9f433e9e0a1e40351b7f3c5f7bc895474e5782c..c1c522caeee5361eda40192bd1797926afd6fa40 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Template\Engine\Xml\Answer\Dht\Bootstrap;
+namespace Org\Shipsimu\Hub\Template\Engine\Xml\Answer\Dht\Bootstrap;
 
 // Import application-specific stuff
-use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
+use Org\Shipsimu\Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Template\CompileableTemplate;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
 
 /**
  * An DhtBootstrapAnswer template engine class for XML templates
index e712e1537847ad57b04885ea8f5ac4b9fa0de685..5b27442cb8657bc49f6eb194964e3d4adce1d96b 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Template\Engine\Xml\Answer\Request\NodeList;
+namespace Org\Shipsimu\Hub\Template\Engine\Xml\Answer\Request\NodeList;
 
 // Import application-specific stuff
-use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
+use Org\Shipsimu\Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Template\CompileableTemplate;
+use Org\Mxchange\CoreFramework\Factory\Template\XmlTemplateEngineFactory;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
 
 /**
  * A RequestNodeListAnswer template engine class for XML templates
index 1dd66b307e6ca528ce02f44d3a77ec50317e497b..68a7a80fcd5e83a7a767f82521cd9e737e08276f 100644 (file)
@@ -6,8 +6,8 @@ namespace Hub\Template\Engine\Xml\;
 use Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Template\CompileableTemplate;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
 
 /**
  * An ??? template engine class for XML templates
index 43ee5efbd81ddd2a5664950c6e621709a5ef3ca6..1d6132379899dc3886081cc9215519bae3427be7 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Template\Engine\Xml;
+namespace Org\Shipsimu\Hub\Template\Engine\Xml;
 
 // Import framework stuff
-use CoreFramework\Bootstrap\FrameworkBootstrap;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
-use CoreFramework\Registry\Registry;
-use CoreFramework\Template\Engine\BaseTemplateEngine;
+use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Factory\Template\XmlTemplateEngineFactory;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Template\Engine\BaseTemplateEngine;
 
 /**
  * A generic XML template engine class
index 2854022fbb7245c79d0ed9c17eaf22b965321d7b..3593a39b9d01d5de492387e39d0a192ed0f42c14 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Template\Engine\Xml\SelfConnect;
+namespace Org\Shipsimu\Hub\Template\Engine\Xml\SelfConnect;
 
 // Import application-specific stuff
-use Hub\Tag\Tagable;
-use Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
+use Org\Shipsimu\Hub\Tag\Tagable;
+use Org\Shipsimu\Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Template\CompileableTemplate;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
 
 /**
  * An SelfConnect template engine class for XML templates
index afff5921a0775ca3b4201c90bb39697850fa4291..5dc1d7d82e56ec6d8885b9b3f28e4478b3f21813 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Template\Engine\Xml\Dht\Bootstrap;
+namespace Org\Shipsimu\Hub\Template\Engine\Xml\Dht\Bootstrap;
 
 // Import application-specific stuff
-use Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
+use Org\Shipsimu\Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Template\CompileableTemplate;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
 
 /**
  * An Bootstrap template engine class for XML templates
index 4ddbc237ab0caec0fec708668cf54031730868cf..c41dad8606bf9e5a0a1b0c1226db073140f5cb75 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Template\Engine\Xml\Request\NodeList;
+namespace Org\Shipsimu\Hub\Template\Engine\Xml\Request\NodeList;
 
 // Import application-specific stuff
-use Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
+use Org\Shipsimu\Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Template\CompileableTemplate;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
 
 /**
  * An RequestNodeListEntry template engine class for XML templates
index c7bac2d832359b3868b4484e5652fb8a394ca6b6..dd696adbe6f2098e0f628d751e5f0bb859e7ae97 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Template\Engine\Xml\ObjectRegistry;
+namespace Org\Shipsimu\Hub\Template\Engine\Xml\ObjectRegistry;
 
 // Import application-specific stuff
-use Hub\Factory\Registry\Object\ObjectTypeRegistryFactory;
-use Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
+use Org\Shipsimu\Hub\Factory\Registry\Object\ObjectTypeRegistryFactory;
+use Org\Shipsimu\Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Registry\Registry;
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Template\CompileableTemplate;
+use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
 
 /**
  * An ObjectRegistry template engine class for XML templates
index 00cc9353ecdc767a640db7de291eb2dbe925c60f..c76d1bb4d033af74ddfd4c4156012b2a49f17d53 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Cruncher\Template\Engine\Xml\TestUnit;
+namespace Org\Shipsimu\Hub\Cruncher\Template\Engine\Xml\TestUnit;
 
 // Import application-specific stuff
-use Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
+use Org\Shipsimu\Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Template\CompileableTemplate;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
 
 /**
  * An TestUnit template engine class for XML templates
index d2bae5ec122c3b09a887ee025a1ac0956f4592ff..19358abdd7ea7aed70c585a08652271ab1ce4380 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Template\Engine\Xml\Dht\Publish;
+namespace Org\Shipsimu\Hub\Template\Engine\Xml\Dht\Publish;
 
 // Import application-specific stuff
-use Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
+use Org\Shipsimu\Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Template\CompileableTemplate;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
 
 /**
  * An PublishEntry template engine class for XML templates
index 1dd075fe1e77e27713f042ec8fd051f2ddad3d53..55ec83791b12b7cc834bfe3b8a3f3953feb438a5 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Template\Engine\Xml\Request\NodeList;
+namespace Org\Shipsimu\Hub\Template\Engine\Xml\Request\NodeList;
 
 // Import application-specific stuff
-use Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
+use Org\Shipsimu\Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
-use CoreFramework\Template\CompileableTemplate;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
 
 /**
  * An RequestNodeList template engine class for XML templates
index 57adbd25f2a6a01c029fa124c61c512c3af4045d..ff6bb929877afc155dab5dff046df797f85452b4 100644 (file)
@@ -1,18 +1,18 @@
 <?php
 // Own namespace
-namespace Hub\Tools;
+namespace Org\Shipsimu\Hub\Tools;
 
 // Import application-specific stuff
-use Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
-use Hub\Factory\Dht\DhtObjectFactory;
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Generic\BaseHubSystem;
-use Hub\Locator\Node\LocateableNode;
-use Hub\Node\Data\InvalidSessionIdException;
+use Org\Shipsimu\Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
+use Org\Shipsimu\Hub\Factory\Dht\DhtObjectFactory;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Generic\BaseHubSystem;
+use Org\Shipsimu\Hub\Locator\Node\LocateableNode;
+use Org\Shipsimu\Hub\Node\Data\InvalidSessionIdException;
 
 // Import framework stuff
-use CoreFramework\Configuration\FrameworkConfiguration;
-use CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
 
 /**
  * This class contains static helper functions for our hub
@@ -222,9 +222,9 @@ class HubTools extends BaseHubSystem {
         */
        public static function determineOwnExternalAddress () {
                // Is the external_address config entry set?
-               if (FrameworkConfiguration::getSelfInstance()->getConfigEntry('external_address') != '') {
+               if (FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('external_address') != '') {
                        // Use it as external address
-                       $unl = FrameworkConfiguration::getSelfInstance()->getConfigEntry('external_address');
+                       $unl = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('external_address');
                } else {
                        // Determine own external address by connecting to my (coder) server at 188.138.90.169
                        $unl = self::determineExternalUniversalNodeLocator();
@@ -244,18 +244,18 @@ class HubTools extends BaseHubSystem {
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NODE: CALLED!');
 
                // Is the internal_address config entry set?
-               if (FrameworkConfiguration::getSelfInstance()->getConfigEntry('allow_publish_internal_address') == 'N') {
+               if (FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('allow_publish_internal_address') == 'N') {
                        // Debug message
                        //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NODE: Calling self::determineOwnExternalAddress() as allow_publish_internal_address=N is set ...');
 
                        // Not allowed to publish internal address, so use external
                        $unl = self::determineOwnExternalAddress();
-               } elseif (FrameworkConfiguration::getSelfInstance()->getConfigEntry('internal_address') != '') {
+               } elseif (FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('internal_address') != '') {
                        // Debug message
                        //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NODE: Getting config entry internal_address ...');
 
                        // Use it as internal address
-                       $unl = FrameworkConfiguration::getSelfInstance()->getConfigEntry('internal_address');
+                       $unl = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('internal_address');
                } else {
                        // Debug message
                        //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NODE: Calling self::determineInternalUniversalNodeLocator() ...');
index 7002224e4713ee097aca829a67a606e1a1409802..28db8b1a60fcdf68ca170e8f219872d62200efd8 100644 (file)
@@ -7,8 +7,8 @@ use Hub\Pool\Poolable;
 use Hub\Visitor\Pool\PoolVisitor;
 
 // Import framework stuff
-use CoreFramework\Visitor\BaseVisitor;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Visitor\BaseVisitor;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A ??? visitor
index 0a4f1298d3fb1718d8b1c18541a0f16dddd7171f..c75e7bcd35c6c84a08bdd0af4be548dcaabb4045 100644 (file)
@@ -7,7 +7,7 @@ use Hub\Pool\Poolable;
 use Hub\Visitor\Pool\PoolVisitor;
 
 // Import framework stuff
-use CoreFramework\Visitor\BaseVisitor;
+use Org\Mxchange\CoreFramework\Visitor\BaseVisitor;
 
 /**
  * A ??? handler visitor
index 7ec3db43d327f8bb23e384bc5bb2c02ef0c60866..ffc9f76a792648f3cf1b855ebc4418e91fe6f94c 100644 (file)
@@ -1,17 +1,17 @@
 <?php
 // Own namespace
-namespace Hub\Visitor\Monitor\Pool;
+namespace Org\Shipsimu\Hub\Visitor\Monitor\Pool;
 
 // Import application-specific stuff
-use Hub\Listener\Listenable;
-use Hub\Network\Receive\Receivable;
-use Hub\Pool\Poolable;
-use Hub\Visitor\Listener\ListenerVisitor;
-use Hub\Visitor\Pool\PoolVisitor;
+use Org\Shipsimu\Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Pool\Poolable;
+use Org\Shipsimu\Hub\Visitor\Listener\ListenerVisitor;
+use Org\Shipsimu\Hub\Visitor\Pool\PoolVisitor;
 
 // Import framework stuff
-use CoreFramework\Generic\BaseDecorator;
-use CoreFramework\Visitor\BaseVisitor;
+use Org\Mxchange\CoreFramework\Generic\BaseDecorator;
+use Org\Mxchange\CoreFramework\Visitor\BaseVisitor;
 
 /**
  * A RawDataMonitor visitor
@@ -72,7 +72,7 @@ class RawDataPoolMonitorVisitor extends BaseVisitor implements PoolVisitor, List
         */
        public function visitPool (Poolable $poolInstance) {
                // A pool doesn't normally have any raw data waiting
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('RAWDATA-MONITOR-VISITOR: poolInstance=' . $poolInstance->__toString() . ' - CALLED!');
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('RAWDATA-MONITOR-VISITOR: poolInstance=' . $poolInstance->__toString() . ' - CALLED!');
        }
 
        /**
@@ -82,12 +82,17 @@ class RawDataPoolMonitorVisitor extends BaseVisitor implements PoolVisitor, List
         * @return      void
         */
        public function visitListener (Listenable $listenerInstance) {
+               // Trace message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('RAWDATA-MONITOR-VISITOR: listenerInstance=' . $listenerInstance->__toString() . ' - CALLED!');
+
                /*
-                * The listener itself cannot distinguish between node and client
-                * traffic. This is why its method monitorIncomingRawData() is not
-                * called.
+                * The TCP/UDP listener have a socket registry instance set. These
+                * registered sockets needs to be checked for pending incoming data.
                 */
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('RAWDATA-MONITOR-VISITOR: listenerInstance=' . $listenerInstance->__toString() . ' - CALLED!');
+               $listenerInstance->monitorIncomingRawData();
+
+               // Trace message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('RAWDATA-MONITOR-VISITOR: EXIT!');
        }
 
        /**
@@ -98,9 +103,9 @@ class RawDataPoolMonitorVisitor extends BaseVisitor implements PoolVisitor, List
         */
        public function visitDecorator (BaseDecorator $decoratorInstance) {
                // Do monitor here
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('RAWDATA-MONITOR-VISITOR: Visiting decoratorInstance=' . $decoratorInstance->__toString() . ' - CALLED!');
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('RAWDATA-MONITOR-VISITOR: Visiting decoratorInstance=' . $decoratorInstance->__toString() . ' - CALLED!');
                $decoratorInstance->monitorIncomingRawData();
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('RAWDATA-MONITOR-VISITOR: Visiting decoratorInstance=' . $decoratorInstance->__toString() . ' - EXIT!');
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('RAWDATA-MONITOR-VISITOR: EXIT!');
        }
 
 }
index 08b3b1286df4d85fef5c8b010c96c8fac79fa454..96241414e007847bb53e69f241e7a5eb06f7cbe3 100644 (file)
@@ -7,7 +7,7 @@ use Hub\Pool\Poolable;
 use Hub\Visitor\Pool\PoolVisitor;
 
 // Import framework stuff
-use CoreFramework\Visitor\BaseVisitor;
+use Org\Mxchange\CoreFramework\Visitor\BaseVisitor;
 
 /**
  * A ??? shutdown visitor
index 7fc8831c9e412eeb6be006c73ad0fde29d022d21..da5ab101934a699a6b3ee2ea34fdcc499b2dfdcf 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Visitor\Pool\Listener;
+namespace Org\Shipsimu\Hub\Visitor\Pool\Listener;
 
 // Import application-specific stuff
-use Hub\Listener\Listenable;
-use Hub\Pool\Poolable;
-use Hub\Visitor\Pool\PoolVisitor;
+use Org\Shipsimu\Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Pool\Poolable;
+use Org\Shipsimu\Hub\Visitor\Pool\PoolVisitor;
 
 // Import framework stuff
-use CoreFramework\Visitor\BaseVisitor;
+use Org\Mxchange\CoreFramework\Visitor\BaseVisitor;
 
 /**
  * A ListenerPool shutdown visitor
index 07afbe63106685a41a7d75f8d4852fa819e59b7e..04be732bba8515923ce93548db523a2b0578b770 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\Visitor\Shutdown\Socket;
+namespace Org\Shipsimu\Hub\Visitor\Shutdown\Socket;
 
 // Import application-specific stuff
-use Hub\Factory\Network\NetworkPackageFactory;
-use Hub\Helper\Connection\ConnectionHelper;
-use Hub\Network\Deliver\Deliverable;
+use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
+use Org\Shipsimu\Hub\Helper\Connection\ConnectionHelper;
+use Org\Shipsimu\Hub\Network\Deliver\Deliverable;
 
 // Import framework stuff
-use CoreFramework\Visitor\BaseVisitor;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Visitor\BaseVisitor;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A HalfShutdownSocket visitor
index 302d2aa338f29aa52299707846a9b2f40454641c..a8ee557219fb36b3da8e397055ba66d2148b776c 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 // Own namespace
-namespace Hub\Visitor\Shutdown\Socket;
+namespace Org\Shipsimu\Hub\Visitor\Shutdown\Socket;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Factory\Network\NetworkPackageFactory;
-use Hub\Helper\Connection\ConnectionHelper;
-use Hub\Network\Deliver\Deliverable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Factory\Network\NetworkPackageFactory;
+use Org\Shipsimu\Hub\Helper\Connection\ConnectionHelper;
+use Org\Shipsimu\Hub\Network\Deliver\Deliverable;
 
 // Import framework stuff
-use CoreFramework\Visitor\BaseVisitor;
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Visitor\BaseVisitor;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * A ShutdownSocket visitor
index 976ccc109f93a69ccf2c822b5dee48c7e79c0e29..1fabac90d19e2087bceb4df25109459fd72731de 100644 (file)
@@ -1,19 +1,19 @@
 <?php
 // Own namespace
-namespace Hub\Visitor\Task\Active;
+namespace Org\Shipsimu\Hub\Visitor\Task\Active;
 
 // Import application-specific stuff
-use Hub\Listener\Listenable;
-use Hub\Pool\Poolable;
-use Hub\Visitor\Listener\ListenerVisitor;
-use Hub\Visitor\Pool\PoolVisitor;
+use Org\Shipsimu\Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Pool\Poolable;
+use Org\Shipsimu\Hub\Visitor\Listener\ListenerVisitor;
+use Org\Shipsimu\Hub\Visitor\Pool\PoolVisitor;
 
 // Import framework stuff
-use CoreFramework\Generic\BaseDecorator;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\BaseVisitor;
-use CoreFramework\Visitor\Decorator\DecoratorVisitor;
-use CoreFramework\Visitor\Task\TaskVisitor;
+use Org\Mxchange\CoreFramework\Generic\BaseDecorator;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\BaseVisitor;
+use Org\Mxchange\CoreFramework\Visitor\Decorator\DecoratorVisitor;
+use Org\Mxchange\CoreFramework\Visitor\Task\TaskVisitor;
 
 /**
  * An ActiveTask visitor
index d80844a08543e5975601c96ae30bb6c82234b53f..a743933fae815ac436a325763e9e9adcac59bd5b 100644 (file)
@@ -1,19 +1,19 @@
 <?php
 // Own namespace
-namespace Hub\Visitor\Task\Shutdown;
+namespace Org\Shipsimu\Hub\Visitor\Task\Shutdown;
 
 // Import application-specific stuff
-use Hub\Listener\Listenable;
-use Hub\Pool\Poolable;
-use Hub\Visitor\Pool\PoolVisitor;
-use Hub\Visitor\Listener\ListenerVisitor;
+use Org\Shipsimu\Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Pool\Poolable;
+use Org\Shipsimu\Hub\Visitor\Pool\PoolVisitor;
+use Org\Shipsimu\Hub\Visitor\Listener\ListenerVisitor;
 
 // Import framework stuff
-use CoreFramework\Generic\BaseDecorator;
-use CoreFramework\Task\Taskable;
-use CoreFramework\Visitor\BaseVisitor;
-use CoreFramework\Visitor\Decorator\DecoratorVisitor;
-use CoreFramework\Visitor\Task\TaskVisitor;
+use Org\Mxchange\CoreFramework\Generic\BaseDecorator;
+use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Visitor\BaseVisitor;
+use Org\Mxchange\CoreFramework\Visitor\Decorator\DecoratorVisitor;
+use Org\Mxchange\CoreFramework\Visitor\Task\TaskVisitor;
 
 /**
  * An ShutdownTask visitor
index e8f81fb5c739d6e43281708d71b8b2fbdf00116f..9417e4c0687e4ce2093c5cbe27656d255033fc48 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Import framework stuff
-use CoreFramework\Configuration\FrameworkConfiguration;
+use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 
 /**
  * Local configuration entries which you can customize. Please keep the
@@ -37,7 +37,7 @@ use CoreFramework\Configuration\FrameworkConfiguration;
  */
 
 // Some hub-specific configuration like port hostname where we will listen, etc.
-$cfg = FrameworkConfiguration::getSelfInstance();
+$cfg = FrameworkBootstrap::getConfigurationInstance();
 
 // CFG: NODE-LISTEN-ADDR
 $cfg->setConfigEntry('node_listen_addr', '0.0.0.0');
index 0a9b48f61a27c3c9d96440c549ad8fdd4a9ffcf3..7ccea7d68b33dea830cfbd669b5f53ad2ba04929 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Import framework stuff
-use CoreFramework\Configuration\FrameworkConfiguration;
+use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 
 /**
  * Configuration entries for this application only
@@ -25,7 +25,7 @@ use CoreFramework\Configuration\FrameworkConfiguration;
  */
 
 // Some hub-specific configuration like port hostname where we will listen, etc.
-$cfg = FrameworkConfiguration::getSelfInstance();
+$cfg = FrameworkBootstrap::getConfigurationInstance();
 
 // CFG: HUB-BOOTSTRAP-NODES
 $cfg->setConfigEntry('hub_bootstrap_nodes', 'tcp://188.138.90.169:9060');
@@ -43,7 +43,7 @@ $cfg->setConfigEntry('node_default_mode', 'regular');
 $cfg->setConfigEntry('enable_feature_hubcoin_reward', 'Y');
 
 // CFG: FEATURE-HUBCOIN-REWARD-CLASS
-$cfg->setConfigEntry('feature_hubcoin_reward_class', 'Hub\Feature\CoinReward\HubcoinRewardFeature');
+$cfg->setConfigEntry('feature_hubcoin_reward_class', 'Org\Shipsimu\Hub\Feature\CoinReward\HubcoinRewardFeature');
 
 // CFG: TEMPLATE-ENGINE
 $cfg->setConfigEntry('tpl_engine', 'ConsoleOutput');
@@ -52,64 +52,64 @@ $cfg->setConfigEntry('tpl_engine', 'ConsoleOutput');
 $cfg->setConfigEntry('output_class', 'DebugConsoleOutput');
 
 // CFG: NODE-INFO-DB-WRAPPER-CLASS
-$cfg->setConfigEntry('node_info_db_wrapper_class', 'Hub\Database\Frontend\Node\Information\NodeInformationDatabaseWrapper');
+$cfg->setConfigEntry('node_info_db_wrapper_class', 'Org\Shipsimu\Hub\Database\Frontend\Node\Information\NodeInformationDatabaseWrapper');
 
 // CFG: NODE-DHT-DB-WRAPPER-CLASS
-$cfg->setConfigEntry('node_dht_db_wrapper_class', 'Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper');
+$cfg->setConfigEntry('node_dht_db_wrapper_class', 'Org\Shipsimu\Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper');
 
 // CFG: NODE-DHT-LIST-LIMIT
 $cfg->setConfigEntry('node_dht_list_limit', 20);
 
 // CFG: PEER-LOOKUP-DB-WRAPPER-CLASS
-$cfg->setConfigEntry('peer_state_lookup_db_wrapper_class', 'Hub\Database\Frontend\Node\PeerState\PeerStateLookupDatabaseWrapper');
+$cfg->setConfigEntry('peer_state_lookup_db_wrapper_class', 'Org\Shipsimu\Hub\Database\Frontend\Node\PeerState\PeerStateLookupDatabaseWrapper');
 
 // CFG: WEB-CONTENT-TYPE
 $cfg->setConfigEntry('web_content_type', '');
 
 // CFG: LISTENER-POOL-CLAS
-$cfg->setConfigEntry('listener_pool_class', 'Hub\Pool\Listener\DefaultListenerPool');
+$cfg->setConfigEntry('listener_pool_class', 'Org\Shipsimu\Hub\Pool\Listener\DefaultListenerPool');
 
 // CFG: TCP-LISTENER-CLASS
-$cfg->setConfigEntry('tcp_listener_class', 'Hub\Listener\Tcp\TcpListener');
+$cfg->setConfigEntry('tcp_listener_class', 'Org\Shipsimu\Hub\Listener\Tcp\TcpListener');
 
 // CFG: UDP-LISTENER-CLASS
-$cfg->setConfigEntry('udp_listener_class', 'Hub\Listener\Udp\UdpListener');
+$cfg->setConfigEntry('udp_listener_class', 'Org\Shipsimu\Hub\Listener\Udp\UdpListener');
 
 // CFG: SOCKET-FILE-LISTENER-CLASS
-$cfg->setConfigEntry('socket_file_listener_class', 'Hub\Listener\Socket\SocketFileListener');
+$cfg->setConfigEntry('socket_file_listener_class', 'Org\Shipsimu\Hub\Listener\Socket\SocketFileListener');
 
 // CFG: SOCKET-FILE-DECORATOR-LISTENER-CLASS
-$cfg->setConfigEntry('socket_file_decorator_listener_class', 'Hub\Listener\Socket\SocketFileListenerDecorator');
+$cfg->setConfigEntry('socket_file_decorator_listener_class', 'Org\Shipsimu\Hub\Listener\Socket\SocketFileListenerDecorator');
 
 // CFG: NODE-TCP-LISTENER-CLASS
-$cfg->setConfigEntry('node_tcp_listener_class', 'Hub\Listener\Hub\Tcp\HubTcpListenerDecorator');
+$cfg->setConfigEntry('node_tcp_listener_class', 'Org\Shipsimu\Hub\Listener\Hub\Tcp\HubTcpListenerDecorator');
 
 // CFG: NODE-UDP-LISTENER-CLASS
-$cfg->setConfigEntry('node_udp_listener_class', 'Hub\Listener\Hub\Udp\HubUdpListenerDecorator');
+$cfg->setConfigEntry('node_udp_listener_class', 'Org\Shipsimu\Hub\Listener\Hub\Udp\HubUdpListenerDecorator');
 
 // CFG: CLIENT-TCP-LISTENER-CLASS
-$cfg->setConfigEntry('client_tcp_listener_class', 'Hub\Listener\Client\Tcp\ClientTcpListenerDecorator');
+$cfg->setConfigEntry('client_tcp_listener_class', 'Org\Shipsimu\Hub\Listener\Client\Tcp\ClientTcpListenerDecorator');
 
 // CFG: CLIENT-UDP-LISTENER-CLASS
-$cfg->setConfigEntry('client_udp_listener_class', 'Hub\Listener\Client\Udp\ClientUdpListenerDecorator');
+$cfg->setConfigEntry('client_udp_listener_class', 'Org\Shipsimu\Hub\Listener\Client\Udp\ClientUdpListenerDecorator');
 
 // CFG: NODE-POOL-CLASS
-$cfg->setConfigEntry('node_pool_class', 'Hub\Pool\Peer\DefaultPeerPool');
+$cfg->setConfigEntry('node_pool_class', 'Org\Shipsimu\Hub\Pool\Peer\DefaultPeerPool');
 
 // CFG: APPLICATION-POOL-CLASS
-$cfg->setConfigEntry('application_pool_class', 'Hub\Pool\Peer\DefaultPeerPool');
+$cfg->setConfigEntry('application_pool_class', 'Org\Shipsimu\Hub\Pool\Peer\DefaultPeerPool');
 
 // CFG: POOL-ENTRIES-LIST-CLASS
-$cfg->setConfigEntry('pool_entries_list_class', 'Hub\Lists\Pool\PoolEntriesList');
+$cfg->setConfigEntry('pool_entries_list_class', 'Org\Shipsimu\Hub\Lists\Pool\PoolEntriesList');
 
 // CFG: FILE-POOL-ITERATOR-CLASS
-$cfg->setConfigEntry('file_pool_iterator_class', 'CoreFramework\Iterator\DefaultIterator');
+$cfg->setConfigEntry('file_pool_iterator_class', 'Org\Mxchange\CoreFramework\Iterator\DefaultIterator');
 
 // CFG: TCP-POOL-ITERATOR-CLASS
-$cfg->setConfigEntry('tcp_pool_iterator_class', 'CoreFramework\Iterator\DefaultIterator');
+$cfg->setConfigEntry('tcp_pool_iterator_class', 'Org\Mxchange\CoreFramework\Iterator\DefaultIterator');
 
 // CFG: UDP-POOL-ITERATOR-CLASS
-$cfg->setConfigEntry('udp_pool_iterator_class', 'CoreFramework\Iterator\DefaultIterator');
+$cfg->setConfigEntry('udp_pool_iterator_class', 'Org\Mxchange\CoreFramework\Iterator\DefaultIterator');
 
 // CFG: SHUTDOWN-POOL-ITERATOR-CLASS
 $cfg->setConfigEntry('shutdown_pool_iterator_class', 'ShutdownPoolIterator');
@@ -118,43 +118,46 @@ $cfg->setConfigEntry('shutdown_pool_iterator_class', 'ShutdownPoolIterator');
 $cfg->setConfigEntry('handler_pool_iterator_class', 'HandlerPoolIterator');
 
 // CFG: NETWORK-LISTEN-ITERATOR-CLASS
-$cfg->setConfigEntry('network_listen_iterator_class', 'Hub\Iterator\Network\Listener\NetworkListenIterator');
+$cfg->setConfigEntry('network_listen_iterator_class', 'Org\Shipsimu\Hub\Iterator\Network\Listener\NetworkListenIterator');
 
 // CFG: SOCKET-LISTEN-ITERATOR-CLASS
-$cfg->setConfigEntry('socket_listen_iterator_class', 'CoreFramework\Iterator\DefaultIterator');
+$cfg->setConfigEntry('socket_listen_iterator_class', 'Org\Mxchange\CoreFramework\Iterator\DefaultIterator');
 
 // CFG: TCP-RAW-DATA-HANDLER-CLASS
-$cfg->setConfigEntry('tcp_raw_data_handler_class', 'Hub\Handler\Network\RawData\Tcp\TcpRawDataHandler');
+$cfg->setConfigEntry('tcp_raw_data_handler_class', 'Org\Shipsimu\Hub\Handler\Network\RawData\Tcp\TcpRawDataHandler');
 
 // CFG: UDP-RAW-DATA-HANDLER-CLASS
-$cfg->setConfigEntry('udp_raw_data_handler_class', 'Hub\Handler\Network\RawData\Udp\UdpRawDataHandler');
+$cfg->setConfigEntry('udp_raw_data_handler_class', 'Org\Shipsimu\Hub\Handler\Network\RawData\Udp\UdpRawDataHandler');
 
 // CFG: SOCKET-RAW-DATA-HANDLER-CLASS
-$cfg->setConfigEntry('socket_raw_data_handler_class', 'Hub\Handler\Network\Socket\RawData\SocketRawDataHandler');
+$cfg->setConfigEntry('socket_raw_data_handler_class', 'Org\Shipsimu\Hub\Handler\Network\Socket\RawData\SocketRawDataHandler');
 
 // CFG: SHUTDOWN-LISTENER-POOL-VISITOR-CLASS
 $cfg->setConfigEntry('shutdown_listener_pool_visitor_class', 'ShutdownListenerPoolVisitor');
 
 // CFG: SHUTDOWN-SOCKET-VISITOR-CLASS
-$cfg->setConfigEntry('shutdown_socket_visitor_class', 'Hub\Visitor\Shutdown\Socket\ShutdownSocketVisitor');
+$cfg->setConfigEntry('shutdown_socket_visitor_class', 'Org\Shipsimu\Hub\Visitor\Shutdown\Socket\ShutdownSocketVisitor');
 
 // CFG: HALF-SHUTDOWN-SOCKET-VISITOR-CLASS
-$cfg->setConfigEntry('half_shutdown_socket_visitor_class', 'Hub\Visitor\Shutdown\Socket\HalfShutdownSocketVisitor');
+$cfg->setConfigEntry('half_shutdown_socket_visitor_class', 'Org\Shipsimu\Hub\Visitor\Shutdown\Socket\HalfShutdownSocketVisitor');
 
 // CFG: NODE-RAW-DATA-MONITOR-VISITOR-CLASS
-$cfg->setConfigEntry('node_raw_data_monitor_visitor_class', 'Hub\Visitor\Monitor\Pool\RawDataPoolMonitorVisitor');
+$cfg->setConfigEntry('node_raw_data_monitor_visitor_class', 'Org\Shipsimu\Hub\Visitor\Monitor\Pool\RawDataPoolMonitorVisitor');
 
 // CFG: ACTIVE-TASK-VISITOR-CLASS
-$cfg->setConfigEntry('active_task_visitor_class', 'Hub\Visitor\Task\Active\ActiveTaskVisitor');
+$cfg->setConfigEntry('active_task_visitor_class', 'Org\Shipsimu\Hub\Visitor\Task\Active\ActiveTaskVisitor');
+
+// CFG: SHUTDOWN-TASK-VISITOR-CLASS
+$cfg->setConfigEntry('shutdown_task_visitor_class', 'Org\Shipsimu\Hub\Visitor\Task\Shutdown\ShutdownTaskVisitor');
 
 // CFG: NODE-ANNOUNCEMENT-HELPER-CLASS
 $cfg->setConfigEntry('node_announcement_helper_class', 'NodeAnnouncementHelper');
 
 // CFG: NODE-SELF-CONNECT-HELPER-CLASS
-$cfg->setConfigEntry('node_self_connect_helper_class', 'Hub\Node\Helper\SelfConnect\NodeSelfConnectHelper');
+$cfg->setConfigEntry('node_self_connect_helper_class', 'Org\Shipsimu\Hub\Node\Helper\SelfConnect\NodeSelfConnectHelper');
 
 // CFG: DHT-BOOTSTRAP-HELPER-CLASS
-$cfg->setConfigEntry('dht_bootstrap_helper_class', 'Hub\Helper\Dht\Bootstrap\DhtBootstrapHelper');
+$cfg->setConfigEntry('dht_bootstrap_helper_class', 'Org\Shipsimu\Hub\Helper\Dht\Bootstrap\DhtBootstrapHelper');
 
 // CFG: DHT-PUBLISH-ENTRY-HELPER-CLASS
 $cfg->setConfigEntry('dht_publish_entry_helper_class', 'DhtPublishEntryHelper');
@@ -166,55 +169,55 @@ $cfg->setConfigEntry('default_console_command', 'main');
 $cfg->setConfigEntry('default_hub_console_command', 'main');
 
 // CFG: HUB-CONSOLE-CMD-MAIN-RESOLVER-CLASS
-$cfg->setConfigEntry('hub_console_cmd_main_resolver_class', 'Hub\Resolver\Command\HubConsoleCommandResolver');
+$cfg->setConfigEntry('hub_console_cmd_main_resolver_class', 'Org\Shipsimu\Hub\Resolver\Command\HubConsoleCommandResolver');
 
 // CFG: NETWORK-STATE-RESOLVER-CLASS
 $cfg->setConfigEntry('network_state_resolver_class', 'NetworkStateResolver');
 
 // CFG: NEWS-DOWNLOAD-FILTER
-$cfg->setConfigEntry('news_download_filter_class', 'CoreFramework\Filter\News\NewsDownloadFilter');
+$cfg->setConfigEntry('news_download_filter_class', 'Org\Mxchange\CoreFramework\Filter\News\NewsDownloadFilter');
 
 // CFG: NEWS-PROCESS-FILTER
-$cfg->setConfigEntry('news_process_filter_class', 'CoreFramework\Filter\News\NewsProcessFilter');
+$cfg->setConfigEntry('news_process_filter_class', 'Org\Mxchange\CoreFramework\Filter\News\NewsProcessFilter');
 
 // CFG: NODE-PHP-REQUIREMENTS-FILTER
-$cfg->setConfigEntry('node_php_requirements_filter_class', 'Hub\Filter\Node\Requirements\NodePhpRequirementsFilter');
+$cfg->setConfigEntry('node_php_requirements_filter_class', 'Org\Shipsimu\Hub\Filter\Node\Requirements\NodePhpRequirementsFilter');
 
 // CFG: NODE-INITIALIZER-FILTER
-$cfg->setConfigEntry('node_initializer_filter_class', 'Hub\Filter\Node\Initialization\NodeInitializationFilter');
+$cfg->setConfigEntry('node_initializer_filter_class', 'Org\Shipsimu\Hub\Filter\Node\Initialization\NodeInitializationFilter');
 
 // CFG: NODE-ACTIVATION-TASK-HANDLER-INITIALIZER-FILTER
-$cfg->setConfigEntry('node_activation_task_handler_initializer_filter_class', 'Hub\Filter\Initializer\Node\Handler\Task\NodeTaskHandlerInitializerFilter');
+$cfg->setConfigEntry('node_activation_task_handler_initializer_filter_class', 'Org\Shipsimu\Hub\Filter\Initializer\Node\Handler\Task\NodeTaskHandlerInitializerFilter');
 
 // CFG: NODE-ACTIVATION-ANNOUNCEMENT-TASK-FILTER
 $cfg->setConfigEntry('node_activation_announcement_task_filter_class', 'NodeActivationAnnouncementFilter');
 
 // CFG: NODE-WELCOME-TEASER-FILTER
-$cfg->setConfigEntry('node_welcome_teaser_filter_class', 'Hub\Filter\Node\WelcomeTeaser\NodeWelcomeTeaserFilter');
+$cfg->setConfigEntry('node_welcome_teaser_filter_class', 'Org\Shipsimu\Hub\Filter\Node\WelcomeTeaser\NodeWelcomeTeaserFilter');
 
 // CFG: NODE-BOOTSTRAP-GENERATE-NODEID-FILTER
-$cfg->setConfigEntry('node_bootstrap_generate_nodeid_filter_class', 'Hub\Filter\Bootstrap\Node\NodeId\NodeBootstrapGenerateNodeIdFilter');
+$cfg->setConfigEntry('node_bootstrap_generate_nodeid_filter_class', 'Org\Shipsimu\Hub\Filter\Bootstrap\Node\NodeId\NodeBootstrapGenerateNodeIdFilter');
 
 // CFG: NODE-BOOTSTRAP-GENERATE-SESSIONID-FILTER
-$cfg->setConfigEntry('node_bootstrap_generate_sessionid_filter_class', 'Hub\Filter\Bootstrap\Node\SessionId\NodeBootstrapGenerateSessionIdFilter');
+$cfg->setConfigEntry('node_bootstrap_generate_sessionid_filter_class', 'Org\Shipsimu\Hub\Filter\Bootstrap\Node\SessionId\NodeBootstrapGenerateSessionIdFilter');
 
 // CFG: NODE-BOOTSTRAP-GENERATE-PRIVATE-KEY-FILTER
-$cfg->setConfigEntry('node_bootstrap_generate_private_key_filter_class', 'Hub\Filter\Bootstrap\Node\PrivateKey\NodeBootstrapGeneratePrivateKeyFilter');
+$cfg->setConfigEntry('node_bootstrap_generate_private_key_filter_class', 'Org\Shipsimu\Hub\Filter\Bootstrap\Node\PrivateKey\NodeBootstrapGeneratePrivateKeyFilter');
 
 // CFG: NODE-BOOTSTRAP-EXTRA-BOOTSTRAPPING-FILTER
-$cfg->setConfigEntry('node_bootstrap_extra_bootstrapping_filter_class', 'Hub\Filter\Bootstrap\Node\Extra\NodeBootstrapExtraBootstrappingFilter');
+$cfg->setConfigEntry('node_bootstrap_extra_bootstrapping_filter_class', 'Org\Shipsimu\Hub\Filter\Bootstrap\Node\Extra\NodeBootstrapExtraBootstrappingFilter');
 
 // CFG: NODE-BOOTSTRAP-LISTENER-POOL-FILTER
-$cfg->setConfigEntry('node_bootstrap_listener_pool_filter_class', 'Hub\Filter\Bootstrap\Node\Pool\NodeBootstrapListenerPoolFilter');
+$cfg->setConfigEntry('node_bootstrap_listener_pool_filter_class', 'Org\Shipsimu\Hub\Filter\Bootstrap\Node\Pool\NodeBootstrapListenerPoolFilter');
 
 // CFG: NODE-SHUTDOWN-FLUSH-NODE-LIST-FILTER
-$cfg->setConfigEntry('node_shutdown_flush_node_list_filter_class', 'Hub\Filter\Shutdown\Node\NodeList\NodeShutdownFlushNodeListFilter');
+$cfg->setConfigEntry('node_shutdown_flush_node_list_filter_class', 'Org\Shipsimu\Hub\Filter\Shutdown\Node\NodeList\NodeShutdownFlushNodeListFilter');
 
 // CFG: NODE-SHUTDOWN-TASK-HANDLER-FILTER
-$cfg->setConfigEntry('node_shutdown_task_handler_filter_class', 'Hub\Filter\Shutdown\Node\Handler\Task\NodeShutdownTaskHandlerFilter');
+$cfg->setConfigEntry('node_shutdown_task_handler_filter_class', 'Org\Shipsimu\Hub\Filter\Shutdown\Node\Handler\Task\NodeShutdownTaskHandlerFilter');
 
 // CFG: NODE-SHUTDOWN-NODE-FILTER
-$cfg->setConfigEntry('node_shutdown_node_filter_class', 'Hub\Filter\Shutdown\Node\NodeShutdownNodeFilter');
+$cfg->setConfigEntry('node_shutdown_node_filter_class', 'Org\Shipsimu\Hub\Filter\Shutdown\Node\NodeShutdownNodeFilter');
 
 // CFG: PACKAGE-FILTER-CHAIN-CLASS
 $cfg->setConfigEntry('package_filter_chain_class', 'PackageFilterChain');
@@ -274,7 +277,7 @@ $cfg->setConfigEntry('node_answer_message_dht_bootstrap_helper_class', 'NodeDhtB
 $cfg->setConfigEntry('node_next_announcement_answer_okay_helper_class', 'NodeRequestNodeListHelper');
 
 // CFG: NEWS-READER-MAIN-CLASS
-$cfg->setConfigEntry('news_reader_main_class', 'CoreFramework\Reader\News\Console\ConsoleNewsReader');
+$cfg->setConfigEntry('news_reader_main_class', 'Org\Mxchange\CoreFramework\Reader\News\Console\ConsoleNewsReader');
 
 // CFG: NODE-ANNOUNCEMENT-TEMPLATE-CLASS
 $cfg->setConfigEntry('node_announcement_template_class', 'XmlAnnouncementTemplateEngine');
@@ -286,7 +289,7 @@ $cfg->setConfigEntry('node_announcement_answer_template_class', 'XmlAnnouncement
 $cfg->setConfigEntry('node_request_node_list_template_class', 'XmlRequestNodeListTemplateEngine');
 
 // CFG: NODE-DHT-BOOTSTRAP-TEMPLATE-CLASS
-$cfg->setConfigEntry('node_dht_bootstrap_template_class', 'Hub\Template\Engine\Xml\Dht\Bootstrap\XmlDhtBootstrapTemplateEngine');
+$cfg->setConfigEntry('node_dht_bootstrap_template_class', 'Org\Shipsimu\Hub\Template\Engine\Xml\Dht\Bootstrap\XmlDhtBootstrapTemplateEngine');
 
 // CFG: NODE-DHT-BOOTSTRAP-ANSWER-TEMPLATE-CLASS
 $cfg->setConfigEntry('node_dht_bootstrap_answer_template_class', 'XmlDhtBootstrapAnswerTemplateEngine');
@@ -298,7 +301,7 @@ $cfg->setConfigEntry('node_request_node_list_answer_template_class', 'XmlRequest
 $cfg->setConfigEntry('node_request_node_list_entries_template_class', 'XmlRequestNodeListEntryTemplateEngine');
 
 // CFG: DHT-BOOTSTRAP-TEMPLATE-CLASS
-$cfg->setConfigEntry('dht_bootstrap_template_class', 'Hub\Template\Engine\Xml\Dht\Bootstrap\XmlDhtBootstrapTemplateEngine');
+$cfg->setConfigEntry('dht_bootstrap_template_class', 'Org\Shipsimu\Hub\Template\Engine\Xml\Dht\Bootstrap\XmlDhtBootstrapTemplateEngine');
 
 // CFG: DHT-PUBLISH-ENTRY-TEMPLATE-CLASS
 $cfg->setConfigEntry('dht_publish_entry_template_class', 'XmlDhtPublishEntryTemplateEngine');
@@ -316,31 +319,31 @@ $cfg->setConfigEntry('node_announcement_answer_template_extension', '.xml');
 $cfg->setConfigEntry('node_announcement_template_type', 'xml/announcement');
 
 // CFG: NODE-ANNOUNCEMENT-STACKER-CLASS
-$cfg->setConfigEntry('node_announcement_stacker_class', 'CoreFramework\Stacker\FiLoStacker');
+$cfg->setConfigEntry('node_announcement_stacker_class', 'Org\Mxchange\CoreFramework\Stacker\FiLoStacker');
 
 // CFG: NODE-ANNOUNCEMENT-ANSWER-STACKER-CLASS
-$cfg->setConfigEntry('node_announcement_answer_stacker_class', 'CoreFramework\Stacker\FiLoStacker');
+$cfg->setConfigEntry('node_announcement_answer_stacker_class', 'Org\Mxchange\CoreFramework\Stacker\FiLoStacker');
 
 // CFG: NODE-DHT-BOOTSTRAP-STACKER-CLASS
-$cfg->setConfigEntry('node_dht_bootstrap_stacker_class', 'CoreFramework\Stacker\FiLoStacker');
+$cfg->setConfigEntry('node_dht_bootstrap_stacker_class', 'Org\Mxchange\CoreFramework\Stacker\FiLoStacker');
 
 // CFG: NODE-DHT-BOOTSTRAP-ANSWER-STACKER-CLASS
-$cfg->setConfigEntry('node_dht_bootstrap_answer_stacker_class', 'CoreFramework\Stacker\FiLoStacker');
+$cfg->setConfigEntry('node_dht_bootstrap_answer_stacker_class', 'Org\Mxchange\CoreFramework\Stacker\FiLoStacker');
 
 // CFG: NODE-REQUEST-NODE-LIST-ANSWER-STACKER-CLASS
-$cfg->setConfigEntry('node_request_node_list_answer_stacker_class', 'CoreFramework\Stacker\FiLoStacker');
+$cfg->setConfigEntry('node_request_node_list_answer_stacker_class', 'Org\Mxchange\CoreFramework\Stacker\FiLoStacker');
 
 // CFG: NODE-REQUEST-NODE-LIST-ENTRY-STACKER-CLASS
-$cfg->setConfigEntry('node_request_node_list_entry_stacker_class', 'CoreFramework\Stacker\FiLoStacker');
+$cfg->setConfigEntry('node_request_node_list_entry_stacker_class', 'Org\Mxchange\CoreFramework\Stacker\FiLoStacker');
 
 // CFG: DHT-STACKER-CLASS
-$cfg->setConfigEntry('dht_stacker_class', 'CoreFramework\Stacker\FiLoStacker');
+$cfg->setConfigEntry('dht_stacker_class', 'Org\Mxchange\CoreFramework\Stacker\FiLoStacker');
 
 // CFG: RAW-DATA-STACKER-CLASS
-$cfg->setConfigEntry('raw_data_stacker_class', 'CoreFramework\Stacker\FiLoStacker');
+$cfg->setConfigEntry('raw_data_stacker_class', 'Org\Mxchange\CoreFramework\Stacker\FiLoStacker');
 
 // CFG: MULTIPLE-MESSAGE-STACKER-CLASS
-$cfg->setConfigEntry('multiple_message_stacker_class', 'CoreFramework\Stacker\FiFoStacker');
+$cfg->setConfigEntry('multiple_message_stacker_class', 'Org\Mxchange\CoreFramework\Stacker\FiFoStacker');
 
 // CFG: NODE-ANNOUNCEMENT-ANSWER-TEMPLATE-TYPE
 $cfg->setConfigEntry('node_announcement_answer_template_type', 'xml/answer/announcement');
@@ -352,7 +355,7 @@ $cfg->setConfigEntry('node_dht_bootstrap_answer_template_type', 'xml/answer/dht_
 $cfg->setConfigEntry('node_request_node_list_answer_template_type', 'xml/answer/requests');
 
 // CFG: NODE-SELF-CONNECT-TEMPLATE-CLASS
-$cfg->setConfigEntry('node_self_connect_template_class', 'Hub\Template\Engine\Xml\SelfConnect\XmlSelfConnectTemplateEngine');
+$cfg->setConfigEntry('node_self_connect_template_class', 'Org\Shipsimu\Hub\Template\Engine\Xml\SelfConnect\XmlSelfConnectTemplateEngine');
 
 // CFG: NODE-SELF-CONNECT-TEMPLATE-TYPE
 $cfg->setConfigEntry('node_self_connect_template_type', 'xml/self_connect');
@@ -361,13 +364,13 @@ $cfg->setConfigEntry('node_self_connect_template_type', 'xml/self_connect');
 $cfg->setConfigEntry('node_request_node_list_template_type', 'xml/requests');
 
 // CFG: NODE-SELF-CONNECT-STACKER-CLASS
-$cfg->setConfigEntry('node_self_connect_stacker_class', 'CoreFramework\Stacker\FiLoStacker');
+$cfg->setConfigEntry('node_self_connect_stacker_class', 'Org\Mxchange\CoreFramework\Stacker\FiLoStacker');
 
 // CFG: NODE-REQUEST-NODE_LIST-STACKER-CLASS
-$cfg->setConfigEntry('node_request_node_list_stacker_class', 'CoreFramework\Stacker\FiLoStacker');
+$cfg->setConfigEntry('node_request_node_list_stacker_class', 'Org\Mxchange\CoreFramework\Stacker\FiLoStacker');
 
 // CFG: NODE-OBJECT-REGISTRY-TEMPLATE-CLASS
-$cfg->setConfigEntry('node_object_registry_template_class', 'Hub\Template\Engine\Xml\ObjectRegistry\XmlObjectRegistryTemplateEngine');
+$cfg->setConfigEntry('node_object_registry_template_class', 'Org\Shipsimu\Hub\Template\Engine\Xml\ObjectRegistry\XmlObjectRegistryTemplateEngine');
 
 // CFG: NODE-OBJECT-REGISTRY-TEMPLATE-EXTENSION
 $cfg->setConfigEntry('node_object_registry_template_extension', '.xml');
@@ -376,10 +379,10 @@ $cfg->setConfigEntry('node_object_registry_template_extension', '.xml');
 $cfg->setConfigEntry('node_object_registry_template_type', 'xml/object_registry');
 
 // CFG: NODE-OBJECT-REGISTRY-STACKER-CLASS
-$cfg->setConfigEntry('node_object_registry_stacker_class', 'CoreFramework\Stacker\FiLoStacker');
+$cfg->setConfigEntry('node_object_registry_stacker_class', 'Org\Mxchange\CoreFramework\Stacker\FiLoStacker');
 
 // CFG: NODE-OBJECT-TYPE-REGISTRY-CLASS
-$cfg->setConfigEntry('node_object_type_registry_class', 'Hub\Registry\Object\ObjectTypeRegistry');
+$cfg->setConfigEntry('node_object_type_registry_class', 'Org\Shipsimu\Hub\Registry\Object\ObjectTypeRegistry');
 
 // CFG: DHT-BOOTSTRAP-TEMPLATE-TYPE
 $cfg->setConfigEntry('node_dht_bootstrap_template_type', 'xml/dht_bootstrap');
@@ -391,25 +394,25 @@ $cfg->setConfigEntry('node_dht_publish_template_type', 'xml/dht_publish');
 $cfg->setConfigEntry('raw_template_extension', '.xml');
 
 // CFG: PACKAGE-STACKER-CLASS
-$cfg->setConfigEntry('network_package_stacker_class', 'CoreFramework\Stacker\FiFoStacker');
+$cfg->setConfigEntry('network_package_stacker_class', 'Org\Mxchange\CoreFramework\Stacker\FiFoStacker');
 
 // CFG: NODE-RAW-DATA-STACKER-CLASS
-$cfg->setConfigEntry('node_raw_data_stacker_class', 'CoreFramework\Stacker\FiFoStacker');
+$cfg->setConfigEntry('node_raw_data_stacker_class', 'Org\Mxchange\CoreFramework\Stacker\FiFoStacker');
 
 // CFG: CHUNK-HANDLER-STACKER-CLASS
-$cfg->setConfigEntry('chunk_handler_stacker_class', 'CoreFramework\Stacker\FiFoStacker');
+$cfg->setConfigEntry('chunk_handler_stacker_class', 'Org\Mxchange\CoreFramework\Stacker\FiFoStacker');
 
 // CFG: DHT-BOOTSTRAP-STACKER-CLASS
-$cfg->setConfigEntry('dht_bootstrap_stacker_class', 'CoreFramework\Stacker\FiFoStacker');
+$cfg->setConfigEntry('dht_bootstrap_stacker_class', 'Org\Mxchange\CoreFramework\Stacker\FiFoStacker');
 
 // CFG: DHT-PUBLISH-STACKER-CLASS
-$cfg->setConfigEntry('dht_publish_stacker_class', 'CoreFramework\Stacker\FiFoStacker');
+$cfg->setConfigEntry('dht_publish_stacker_class', 'Org\Mxchange\CoreFramework\Stacker\FiFoStacker');
 
 // CFG: PRODUCER-OUTGOING-QUEUE
-$cfg->setConfigEntry('producer_outgoing_queue', 'CoreFramework\Stacker\FiFoStacker');
+$cfg->setConfigEntry('producer_outgoing_queue', 'Org\Mxchange\CoreFramework\Stacker\FiFoStacker');
 
 // CFG: PRODUCER-INCOMING-QUEUE
-$cfg->setConfigEntry('producer_incoming_queue', 'CoreFramework\Stacker\FiFoStacker');
+$cfg->setConfigEntry('producer_incoming_queue', 'Org\Mxchange\CoreFramework\Stacker\FiFoStacker');
 
 // CFG: STACKER-NODE-ANNOUNCEMENT-MAX-SIZE
 $cfg->setConfigEntry('stacker_node_announcement_max_size', 20);
@@ -547,52 +550,52 @@ $cfg->setConfigEntry('task_ping_interval_delay', 1000*60*60);
 $cfg->setConfigEntry('task_ping_max_runs', 0);
 
 // CFG: NODE-PACKAGE-TAGS-INIT-TASK-CLASS
-$cfg->setConfigEntry('node_package_tags_init_task_class', 'Hub\Node\Task\Initialization\Tag\NodePackageTagsInitTask');
+$cfg->setConfigEntry('node_package_tags_init_task_class', 'Org\Shipsimu\Hub\Node\Task\Initialization\Tag\NodePackageTagsInitTask');
 
 // CFG: NODE-SELFCONNECT-TASK-CLASS
-$cfg->setConfigEntry('node_selfconnect_task_class', 'Hub\Node\Task\SelfConnect\NodeSelfConnectTask');
+$cfg->setConfigEntry('node_selfconnect_task_class', 'Org\Shipsimu\Hub\Node\Task\SelfConnect\NodeSelfConnectTask');
 
 // CFG: NODE-UPDATE-CHECK-TASK-CLASS
-$cfg->setConfigEntry('node_update_check_task_class', 'Hub\Node\Check\Update\NodeUpdateCheckTask');
+$cfg->setConfigEntry('node_update_check_task_class', 'Org\Shipsimu\Hub\Node\Check\Update\NodeUpdateCheckTask');
 
 // CFG: NODE-PING-TASK-CLASS
-$cfg->setConfigEntry('node_ping_task_class', 'Hub\Node\Ping\NodePingTask');
+$cfg->setConfigEntry('node_ping_task_class', 'Org\Shipsimu\Hub\Node\Ping\NodePingTask');
 
 // CFG: NODE-ANNOUNCEMENT-TASK-CLASS
 $cfg->setConfigEntry('node_announcement_task_class', 'NodeAnnouncementTask');
 
 // CFG: NODE-PACKAGE-WRITER-TASK-CLASS
-$cfg->setConfigEntry('node_package_writer_task_class', 'Hub\Task\Network\Writer\NetworkPackageWriterTask');
+$cfg->setConfigEntry('node_package_writer_task_class', 'Org\Shipsimu\Hub\Task\Network\Writer\NetworkPackageWriterTask');
 
 // CFG: NODE-PACKAGE-READER-TASK-CLASS
-$cfg->setConfigEntry('node_package_reader_task_class', 'Hub\Task\Network\Reader\NetworkPackageReaderTask');
+$cfg->setConfigEntry('node_package_reader_task_class', 'Org\Shipsimu\Hub\Task\Network\Reader\NetworkPackageReaderTask');
 
 // CFG: NODE-SOCKET-LISTENER-TASK-CLASS
-$cfg->setConfigEntry('node_socket_listener_task_class', 'Hub\Node\Task\Listener\Socket\NodeSocketListenerTask');
+$cfg->setConfigEntry('node_socket_listener_task_class', 'Org\Shipsimu\Hub\Node\Task\Listener\Socket\NodeSocketListenerTask');
 
 // CFG: NODE-CHUNK-ASSEMBLER-TASK-CLASS
-$cfg->setConfigEntry('node_chunk_assembler_task_class', 'Hub\Node\Task\Assembler\NodeChunkAssemblerTask');
+$cfg->setConfigEntry('node_chunk_assembler_task_class', 'Org\Shipsimu\Hub\Node\Task\Assembler\NodeChunkAssemblerTask');
 
 // CFG: NODE-PACKAGE-DECODER-TASK-CLASS
-$cfg->setConfigEntry('node_package_decoder_task_class', 'Hub\Node\Task\Decoder\NodePackageDecoderTask');
+$cfg->setConfigEntry('node_package_decoder_task_class', 'Org\Shipsimu\Hub\Node\Task\Decoder\NodePackageDecoderTask');
 
 // CFG: NODE-DHT-INIT-TASK-CLASS
-$cfg->setConfigEntry('node_dht_init_task_class', 'Hub\Node\Task\Dht\Initialization\NodeDhtInitializationTask');
+$cfg->setConfigEntry('node_dht_init_task_class', 'Org\Shipsimu\Hub\Node\Task\Dht\Initialization\NodeDhtInitializationTask');
 
 // CFG: NODE-DHT-BOOTSTRAP-TASK-CLASS
-$cfg->setConfigEntry('node_dht_bootstrap_task_class', 'Hub\Node\Task\Dht\Bootstrap\NodeDhtBootstrapTask');
+$cfg->setConfigEntry('node_dht_bootstrap_task_class', 'Org\Shipsimu\Hub\Node\Task\Dht\Bootstrap\NodeDhtBootstrapTask');
 
 // CFG: NODE-DHT-LATE-BOOTSTRAP-TASK-CLASS
 $cfg->setConfigEntry('node_dht_late_bootstrap_task_class', 'NodeDhtLateBootstrapTask');
 
 // CFG: NODE-DHT-QUERY-TASK-CLASS
-$cfg->setConfigEntry('node_dht_query_task_class', 'Hub\Node\Task\Dht\Query\NodeDhtQueryTask');
+$cfg->setConfigEntry('node_dht_query_task_class', 'Org\Shipsimu\Hub\Node\Task\Dht\Query\NodeDhtQueryTask');
 
 // CFG: NODE-DHT-PUBLICATION-CHECK-TASK-CLASS
-$cfg->setConfigEntry('node_dht_publication_check_task_class', 'Hub\Node\Task\Dht\Check\Publication\NodeDhtPublicationCheckTask');
+$cfg->setConfigEntry('node_dht_publication_check_task_class', 'Org\Shipsimu\Hub\Node\Task\Dht\Check\Publication\NodeDhtPublicationCheckTask');
 
 // CFG: NODE-DHT-PUBLICATION-TASK-CLASS
-$cfg->setConfigEntry('node_dht_publication_task_class', 'Hub\Node\Task\Dht\Publication\NodeDhtPublicationTask');
+$cfg->setConfigEntry('node_dht_publication_task_class', 'Org\Shipsimu\Hub\Node\Task\Dht\Publication\NodeDhtPublicationTask');
 
 // CFG: TASK-NETWORK-PACKAGE-WRITER-STARTUP-DELAY
 $cfg->setConfigEntry('task_network_package_writer_startup_delay', 2500);
@@ -694,73 +697,73 @@ $cfg->setConfigEntry('task_dht_publication_interval_delay', 5000);
 $cfg->setConfigEntry('task_dht_publication_max_runs', 0);
 
 // CFG: TASK-POOL-ITERATOR-CLASS
-$cfg->setConfigEntry('task_pool_iterator_class', 'Hub\Iterator\Pool\Task\TaskPoolIterator');
+$cfg->setConfigEntry('task_pool_iterator_class', 'Org\Shipsimu\Hub\Iterator\Pool\Task\TaskPoolIterator');
 
 // CFG: MONITOR-POOL-ITERATOR-CLASS
-$cfg->setConfigEntry('monitor_pool_iterator_class', 'Hub\Iterator\Pool\Monitor\MonitorPoolIterator');
+$cfg->setConfigEntry('monitor_pool_iterator_class', 'Org\Shipsimu\Hub\Iterator\Pool\Monitor\MonitorPoolIterator');
 
 // CFG: QUERY-ITERATOR-CLASS
-$cfg->setConfigEntry('query_iterator_class', 'CoreFramework\Iterator\DefaultIterator');
+$cfg->setConfigEntry('query_iterator_class', 'Org\Mxchange\CoreFramework\Iterator\DefaultIterator');
 
 // CFG: NODE-PING-ITERATOR-CLASS
-$cfg->setConfigEntry('node_ping_iterator_class', 'Hub\Iterator\Node\Ping\NodePingIterator');
+$cfg->setConfigEntry('node_ping_iterator_class', 'Org\Shipsimu\Hub\Iterator\Node\Ping\NodePingIterator');
 
 // CFG: WEB-TEMPLATE-CLASS @OVERRIDE
 $cfg->setConfigEntry('web_template_class', 'ConsoleTemplateEngine');
 
 // CFG: NETWORK-PACKAGE-CLASS
-$cfg->setConfigEntry('network_package_class', 'Hub\Network\Package\NetworkPackage');
+$cfg->setConfigEntry('network_package_class', 'Org\Shipsimu\Hub\Network\Package\NetworkPackage');
 
 // CFG: PACKAGE-COMPRESSOR-CLASS
-$cfg->setConfigEntry('deco_package_compressor_class', 'Hub\Network\Compressor\Package\NetworkPackageCompressorDecorator');
+$cfg->setConfigEntry('deco_package_compressor_class', 'Org\Shipsimu\Hub\Network\Compressor\Package\NetworkPackageCompressorDecorator');
 
 // CFG: RAW-PACKAGE-COMPRESSOR-CLASS
-$cfg->setConfigEntry('raw_package_compressor_class', 'CoreFramework\Compressor\Zlib\ZlibCompressor');
+$cfg->setConfigEntry('raw_package_compressor_class', 'Org\Mxchange\CoreFramework\Compressor\Zlib\ZlibCompressor');
 
 // CFG: SOCKET-REGISTRY-CLASS
-$cfg->setConfigEntry('socket_registry_class', 'Hub\Registry\Socket\SocketRegistry');
+$cfg->setConfigEntry('socket_registry_class', 'Org\Shipsimu\Hub\Registry\Socket\SocketRegistry');
 
 // CFG: SOCKET-CONTAINER-CLASS
-$cfg->setConfigEntry('socket_container_class', 'Hub\Container\Socket\SocketContainer');
+$cfg->setConfigEntry('socket_container_class', 'Org\Shipsimu\Hub\Container\Socket\SocketContainer');
 
 // CFG: IPC-SOCKET-FILE-NAME
 $cfg->setConfigEntry('ipc_socket_file_name', 'php_hub_ipc_socket');
 
 // CFG: PACKAGE-RECIPIENT-DISCOVERY-CLASS
-$cfg->setConfigEntry('package_recipient_discovery_class', 'Hub\Discovery\Network\Recipient\PackageRecipientDiscovery');
+$cfg->setConfigEntry('package_recipient_discovery_class', 'Org\Shipsimu\Hub\Discovery\Network\Recipient\PackageRecipientDiscovery');
 
 // CFG: SOCKET-DISCOVERY-CLASS
-$cfg->setConfigEntry('socket_discovery_class', 'Hub\Network\Discovery\Socket\PackageSocketDiscovery');
+$cfg->setConfigEntry('socket_discovery_class', 'Org\Shipsimu\Hub\Network\Discovery\Socket\PackageSocketDiscovery');
 
 // CFG: DHT-RECIPIENT-DISCOVERY-CLASS
-$cfg->setConfigEntry('dht_recipient_discovery_class', 'Hub\Discovery\Recipient\Dht\DhtRecipientDiscovery');
+$cfg->setConfigEntry('dht_recipient_discovery_class', 'Org\Shipsimu\Hub\Discovery\Recipient\Dht\DhtRecipientDiscovery');
 
 // CFG: UNL-DISCOVERY-CLASS
-$cfg->setConfigEntry('unl_discovery_class', 'Hub\Discovery\Locator\UniversalNodeLocatorDiscovery');
+$cfg->setConfigEntry('unl_discovery_class', 'Org\Shipsimu\Hub\Discovery\Locator\UniversalNodeLocatorDiscovery');
 
 // CFG: TCP-PROTOCOL-HANDLER-CLASS
-$cfg->setConfigEntry('tcp_protocol_handler_class', 'Hub\Handler\Protocol\Network\IpV4\Tcp\TcpProtocolHandler');
+$cfg->setConfigEntry('tcp_protocol_handler_class', 'Org\Shipsimu\Hub\Handler\Protocol\Network\IpV4\Tcp\TcpProtocolHandler');
 
 // CFG: UNIVERSAL-NODE-LOCATOR-CLASS
-$cfg->setConfigEntry('universal_node_locator_class', 'Hub\Locator\Node\UniversalNodeLocator');
+$cfg->setConfigEntry('universal_node_locator_class', 'Org\Shipsimu\Hub\Locator\Node\UniversalNodeLocator');
 
 // CFG: RECIPIENT-LIST-CLASS
-$cfg->setConfigEntry('recipient_list_class', 'Hub\Lists\Recipient\RecipientList');
+$cfg->setConfigEntry('recipient_list_class', 'Org\Shipsimu\Hub\Lists\Recipient\RecipientList');
 
 // CFG: PACKAGE-TAGS-CLASS
-$cfg->setConfigEntry('package_tags_class', 'Hub\Tag\Package\PackageTags');
+$cfg->setConfigEntry('package_tags_class', 'Org\Shipsimu\Hub\Tag\Package\PackageTags');
 
 // CFG: TCP-CONNECTION-HELPER-CLASS
-$cfg->setConfigEntry('tcp_connection_helper_class', 'Hub\Helper\Connection\Network\IpV4\Tcp\TcpConnectionHelper');
+$cfg->setConfigEntry('tcp_connection_helper_class', 'Org\Shipsimu\Hub\Helper\Connection\Network\IpV4\Tcp\TcpConnectionHelper');
 
 // CFG: UDP-CONNECTION-HELPER-CLASS
-$cfg->setConfigEntry('udp_connection_helper_class', 'Hub\Helper\Connection\Network\IpV4\Udp\UdpConnectionHelper');
+$cfg->setConfigEntry('udp_connection_helper_class', 'Org\Shipsimu\Hub\Helper\Connection\Network\IpV4\Udp\UdpConnectionHelper');
 
 // CFG: HUB-COMMUNICATION-PROTOCOL-TYPE
 $cfg->setConfigEntry('hub_communication_protocol_type', 'tcp');
 
 // CFG: TCP-PROTOCOL-RESOLVER-CLASS
-$cfg->setConfigEntry('tcp_protocol_resolver_class', 'Hub\Resolver\Protocol\Tcp\TcpProtocolResolver');
+$cfg->setConfigEntry('tcp_protocol_resolver_class', 'Org\Shipsimu\Hub\Resolver\Protocol\Tcp\TcpProtocolResolver');
 
 // CFG: TCP-BUFFER-LENGTH
 $cfg->setConfigEntry('tcp_buffer_length', 1024);
@@ -809,19 +812,19 @@ $cfg->setConfigEntry('allow_publish_internal_address', 'N');
 $cfg->setConfigEntry('node_status', 'invalid');
 
 // CFG: PACKAGE-FRAGMENTER-CLASS
-$cfg->setConfigEntry('package_fragmenter_class', 'Hub\Network\Package\Fragment\PackageFragmenter');
+$cfg->setConfigEntry('package_fragmenter_class', 'Org\Shipsimu\Hub\Network\Package\Fragment\PackageFragmenter');
 
 // CFG: PACKAGE-ASSEMBLER-CLASS
-$cfg->setConfigEntry('package_assembler_class', 'Hub\Network\Package\Assembler\PackageAssembler');
+$cfg->setConfigEntry('package_assembler_class', 'Org\Shipsimu\Hub\Network\Package\Assembler\PackageAssembler');
 
 // CFG: PACKAGE-CHUNK-SIZE
 $cfg->setConfigEntry('package_chunk_size', 256*8);
 
 // CFG: NODE-RAW-DATA-OUTPUT-STREAM-CLASS
-$cfg->setConfigEntry('node_raw_data_output_stream_class', 'Hub\Stream\Network\Output\RawData\RawDataOutputStream');
+$cfg->setConfigEntry('node_raw_data_output_stream_class', 'Org\Shipsimu\Hub\Stream\Network\Output\RawData\RawDataOutputStream');
 
 // CFG: NODE-RAW-DATA-INPUT-STREAM-CLASS
-$cfg->setConfigEntry('node_raw_data_input_stream_class', 'Hub\Stream\Network\Input\RawData\RawDataInputStream');
+$cfg->setConfigEntry('node_raw_data_input_stream_class', 'Org\Shipsimu\Hub\Stream\Network\Input\RawData\RawDataInputStream');
 
 // CFG: SOCKET-TIMEOUT-SECONDS
 $cfg->setConfigEntry('socket_timeout_seconds', 3);
@@ -833,23 +836,23 @@ $cfg->setConfigEntry('socket_timeout_microseconds', 0);
 $cfg->setConfigEntry('socket_select_timeout_usec', 50);
 
 // CFG: CHUNK-HANDLER-CLASS
-$cfg->setConfigEntry('chunk_handler_class', 'Hub\Handler\Network\RawData\Chunks\ChunkHandler');
+$cfg->setConfigEntry('chunk_handler_class', 'Org\Shipsimu\Hub\Handler\Network\RawData\Chunks\ChunkHandler');
 
 // CFG: PACKAGE-DECODER-CLASS
-$cfg->setConfigEntry('package_decoder_class', 'Hub\Network\Decoder\Package\PackageDecoder');
+$cfg->setConfigEntry('package_decoder_class', 'Org\Shipsimu\Hub\Network\Decoder\Package\PackageDecoder');
 
 // CFG: PACKAGE-RECIPIENT-MAX-COUNT
 // @TODO This is very static, rewrite it to more flexible
 $cfg->setConfigEntry('package_recipient_max_count', 3);
 
 // CFG: NODE-DHT-CLASS
-$cfg->setConfigEntry('node_dht_class', 'Hub\Dht\Node\NodeDhtFacade');
+$cfg->setConfigEntry('node_dht_class', 'Org\Shipsimu\Hub\Dht\Node\NodeDhtFacade');
 
 // CFG: MAX-DHT-RECIPIENTS
 $cfg->setConfigEntry('max_dht_recipients', 10);
 
 // CFG: CONNECTION-INFO-CLASS
-$cfg->setConfigEntry('connection_info_class', 'Hub\Information\Connection\ConnectionInfo');
+$cfg->setConfigEntry('connection_info_class', 'Org\Shipsimu\Hub\Information\Connection\ConnectionInfo');
 
 // CFG: DEFAULT-HUB-CONSOLE-CONTROLLER
 $cfg->setConfigEntry('default_hub_console_controller', 'main');
@@ -859,73 +862,73 @@ $cfg->setConfigEntry('default_hub_console_controller', 'main');
 ///////////////////////////////////////////////////////////////////////////////
 
 // CFG: NODE-INIT-STATE-CLASS
-$cfg->setConfigEntry('node_init_state_class', 'Hub\State\Node\NodeInitState');
+$cfg->setConfigEntry('node_init_state_class', 'Org\Shipsimu\Hub\State\Node\NodeInitState');
 
 // CFG: NODE-VIRGIN-STATE-CLASS
-$cfg->setConfigEntry('node_virgin_state_class', 'Hub\State\Node\NodeVirginState');
+$cfg->setConfigEntry('node_virgin_state_class', 'Org\Shipsimu\Hub\State\Node\NodeVirginState');
 
 // CFG: NODE-ACTIVE-STATE-CLASS
-$cfg->setConfigEntry('node_active_state_class', 'Hub\State\Node\NodeActiveState');
+$cfg->setConfigEntry('node_active_state_class', 'Org\Shipsimu\Hub\State\Node\NodeActiveState');
 
 // CFG: NODE-ANNOUNCING-STATE-CLASS
-$cfg->setConfigEntry('node_announcing_state_class', 'Hub\State\Node\NodeAnnouncingState');
+$cfg->setConfigEntry('node_announcing_state_class', 'Org\Shipsimu\Hub\State\Node\NodeAnnouncingState');
 
 // CFG: NODE-REACHABLE-STATE-CLASS
-$cfg->setConfigEntry('node_reachable_state_class', 'Hub\State\Node\NodeReachableState');
+$cfg->setConfigEntry('node_reachable_state_class', 'Org\Shipsimu\Hub\State\Node\NodeReachableState');
 
 // CFG: NODE-ANNOUNCEMENT-COMPLETED-STATE-CLASS
-$cfg->setConfigEntry('node_announcement_completed_state_class', 'Hub\State\Node\NodeAnnouncementCompletedState');
+$cfg->setConfigEntry('node_announcement_completed_state_class', 'Org\Shipsimu\Hub\State\Node\NodeAnnouncementCompletedState');
 
 ///////////////////////////////////////////////////////////////////////////////
 //                              Peer states
 ///////////////////////////////////////////////////////////////////////////////
 
 // CFG: PEER-INIT-STATE-CLASS
-$cfg->setConfigEntry('peer_init_state_class', 'Hub\State\Peer\InitPeerState');
+$cfg->setConfigEntry('peer_init_state_class', 'Org\Shipsimu\Hub\State\Peer\InitPeerState');
 
 // CFG: PEER-CONNECTED-STATE-CLASS
-$cfg->setConfigEntry('peer_connected_state_class', 'Hub\State\Peer\ConnectedPeerState');
+$cfg->setConfigEntry('peer_connected_state_class', 'Org\Shipsimu\Hub\State\Peer\ConnectedPeerState');
 
 // CFG: PEER-PROBLEM-STATE-CLASS
-$cfg->setConfigEntry('peer_problem_state_class', 'Hub\State\Peer\ProblemPeerState');
+$cfg->setConfigEntry('peer_problem_state_class', 'Org\Shipsimu\Hub\State\Peer\ProblemPeerState');
 
 // CFG: PEER-CONNECTION-REFUSED-STATE-CLASS
-$cfg->setConfigEntry('peer_connection_refused_state_class', 'Hub\State\Peer\ConnectionRefusedPeerState');
+$cfg->setConfigEntry('peer_connection_refused_state_class', 'Org\Shipsimu\Hub\State\Peer\ConnectionRefusedPeerState');
 
 // CFG: PEER-CONNECTION-TIMED-OUT-STATE-CLASS
-$cfg->setConfigEntry('peer_connection_timed_out_state_class', 'Hub\State\Peer\ConnectionTimedOutPeerState');
+$cfg->setConfigEntry('peer_connection_timed_out_state_class', 'Org\Shipsimu\Hub\State\Peer\ConnectionTimedOutPeerState');
 
 // CFG: PEER-TRANSPORT-ENDPOINT-STATE-CLASS
-$cfg->setConfigEntry('peer_transport_endpoint_state_class', 'Hub\State\Peer\TransportEndpointGonePeerState');
+$cfg->setConfigEntry('peer_transport_endpoint_state_class', 'Org\Shipsimu\Hub\State\Peer\TransportEndpointGonePeerState');
 
 // CFG: PEER-OPERATION-ALREADY-PROGRESS-STATE-CLASS
-$cfg->setConfigEntry('peer_operation_already_progress_state_class', 'Hub\State\Peer\OperationAlreadyProgressPeerState');
+$cfg->setConfigEntry('peer_operation_already_progress_state_class', 'Org\Shipsimu\Hub\State\Peer\OperationAlreadyProgressPeerState');
 
 // CFG: PEER-NO-ROUTE-TO-HOST-STATE-CLASS
-$cfg->setConfigEntry('peer_no_route_to_host_state_class', 'Hub\State\Peer\NoRouteToHostPeerState');
+$cfg->setConfigEntry('peer_no_route_to_host_state_class', 'Org\Shipsimu\Hub\State\Peer\NoRouteToHostPeerState');
 
 ///////////////////////////////////////////////////////////////////////////////
 //                               DHT states
 ///////////////////////////////////////////////////////////////////////////////
 
 // CFG: DHT-INIT-STATE-CLASS
-$cfg->setConfigEntry('dht_init_state_class', 'Hub\State\Dht\DhtInitState');
+$cfg->setConfigEntry('dht_init_state_class', 'Org\Shipsimu\Hub\State\Dht\DhtInitState');
 
 // CFG: DHT-VIRGIN-STATE-CLASS
-$cfg->setConfigEntry('dht_virgin_state_class', 'Hub\State\Dht\DhtVirginState');
+$cfg->setConfigEntry('dht_virgin_state_class', 'Org\Shipsimu\Hub\State\Dht\DhtVirginState');
 
 // CFG: DHT-BOOTING-STATE-CLASS
-$cfg->setConfigEntry('dht_booting_state_class', 'Hub\State\Dht\DhtBootingState');
+$cfg->setConfigEntry('dht_booting_state_class', 'Org\Shipsimu\Hub\State\Dht\DhtBootingState');
 
 // CFG: DHT-ACTIVE-STATE-CLASS
-$cfg->setConfigEntry('dht_active_state_class', 'Hub\State\Dht\DhtActiveState');
+$cfg->setConfigEntry('dht_active_state_class', 'Org\Shipsimu\Hub\State\Dht\DhtActiveState');
 
 ///////////////////////////////////////////////////////////////////////////////
 //                       Message answer-status handler
 ///////////////////////////////////////////////////////////////////////////////
 
 // CFG: ANNOUNCEMENT-ANSWER-STATUS-OKAY-HANDLER-CLASS
-$cfg->setConfigEntry('announcement_answer_status_okay_handler_class', 'Hub\Handler\Node\Announcement\Answer\NodeAnnouncementAnswerOkayHandler');
+$cfg->setConfigEntry('announcement_answer_status_okay_handler_class', 'Org\Shipsimu\Hub\Handler\Node\Announcement\Answer\NodeAnnouncementAnswerOkayHandler');
 
 // CFG: REQUEST-NODE-LIST-ANSWER-STATUS-OKAY-HANDLER-CLASS
 $cfg->setConfigEntry('request_node_list_answer_status_okay_handler_class', 'RequestNodeListAnswerOkayHandler');
@@ -935,16 +938,16 @@ $cfg->setConfigEntry('request_node_list_answer_status_okay_handler_class', 'Requ
 ///////////////////////////////////////////////////////////////////////////////
 
 // CFG: DIRECT-RECIPIENT-CLASS
-$cfg->setConfigEntry('direct_recipient_class', 'Hub\Network\Recipient\Direct\DirectRecipient');
+$cfg->setConfigEntry('direct_recipient_class', 'Org\Shipsimu\Hub\Network\Recipient\Direct\DirectRecipient');
 
 // CFG: DHT-RECIPIENT-CLASS
-$cfg->setConfigEntry('dht_recipient_class', 'Hub\Network\Recipient\Dht\DhtRecipient');
+$cfg->setConfigEntry('dht_recipient_class', 'Org\Shipsimu\Hub\Network\Recipient\Dht\DhtRecipient');
 
 // CFG: SELF-RECIPIENT-CLASS
-$cfg->setConfigEntry('self_recipient_class', 'Hub\Network\Recipient\Loopback\SelfRecipient');
+$cfg->setConfigEntry('self_recipient_class', 'Org\Shipsimu\Hub\Network\Recipient\Loopback\SelfRecipient');
 
 // CFG: UPPER-RECIPIENT-CLASS
-$cfg->setConfigEntry('upper_recipient_class', 'Hub\Network\Recipient\Upper\UpperRecipient');
+$cfg->setConfigEntry('upper_recipient_class', 'Org\Shipsimu\Hub\Network\Recipient\Upper\UpperRecipient');
 
 ///////////////////////////////////////////////////////////////////////////////
 //                         Miner configuration
@@ -954,10 +957,10 @@ $cfg->setConfigEntry('upper_recipient_class', 'Hub\Network\Recipient\Upper\Upper
 $cfg->setConfigEntry('miner_default_mode', 'coin');
 
 // CFG: MINER-BUFFER-STACKER-CLASS
-$cfg->setConfigEntry('miner_buffer_stacker_class', 'CoreFramework\Stacker\FiFoStacker');
+$cfg->setConfigEntry('miner_buffer_stacker_class', 'Org\Mxchange\CoreFramework\Stacker\FiFoStacker');
 
 // CFG: HUB-CONSOLE-CMD-CRUNCHER-RESOLVER-CLASS
-$cfg->setConfigEntry('hub_console_cmd_miner_resolver_class', 'Hub\Resolver\Command\HubConsoleCommandResolver');
+$cfg->setConfigEntry('hub_console_cmd_miner_resolver_class', 'Org\Shipsimu\Hub\Resolver\Command\HubConsoleCommandResolver');
 
 // CFG: MINER-PHP-REQUIREMENTS-FILTER
 $cfg->setConfigEntry('miner_php_requirements_filter_class', 'MinerPhpRequirementsFilter');
@@ -1060,10 +1063,10 @@ $cfg->setConfigEntry('miner_real_hash_block_class', 'HashBlock');
 $cfg->setConfigEntry('cruncher_default_mode', 'mcrypt');
 
 // CFG: CRUNCHER-BUFFER-STACKER-CLASS
-$cfg->setConfigEntry('cruncher_buffer_stacker_class', 'CoreFramework\Stacker\FiFoStacker');
+$cfg->setConfigEntry('cruncher_buffer_stacker_class', 'Org\Mxchange\CoreFramework\Stacker\FiFoStacker');
 
 // CFG: HUB-CONSOLE-CMD-CRUNCHER-RESOLVER-CLASS
-$cfg->setConfigEntry('hub_console_cmd_cruncher_resolver_class', 'Hub\Resolver\Command\HubConsoleCommandResolver');
+$cfg->setConfigEntry('hub_console_cmd_cruncher_resolver_class', 'Org\Shipsimu\Hub\Resolver\Command\HubConsoleCommandResolver');
 
 // CFG: CRUNCHER-PHP-REQUIREMENTS-FILTER
 $cfg->setConfigEntry('cruncher_php_requirements_filter_class', 'CruncherPhpRequirementsFilter');
@@ -1153,7 +1156,7 @@ $cfg->setConfigEntry('cruncher_message_template_extension', '.xml');
 $cfg->setConfigEntry('cruncher_test_unit_template_extension', '.xml');
 
 // CFG: CRUNCHER-TEST-UNIT-STACKER-CLASS
-$cfg->setConfigEntry('cruncher_test_unit_stacker_class', 'CoreFramework\Stacker\FiLoStacker');
+$cfg->setConfigEntry('cruncher_test_unit_stacker_class', 'Org\Mxchange\CoreFramework\Stacker\FiLoStacker');
 
 // CFG: CRUNCHER-TEST-UNIT-TEMPLATE-TYPE
 $cfg->setConfigEntry('cruncher_test_unit_template_type', 'xml/cruncher/producer');
@@ -1202,7 +1205,7 @@ $cfg->setConfigEntry('cruncher_per_unit_key_limit', 1000);
 ///////////////////////////////////////////////////////////////////////////////
 
 // CFG: HUB-CONSOLE-CMD-CHAT-RESOLVER-CLASS
-$cfg->setConfigEntry('hub_console_cmd_chat_resolver_class', 'Hub\Resolver\Command\HubConsoleCommandResolver');
+$cfg->setConfigEntry('hub_console_cmd_chat_resolver_class', 'Org\Shipsimu\Hub\Resolver\Command\HubConsoleCommandResolver');
 
 // CFG: CHAT-PHP-REQUIREMENTS-FILTER
 $cfg->setConfigEntry('chat_php_requirements_filter_class', 'ChatPhpRequirementsFilter');
@@ -1254,7 +1257,7 @@ $cfg->setConfigEntry('file_stacks_extension', 'stack');
 $cfg->setConfigEntry('index_extension', '.idx');
 
 // CFG: HUB-CONSOLE-CMD-CHAT-RESOLVER-CLASS
-$cfg->setConfigEntry('hub_console_cmd_crawler_resolver_class', 'Hub\Resolver\Command\HubConsoleCommandResolver');
+$cfg->setConfigEntry('hub_console_cmd_crawler_resolver_class', 'Org\Shipsimu\Hub\Resolver\Command\HubConsoleCommandResolver');
 
 // CFG: CRAWLER-PHP-REQUIREMENTS-FILTER
 $cfg->setConfigEntry('crawler_php_requirements_filter_class', 'CrawlerPhpRequirementsFilter');
@@ -1314,31 +1317,31 @@ $cfg->setConfigEntry('crawler_url_stacks', 'local_start:uploaded_list:rss_start:
 $cfg->setConfigEntry('crawler_node_communicator_task_class', 'CrawlerNodeCommunicatorTask');
 
 // CFG: CRAWLER-URL-LOCAL-START-STACK-CLASS
-$cfg->setConfigEntry('crawler_url_local_start_stack_class', 'CoreFramework\Stack\Filesystem\FiFoFileStack');
+$cfg->setConfigEntry('crawler_url_local_start_stack_class', 'Org\Mxchange\CoreFramework\Stack\Filesystem\FiFoFileStack');
 
 // CFG: CRAWLER-URL-UPLOADED-LIST-STACK-CLASS
-$cfg->setConfigEntry('crawler_url_uploaded_list_stack_class', 'CoreFramework\Stack\Filesystem\FiFoFileStack');
+$cfg->setConfigEntry('crawler_url_uploaded_list_stack_class', 'Org\Mxchange\CoreFramework\Stack\Filesystem\FiFoFileStack');
 
 // CFG: CRAWLER-URL-RSS-START-STACK-CLASS
-$cfg->setConfigEntry('crawler_url_rss_start_stack_class', 'CoreFramework\Stack\Filesystem\FiFoFileStack');
+$cfg->setConfigEntry('crawler_url_rss_start_stack_class', 'Org\Mxchange\CoreFramework\Stack\Filesystem\FiFoFileStack');
 
 // CFG: CRAWLER-URL-FOUND-RSS-STACK-CLASS
-$cfg->setConfigEntry('crawler_url_found_rss_stack_class', 'CoreFramework\Stack\Filesystem\FiFoFileStack');
+$cfg->setConfigEntry('crawler_url_found_rss_stack_class', 'Org\Mxchange\CoreFramework\Stack\Filesystem\FiFoFileStack');
 
 // CFG: CRAWLER-URL-LOCAL-START-FILE-STACK-INDEX-CLASS
-$cfg->setConfigEntry('crawler_url_local_start_file_stack_index_class', 'CoreFramework\Index\Stack\FileStackIndex');
+$cfg->setConfigEntry('crawler_url_local_start_file_stack_index_class', 'Org\Mxchange\CoreFramework\Index\Stack\FileStackIndex');
 
 // CFG: CRAWLER-URL-UPLOADED-LIST-FILE-STACK-INDEX-CLASS
-$cfg->setConfigEntry('crawler_url_uploaded_list_file_stack_index_class', 'CoreFramework\Index\Stack\FileStackIndex');
+$cfg->setConfigEntry('crawler_url_uploaded_list_file_stack_index_class', 'Org\Mxchange\CoreFramework\Index\Stack\FileStackIndex');
 
 // CFG: CRAWLER-URL-RSS-START-FILE-STACK-INDEX-CLASS
-$cfg->setConfigEntry('crawler_url_rss_start_file_stack_index_class', 'CoreFramework\Index\Stack\FileStackIndex');
+$cfg->setConfigEntry('crawler_url_rss_start_file_stack_index_class', 'Org\Mxchange\CoreFramework\Index\Stack\FileStackIndex');
 
 // CFG: CRAWLER-URL-FOUND-RSS-FILE-STACK-INDEX-CLASS
-$cfg->setConfigEntry('crawler_url_found_rss_file_stack_index_class', 'CoreFramework\Index\Stack\FileStackIndex');
+$cfg->setConfigEntry('crawler_url_found_rss_file_stack_index_class', 'Org\Mxchange\CoreFramework\Index\Stack\FileStackIndex');
 
 // CFG: CRAWLER-URL-UPLOADED-LIST-URL-SOURCE-STACK-CLASS
-$cfg->setConfigEntry('crawler_uploaded_list_url_source_stack_class', 'CoreFramework\Stacker\FiFoStacker');
+$cfg->setConfigEntry('crawler_uploaded_list_url_source_stack_class', 'Org\Mxchange\CoreFramework\Stacker\FiFoStacker');
 
 // CFG: STACKER-CSV-FILE-MAX-SIZE
 $cfg->setConfigEntry('stacker_csv_file_max_size', 10);
@@ -1522,7 +1525,7 @@ $cfg->setConfigEntry('crawler_url_list_column_separator', ',');
 ///////////////////////////////////////////////////////////////////////////////
 
 // CFG: HUB-CONSOLE-CMD-APT-PROXY-RESOLVER-CLASS
-$cfg->setConfigEntry('hub_console_cmd_apt_proxy_resolver_class', 'Hub\Resolver\Command\HubConsoleCommandResolver');
+$cfg->setConfigEntry('hub_console_cmd_apt_proxy_resolver_class', 'Org\Shipsimu\Hub\Resolver\Command\HubConsoleCommandResolver');
 
 // CFG: APT-PROXY-PHP-REQUIREMENTS-FILTER
 $cfg->setConfigEntry('apt_proxy_php_requirements_filter_class', 'AptProxyPhpRequirementsFilter');
@@ -1571,7 +1574,7 @@ $cfg->setConfigEntry('default_hub_html_command', 'index');
 $cfg->setConfigEntry('default_html_controller', 'index');
 
 // CFG: HTML-CMD-INDEX-RESOLVER-CLASS
-$cfg->setConfigEntry('html_cmd_index_resolver_class', 'Hub\Resolver\Command\HubHtmlCommandResolver');
+$cfg->setConfigEntry('html_cmd_index_resolver_class', 'Org\Shipsimu\Hub\Resolver\Command\HubHtmlCommandResolver');
 
 // CFG: NEWS-READER-INDEX-CLASS
 $cfg->setConfigEntry('news_reader_index_class', 'DefaultNewsReader');
@@ -1599,7 +1602,7 @@ $cfg->setConfigEntry('form_target', '_self');
 ///////////////////////////////////////////////////////////////////////////////
 
 // CFG: HUB-CONSOLE-CMD-FUSE-RESOLVER-CLASS
-$cfg->setConfigEntry('hub_console_cmd_fuse_resolver_class', 'CoreFramework\Resolver\Command\ConsoleCommandResolver');
+$cfg->setConfigEntry('hub_console_cmd_fuse_resolver_class', 'Org\Mxchange\CoreFramework\Resolver\Command\ConsoleCommandResolver');
 
 // CFG: ENABLE-FEATURE-FUSE
 $cfg->setConfigEntry('enable_feature_fuse', 'N');
index 0dcb971b480014706744006069e12928edf78431..8488577c6a18a53692db80384eaf7e0726fd9b39 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
-use CoreFramework\Object\BaseFrameworkSystem;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
 
 /**
  * An include file for setting up the exception handler of test suite
index c510f7321ad349ad5bd3c5b7c2f333901051f23f..7e6339364fd4d44477b54dd660ed3ec1ec6bd2c0 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Node\Announcement;
+namespace Org\Shipsimu\Hub\Node\Announcement;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown when an announcement from other nodes was received
index 721d9e9b203b89de5a9e8196ddf1ed09c603ad9f..07fc2e0a13666fa3584358354a94ea87c0192574 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Node\Announcement;
+namespace Org\Shipsimu\Hub\Node\Announcement;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown when an announcement from other nodes was received
index a40854056813f4750d5c690a82510acb2a369c48..83e0f74a3d83c2d3b3e83b07cfb4b5788120f9b8 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Connection;
+namespace Org\Shipsimu\Hub\Connection;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown when an invalid connection type is being detected
index 6bc1d11a01e8849cd0595ef182b9fedb6e14a24c..6dcca7e77c986dc9a6001f31617e92312b01f090 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Dht\Bootstrap;
+namespace Org\Shipsimu\Hub\Dht\Bootstrap;
 
 // Import application-specific stuff
-use Hub\Factory\Node\NodeObjectFactory;
-use Hub\Template\Engine\Xml\Dht\Bootstrap\XmlDhtBootstrapTemplateEngine;
+use Org\Shipsimu\Hub\Factory\Node\NodeObjectFactory;
+use Org\Shipsimu\Hub\Template\Engine\Xml\Dht\Bootstrap\XmlDhtBootstrapTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown when a DHT bootstrap request from other nodes was
index a0bf4955bfb80bfc53e3911c43b1ae8acb9b6c35..9359d3665d638f0bb538f4b3f2bcb3897117ec4d 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Dht;
+namespace Org\Shipsimu\Hub\Dht;
 
 // Import application-specific stuff
-use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
+use Org\Shipsimu\Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown when an DHT bootstrap answer comes but this node
index 4a119796e4fb8b4573c5f44c139f6d2827564591..86acc3441219074929021730228710bc2f9af837 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Factory\Parameter;
+namespace Org\Shipsimu\Hub\Factory\Parameter;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown if not all required parameter are given.
index d77a2f2df53232a98fc33d98abc3d5c7c0ca60d7..8460b2cd5ad3580ca91c28f7dde0fff31a608fec 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Node\Data;
+namespace Org\Shipsimu\Hub\Node\Data;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown when a hash is invalid
index 7812bfd8d0d57657a1ff881ff6e93ecea38b6842..7af56731b23fcf5a38c18a032b25b9f534c3ef70 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Node\Announcement;
+namespace Org\Shipsimu\Hub\Node\Announcement;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown when *this* (local) node has already been announced.
index 1243c54aaf3f0d79bc5655a0cbddf81d58e7c3e7..8e3a63bb722a25e6bce4e9d0ada19703afc9255c 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Node\Verification;
+namespace Org\Shipsimu\Hub\Node\Verification;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown when a provided session id in a message cannot be
index 2b54f85a2cb3a8dcdd188cc4148598470feac92d..0ae51aecbdf022426fe0d29a623604b63edaa1d2 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Node\Network\Chunk;
+namespace Org\Shipsimu\Hub\Node\Network\Chunk;
 
 // Import application-specific stuff
-use Hub\Network\Package\Fragment\PackageFragmenter;
+use Org\Shipsimu\Hub\Network\Package\Fragment\PackageFragmenter;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown when the final (last) chunks does not contain the
index fac07507871977148d57bde24157d29929c31294..0b70202ccb6a9280f36e1b187b01f5ee6ca64fba 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\RawData;
+namespace Org\Shipsimu\Hub\RawData;
 
 // Import application-specific stuff
-use Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown when the checksum (sometimes called "hash") of the
index 6a3abca8ad2ec2bcee62d10367f0f283da275f03..f7dcd6ededc1d5704f81f83c27aec744f55b45e5 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Node\Generic;
+namespace Org\Shipsimu\Hub\Node\Generic;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown when a private key's hash is invalid (e.g. empty).
index d84c0afc9ab0dc4a78a77656d01794dc80f0a4d2..8e9c39545d728dbffdec0621261506a4ff8f5d50 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Status\Package;
+namespace Org\Shipsimu\Hub\Status\Package;
 
 // Import application-specific stuff
-use Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown when an unexpected package status was detected.
index 93ce11b9bace4a82bc39ee13c391666040cface0..9ab00e22e3b7a56cf0d880fe44a5e19617dc2d57 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Network\PackageCode;
+namespace Org\Shipsimu\Hub\Handler\Network\PackageCode;
 
 // Import application-specific stuff
-use Hub\Handler\Network\RawData\BaseRawDataHandler;
+use Org\Shipsimu\Hub\Handler\Network\RawData\HandleableRawData;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown when an unexpected package status was detected.
@@ -44,7 +44,7 @@ class UnsupportedPackageCodeHandlerException extends FrameworkException {
                        $messageArray[0]->__toString(),
                        $this->getLine(),
                        $messageArray[1],
-                       $messageArray[2][BaseRawDataHandler::PACKAGE_ERROR_CODE]
+                       $messageArray[2][HandleableRawData::PACKAGE_ERROR_CODE]
                );
 
                // Call parent exception constructor
index 98f25cd431d63361cf1c9bb528f5e5037d19fd37..d5fc13d30e2cb805be7d8bbc154fda989340f3c2 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Peer;
+namespace Org\Shipsimu\Hub\Peer;
 
 // Import application-specific stuff
-use Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown when a peer is already registered
index 13723c56d04911acafad463974ce2e493b4d423f..b2ce616a80ff7d6d1430c61e721d114e03e2194b 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Node\Messaging;
+namespace Org\Shipsimu\Hub\Node\Messaging;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown when 
index f1d1626afb074433f2b3758af83ebf2b40068379..6f2a30da1762900c331ac7d44569212bfdca5af8 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Node\Messaging;
+namespace Org\Shipsimu\Hub\Node\Messaging;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown when an incoming request (e.g. node-list has been
index 0bcb39a41b470cbb947d6297169680f60122b222..6c58b3e4cb19983e34cf4ce9d227249de809aece 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Socket;
+namespace Org\Shipsimu\Hub\Socket;
 
 // Inport application-specific stuff
-use Hub\Handler\Protocol\HandleableProtocol;
+use Org\Shipsimu\Hub\Handler\Protocol\HandleableProtocol;
 
 // Import framework stuff
-use CoreFramework\Socket\AbstractSocketException;
+use Org\Mxchange\CoreFramework\Socket\AbstractSocketException;
 
 /**
  * This exception is thrown when the requested socket is not thrown
index f79d103f6eecb38fc0a6aad4e21a4a161f621658..1e1c9197dfe9310e9fb34eb411def5f02e0a5a86 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Socket;
+namespace Org\Shipsimu\Hub\Socket;
 
 // Import application-specific stuff
-use Hub\Helper\Connection\ConnectionHelper;
+use Org\Shipsimu\Hub\Helper\Connection\ConnectionHelper;
 
 // Import framework stuff
-use CoreFramework\Socket\AbstractSocketException;
+use Org\Mxchange\CoreFramework\Socket\AbstractSocketException;
 
 /**
  * This exception is thrown if the socket cannot be shut down is not error 107
index f6ff77d76f0b6caf6e440b2fb4aa7fa78ec9a490..9c6c6631cdfb4e7cea956f0e14714dc3ba524ed7 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Network\Message;
+namespace Org\Shipsimu\Hub\Network\Message;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown when multiple messages are found in in-buffer.
index 24077c6501ced7820c28a3c7a59d44120a4d58c7..aa1e0f1fb4d594c61a5116f86e09590904a53219 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Node\Tagging;
+namespace Org\Shipsimu\Hub\Node\Tagging;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown when a tag is invalid
index 998fddf001d08b5132a651673a1849cd51bfdeb3..291a488d6d3f21458e7c13c300dcca310be1bae1 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace CoreFramework\Task;
+namespace Org\Mxchange\CoreFramework\Task;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown when a task is invalid
index 5187bf5c52fc3c6a534d887142a478a067d62741..fe59159d2e44f67f091989c00d2a74c8c97b8dd2 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Unl;
+namespace Org\Shipsimu\Hub\Unl;
 
 // Import application-specific stuff
-use Hub\Network\Package\NetworkPackage;
+use Org\Shipsimu\Hub\Network\Package\NetworkPackage;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown when a protocol handler cannot validate given package data's recipient (UNL).
index e8e12a5666ca55c479e96380615d5ad576a08a85..36e5316d2141795733fd6bbcff1fa6ea8fe2a375 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Node\Registering;
+namespace Org\Shipsimu\Hub\Node\Registering;
 
 // Import application-specific stuff
-use Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
+use Org\Shipsimu\Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown when a node is already registered and registerNode() has been called again
index 45786eccc55b09ade4ae1255fa6bfa59b4c7e598..63f7ab5b88c150628906d45aea27f79304bf6d76 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Node\Data;
+namespace Org\Shipsimu\Hub\Node\Data;
 
 // Import application-specific stuff
-use Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
+use Org\Shipsimu\Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
 
 // Import framework stuff
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 /**
  * This exception is thrown when a node is not yet registered and updateNode() has been called
index d76f416e2a7bc5150590fe50cf8f6aad001aebe2..685295d11c59554b844ba061625fb1c9deb90b47 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\AptProxy;
+namespace Org\Shipsimu\Hub\AptProxy;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 // Import framework stuff
-use CoreFramework\Controller\Controller;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * An interface for apt-proxy classes
index 9906d31b7669e36f4f7f3a6e1ad99064cc9331fb..532132588b62fe5f4e96def0504e29b183b95000 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Miner;
+namespace Org\Shipsimu\Hub\Miner;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 /**
  * An interface for minable (blocks)
index 1dcdfdbf24c3448dac869df5d6388e143685f39a..a8b44e3556357d1807d58e5006683ce0a4254971 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Chatter;
+namespace Org\Shipsimu\Hub\Chatter;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 // Import framework stuff
-use CoreFramework\Controller\Controller;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * An interface for chatter classes
index 1e08ea121021a7cf5bd491deea7fadf4172015d9..fa93fdb2b04fae848d8ed47c98a311e8b4ad8620 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Generic;
+namespace Org\Shipsimu\Hub\Generic;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
 
 // Inport frameworks stuff
-use CoreFramework\Generic\FrameworkInterface;
+use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
 
 /**
  * This is the top-level interface for all hub-based interfaces.
index 629363955feafe11a885844c9c469af8fbccdf77..8cc84dbf13ba277db19b5bb4e7237ba100ff1f25 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Org\ShipSimu\Hub\Communicator;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Executor\Executor;
+
 /**
  * An interface for communicators
  *
@@ -23,6 +29,3 @@
  */
 interface Communicator extends Executor {
 }
-
-// [EOF]
-?>
index 0e62003ca80876ac55afb999601728d33631da14..f5bfbeb93c78433a7d2254530df28a693e5e34c3 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Consumer;
+namespace Org\Shipsimu\Hub\Consumer;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 /**
  * An interface for the producer/consumer implementation
index 4d9931415d0da216d064342d817be70a61af46c1..403ddb656944572541ee192ce5aa250baff625a4 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Container\Socket;
+namespace Org\Shipsimu\Hub\Container\Socket;
 
 // Import application-related stuff
-use Hub\Information\ShareableInfo;
+use Org\Shipsimu\Hub\Information\ShareableInfo;
 
 // Inport frameworks stuff
-use CoreFramework\Generic\FrameworkInterface;
+use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
 
 /**
  * An interface for socket containers
@@ -54,6 +54,7 @@ interface StorableSocket extends FrameworkInterface {
        const SOCKET_ARRAY_INDEX_FILE    = 'socket_file';
        const SOCKET_ARRAY_INDEX_ADDRESS = 'socket_address';
        const SOCKET_ARRAY_INDEX_PORT    = 'socket_port';
+       const SOCKET_ARRAY_INDEX_TYPE    = 'socket_type';
 
        // Socket protocols
        const SOCKET_PROTOCOL_INVALID = 'invalid';
@@ -315,4 +316,12 @@ interface StorableSocket extends FrameworkInterface {
         */
        function registerInfoInstance (ShareableInfo $infoInstance);
 
+       /**
+        * Reads (binary) data from socket instance
+        *
+        * @return      $rawData        Raw data being read
+        * @throws      InvalidSocketException  If the stored socket is not valid
+        */
+       function readDataFromSocket ();
+
 }
index 605083731c82625af49671c2f142cda0e12382eb..71db69c3479ec8fef1f92708823734d2237d3d61 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Crawler;
+namespace Org\Shipsimu\Hub\Crawler;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 // Import framework stuff
-use CoreFramework\Controller\Controller;
-use CoreFramework\Response\Responseable;
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * An interface for crawler classes
index 5c64b9e43d3599e2acc10e3b3aefa72b57f201a0..a06531c6b5deaa28b8c441136ac85e84848bc68f 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Helper\Cruncher;
+namespace Org\Shipsimu\Hub\Helper\Cruncher;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 // Import framework stuff
-use CoreFramework\Controller\Controller;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * An interface for "node-helper" classes
index e2341a66001bb5a48279b69f473638b010bdf177..20de09fe7cf3c3e83b0bc4fe46c364180ca0372b 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Database\Frontend\Node\Dht;
+namespace Org\Shipsimu\Hub\Database\Frontend\Node\Dht;
 
 // Import framework stuff
-use CoreFramework\Criteria\Local\LocalSearchCriteria;
-use CoreFramework\Database\Frontend\DatabaseWrapper;
-use CoreFramework\Handler\DataSet\HandleableDataSet;
+use Org\Mxchange\CoreFramework\Criteria\Local\LocalSearchCriteria;
+use Org\Mxchange\CoreFramework\Database\Frontend\DatabaseWrapper;
+use Org\Mxchange\CoreFramework\Handler\DataSet\HandleableDataSet;
 
 /**
  * An interface for distributed hash tables for nodes
index 9c66c91bae0916a681b223086206dd5f0e154b7c..7c4621a73e285bdc8fff1eeb6066388a1e63a9f8 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Database\Frontend\Node;
+namespace Org\Shipsimu\Hub\Database\Frontend\Node;
 
 // Import application-specific stuff
-use Hub\Node\BaseHubNode;
+use Org\Shipsimu\Hub\Node\BaseHubNode;
 
 // Import framework stuff
-use CoreFramework\Criteria\Local\LocalSearchCriteria;
-use CoreFramework\Database\Frontend\DatabaseWrapper;
-use CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Criteria\Local\LocalSearchCriteria;
+use Org\Mxchange\CoreFramework\Database\Frontend\DatabaseWrapper;
+use Org\Mxchange\CoreFramework\Request\Requestable;
 
 /**
  * An interface for node-information (database) wrapper
index ba46e05e3735f95888f79870dd5b5da5e09d67ac..17a4cdcae35f0306913a3d1e253fee5bf8fb54fe 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Database\Frontend\Unit;
+namespace Org\Shipsimu\Hub\Database\Frontend\Unit;
 
 // Import framework stuff
-use CoreFramework\Database\Frontend\DatabaseWrapper;
+use Org\Mxchange\CoreFramework\Database\Frontend\DatabaseWrapper;
 
 /**
  * An interface for cruncher unit database wrappers
index 00ce39c2fa2360e54f02e5073f6712a9271c80cc..c7ba93fd66ee9780aa684f839c6c0a69f0aa229c 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Decoder;
+namespace Org\Shipsimu\Hub\Decoder;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 /**
  * An interface for decoders
index ec04796e5fdc56477180a245a2aa777c2ae58b95..8b3901606c3fa7eb91875314e4ecc9f235e68b9b 100644 (file)
@@ -3,7 +3,7 @@
 namespace Hub\Discovery\;
 
 // Import framework stuff
-use CoreFramework\Discovery\Discoverable;
+use Org\Mxchange\CoreFramework\Discovery\Discoverable;
 
 /**
  * An interface for !!! discovery
index e002399c80da034d4599ea7698bc4902627c6799..3f1524923c02a902f8454eb99ae35e82e8dc11d6 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Discovery\Protocol;
+namespace Org\Shipsimu\Hub\Discovery\Protocol;
 
 // Import framework stuff
-use CoreFramework\Discovery\Discoverable;
+use Org\Mxchange\CoreFramework\Discovery\Discoverable;
 
 /**
  * An interface for protocol discovery
index 60fc50955f57eba4bd203a1d2fa97f8faeb8c7b6..d6801e69959cd6903823f965edb342cec36f0c6f 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Discovery\Recipient;
+namespace Org\Shipsimu\Hub\Discovery\Recipient;
 
 // Import framework stuff
-use CoreFramework\Discovery\Discoverable;
+use Org\Mxchange\CoreFramework\Discovery\Discoverable;
 
 /**
  * An interface for recipient discovery
index e98d846a6db2aadc8f9a2206397380ba3995182f..3be14829ae7a206e4d40429fdfb67ae94c6be625 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Discovery\Recipient\Dht;
+namespace Org\Shipsimu\Hub\Discovery\Recipient\Dht;
 
 // Import application-specific stuff
-use Hub\Discovery\Recipient\DiscoverableRecipient;
+use Org\Shipsimu\Hub\Discovery\Recipient\DiscoverableRecipient;
 
 /**
  * An interface for DHT recipient discovery
index f3f800909b167a5e923d1a5618cc286be1d6fe51..cae37b99fb00668ae19c021de970e4ed233ec868 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Discovery\Recipient\Node;
+namespace Org\Shipsimu\Hub\Discovery\Recipient\Node;
 
 // Import application-specific stuff
-use Hub\Discovery\Recipient\DiscoverableRecipient;
+use Org\Shipsimu\Hub\Discovery\Recipient\DiscoverableRecipient;
 
 /**
  * An interface for node recipient discovery
index fda8684b8bc5bd9129a3486bbb690b13074ede93..c177c4a68f1f4ad285dd6e54d74042d1c2f29f55 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Discovery\Socket;
+namespace Org\Shipsimu\Hub\Discovery\Socket;
 
 // Import application-specific stuff
-use Hub\Discovery\Recipient\DiscoverableRecipient;
-use Hub\Handler\Protocol\HandleableProtocol;
+use Org\Shipsimu\Hub\Discovery\Recipient\DiscoverableRecipient;
+use Org\Shipsimu\Hub\Handler\Protocol\HandleableProtocol;
 
 /**
  * An interface for socket discovery
@@ -34,7 +34,7 @@ interface DiscoverableSocket extends DiscoverableRecipient {
         * matching socket resource.
         *
         * @param       $packageData            Raw package data array
-        * @param       $connectionType         Type of connection, can be 'incoming' or 'outgoing', *NEVER* 'server'!
+        * @param       $connectionType         Type of connection, can be either 'incoming' or 'outgoing', but *NEVER* 'server'!
         * @return      $socketInstance         An instance of a StorableSocket class
         * @throws      NoListGroupException    If the procol group is not found in peer list
         * @throws      NullPointerException    If listenerInstance is NULL
index 4b83d41f7b8e80ad1608021e49222cd9e8433a9c..444d66f5a536398fca2167280966130cf008a278 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Discovery\Locator;
+namespace Org\Shipsimu\Hub\Discovery\Locator;
 
 // Import application-specific stuff
-use Hub\Helper\Node\NodeHelper;
+use Org\Shipsimu\Hub\Helper\Node\NodeHelper;
 
 // Import framework stuff
-use CoreFramework\Discovery\Discoverable;
+use Org\Mxchange\CoreFramework\Discovery\Discoverable;
 
 /**
  * An interface for UNL discovery
index 0890a07012381b09c4e317798771dec4b636bf7b..ded6aa2bd800a923d5c0c8f8d806e69c40864f45 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Dht;
+namespace Org\Shipsimu\Hub\Dht;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 /**
  * An interface for DHTs
index 8629f4d13c36050829d3ca1674bee3879540fb53..71dc6da5c2dbbda0b9678d0a813496954fcb3f16 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Dht\Node;
+namespace Org\Shipsimu\Hub\Dht\Node;
 
 // Import application-specific stuff
-use Hub\Dht\Distributable;
+use Org\Shipsimu\Hub\Dht\Distributable;
 
 // Import framework stuff
-use CoreFramework\Handler\DataSet\HandleableDataSet;
+use Org\Mxchange\CoreFramework\Handler\DataSet\HandleableDataSet;
 
 /**
  * An interface for DHTs
diff --git a/application/hub/interfaces/executor/.htaccess b/application/hub/interfaces/executor/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/hub/interfaces/executor/class_Executor.php b/application/hub/interfaces/executor/class_Executor.php
deleted file mode 100644 (file)
index e2f20de..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-// Own namespace
-namespace Hub\Executor;
-
-// Import application-specific stuff
-use Hub\Generic\HubInterface;
-
-// Import framework stuff
-use CoreFramework\State\Stateable;
-
-/**
- * A Executor interface
- *
- * @author             Roland Haeder <webmaster@shipsimu.org>
- * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Hub Developer Team
- * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.shipsimu.org
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-interface Executor extends HubInterface {
-       /**
-        * Initializes the executor, whatever it does.
-        *
-        * @return      void
-        */
-       function initExecutor (Stateable $stateInstance);
-}
-
-// [EOF]
-?>
index 7f51644905ebed046d7b7632d473d363b8e71df3..b39e67f4443440ca225bb89eff26903331cd7ab5 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Filter\Network;
+namespace Org\Shipsimu\Hub\Filter\Network;
 
 // Import application-specific stuff
-use Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
 
 // Import framework stuff
-use CoreFramework\Filter\Filterable;
+use Org\Mxchange\CoreFramework\Filter\Filterable;
 
 /**
  * A class for package filters
index 74f64de7ef13376f70dadee430223b9c85794f85..519f8db70b34f823d85d701e058e92f4ff1c41c5 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\AnswerStatus\Node;
+namespace Org\Shipsimu\Hub\AnswerStatus\Node;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
-use Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
 
 // Import framework stuff
-use CoreFramework\Criteria\Storing\StoreableCriteria;
-use CoreFramework\Handler\DataSet\HandleableDataSet;
+use Org\Mxchange\CoreFramework\Criteria\Storing\StoreableCriteria;
+use Org\Mxchange\CoreFramework\Handler\DataSet\HandleableDataSet;
 
 /**
  * A HandleableAnswerStatus interface
index f8f920d37bf571c2d6039d4d81cd6137c8bfad8b..c240bfd3d381fb6c78633545cbe754da7151e0d7 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Network\RawData\Chunks;
+namespace Org\Shipsimu\Hub\Handler\Network\RawData\Chunks;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 // Import framework stuff
-use CoreFramework\Handler\Handleable;
+use Org\Mxchange\CoreFramework\Handler\Handleable;
 
 /**
  * An interface for chunk handlers
index ba965357623c0d3ccab1511df53fc8e9035e264d..e5a56e975afc9a2dfdb21f050ab90dd1b2593a09 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Message;
+namespace Org\Shipsimu\Hub\Handler\Message;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
-use Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
 
 // Import framework stuff
-use CoreFramework\Handler\DataSet\HandleableDataSet;
+use Org\Mxchange\CoreFramework\Handler\DataSet\HandleableDataSet;
 
 /**
  * An interface for message handlers
index a490a977819c6ccd30e3cfc7a5735397d776e659..78045a5de62520690b4a0a027576e51ea4d1bbe6 100644 (file)
@@ -1,12 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Network;
+namespace Org\Shipsimu\Hub\Network;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Handler\Network\RawData\HandleableRawData;
 
 // Import framework stuff
-use CoreFramework\Handler\DataSet\HandleableDataSet;
+use Org\Mxchange\CoreFramework\Handler\DataSet\HandleableDataSet;
 
 /**
  * A Networkable interface
@@ -30,16 +31,16 @@ use CoreFramework\Handler\DataSet\HandleableDataSet;
  * You should have received a copy of the GNU General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
-interface Networkable extends HandleableDataSet, HubInterface {
+interface Networkable extends HandleableDataSet, HandleableRawData {
        /**
         * Processes raw data from given socket instance. This is mostly useful for
         * package handling and is implemented in the TcpListener class.
         *
-        * @param       $socketData     A valid socket resource array
+        * @param       $socketInstance         An instance of a StorableSocket class
         * @return      void
         * @throws      InvalidResourceException        If the given resource is invalid
         */
-       function processRawDataFromSocketArray (array $socketData);
+       function processRawDataFromSocketInstance (StorableSocket $socketInstance);
 
        /**
         * Checks whether decoded data is pending for further processing.
index 33528ffe5a33952f80b4e248f9f73d7b7f787372..5eed3ad2e39f3bbeabc09e071d6fd4c9108982f9 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Handler\Protocol;
+namespace Org\Shipsimu\Hub\Handler\Protocol;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 // Import framework stuff
-use CoreFramework\Handler\Handleable;
+use Org\Mxchange\CoreFramework\Handler\Handleable;
 
 /**
  * An interface for protocol handlers
diff --git a/application/hub/interfaces/handler/raw-data/.htaccess b/application/hub/interfaces/handler/raw-data/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/hub/interfaces/handler/raw-data/class_HandleableRawData.php b/application/hub/interfaces/handler/raw-data/class_HandleableRawData.php
new file mode 100644 (file)
index 0000000..70a40bc
--- /dev/null
@@ -0,0 +1,80 @@
+<?php
+// Own namespace
+namespace Org\Shipsimu\Hub\Handler\Network\RawData;
+
+// Import application-specific stuff
+use Org\Shipsimu\Hub\Generic\HubInterface;
+
+/**
+ * An interface for raw-data handler
+ *
+ * @author             Roland Haeder <webmaster@shipsimu.org>
+ * @version            0.0.0
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Hub Developer Team
+ * @license            GNU GPL 3.0 or any newer version
+ * @link               http://www.shipsimu.org
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+interface HandleableRawData extends HubInterface {
+       // - Package errors
+       const PACKAGE_ERROR_INVALID_DATA       = 'invalid_data';    // Invalid data in package found
+       const PACKAGE_ERROR_INCOMPLETE_DATA    = 'incomplete_data'; // Incomplete data sent (e.g. field is missing)
+       const PACKAGE_ERROR_INVALID_CONTENT    = 'invalid_content'; // Content is invalid (e.g. not well-formed)
+       const PACKAGE_ERROR_RECIPIENT_MISMATCH = 'recipient_error'; // Recipient is not us
+       const PACKAGE_LEVEL_CHECK_OKAY         = 'checked_package'; // Package is fine
+
+       // Package data
+       const PACKAGE_RAW_DATA   = 'raw_data';
+       const PACKAGE_ERROR_CODE = 'error_code';
+
+       // Start/end marker
+       const STREAM_START_MARKER = '[[S]]';
+       const STREAM_END_MARKER   = '[[E]]';
+
+       /**
+        * Stacker for raw data
+        */
+       const STACKER_NAME_RAW_DATA = 'raw_data';
+
+       /**
+        * Checks whether raw data is pending for further processing.
+        *
+        * @return      $isPending      Whether raw data is pending
+        */
+       function isRawDataPending ();
+
+       /**
+        * "Getter" for next raw data from the stacker
+        *
+        * @return      $rawData        Raw data from the stacker
+        */
+       function getNextRawData ();
+
+       /**
+        * Setter for error code
+        *
+        * @param       $errorCode      The error code we shall set
+        * @return      void
+        */
+       function setErrorCode ($errorCode);
+
+       /**
+        * Getter for error code
+        *
+        * @return      $errorCode      The error code
+        */
+       function getErrorCode ();
+
+}
index 9093bac9f0d1a41b42e6cca1ee4a1e99c5a9932b..6f62b00909e5a8288285a52918f8f19b1c34a81c 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Helper\Connection;
+namespace Org\Shipsimu\Hub\Helper\Connection;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Helper\HubHelper;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Helper\HubHelper;
 
 /**
  * An interface for connection helper classes
index cb48498c3d6d1ac4082457a0147bef5db75bd6cc..13f5e180dabf9419aed9a57af1e96b827b0dbbcf 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Helper\Dht;
+namespace Org\Shipsimu\Hub\Helper\Dht;
 
 // Import application-specific stuff
-use Hub\Dht\Distributable;
-use Hub\Helper\HubHelper;
+use Org\Shipsimu\Hub\Dht\Distributable;
+use Org\Shipsimu\Hub\Helper\HubHelper;
 
 /**
  * An interface for hub helper classes
index ae2f8608c2ec625be06aab4d834ac11493f7bb19..a62e3664240d11cfbe254acf7a73821d51b0d7e0 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Helper;
+namespace Org\Shipsimu\Hub\Helper;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 // Import framework stuff
-use CoreFramework\Helper\Helper;
+use Org\Mxchange\CoreFramework\Helper\Helper;
 
 /**
  * An general interface for hub helper classes
index 05bd92238bf729263854d4b7345a65781d0cac72..7a8a46b4afb4d241d08ba222ece5d59bdad11c0f 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Helper\Message;
+namespace Org\Shipsimu\Hub\Helper\Message;
 
 // Import framework stuff
-use CoreFramework\Helper\Helper;
+use Org\Mxchange\CoreFramework\Helper\Helper;
 
 /**
  * An interface for message helper
index 9991399d69a1438c2e344f9b1a5b451d25374f1e..0ab41ba76c86c3c5d28e9e7deb547eb579c140c1 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Node\Helper;
+namespace Org\Shipsimu\Hub\Node\Helper;
 
 // Import application-specific stuff
-use Hub\Helper\HubHelper;
-use Hub\Helper\Node\NodeHelper;
+use Org\Shipsimu\Hub\Helper\HubHelper;
+use Org\Shipsimu\Hub\Helper\Node\NodeHelper;
 
 /**
  * An interface for node helper classes
index 4b657345e80035c0edce036bdb578f7c9c1b820e..3a06d8b01f5f35b093daddc033231279c1f0fac9 100644 (file)
@@ -1,17 +1,17 @@
 <?php
 // Own namespace
-namespace Hub\Helper\Node;
+namespace Org\Shipsimu\Hub\Helper\Node;
 
 // Import application-specific stuff
-use Hub\Network\Receive\Receivable;
+use Org\Shipsimu\Hub\Network\Receive\Receivable;
 
 // Import framework stuff
-use CoreFramework\Criteria\Add\AddableCriteria;
-use CoreFramework\Handler\Task\HandleableTask;
-use CoreFramework\Helper\Helper;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
-use CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Criteria\Add\AddableCriteria;
+use Org\Mxchange\CoreFramework\Handler\Task\HandleableTask;
+use Org\Mxchange\CoreFramework\Helper\Helper;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Task\Taskable;
 
 /**
  * An interface for "node-helper" classes
index 93c4fd0e5be1a309c5bd500233cd46738aaf4bb5..64dfec4fde6b492d9af23d919cccc203b7b24423 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Listener;
+namespace Org\Shipsimu\Hub\Listener;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 /**
  * An interface for listeners
index e7eb24c230e1be33bbf81c40637ed192e68618b2..e65907fbbb22657c94d57f816d6aca4f94fb0c94 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Locator\Node;
+namespace Org\Shipsimu\Hub\Locator\Node;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 /**
  * An interface for node locators (UNL mostly)
index 6dd42925c592523f7ff78cf36e778f6a62eee98e..c53b4247496cca85a1a16805521ba0e365501054 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\LookupTable;
+namespace Org\Shipsimu\Hub\LookupTable;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 /**
  * An interface for lookup tables
index c651cf691f1e3745e6ba35683126180e6aa59ef0..b4fa32c7f172beaafa43c7e59df142a6cf315333 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\State\Node\Lookup;
+namespace Org\Shipsimu\Hub\State\Node\Lookup;
 
 // Import application-specific stuff
-use Hub\LookupTable\Lookupable;
+use Org\Shipsimu\Hub\LookupTable\Lookupable;
 
 /**
  * An interface for node-state lookup tables
index 62a6444706484f2dbde4d15f7e59818d2a86a93d..e17116ef0db55e91c567ad5fc5684c2df01b9d86 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 // Own namespace
-namespace Hub\State\Peer\Lookup;
+namespace Org\Shipsimu\Hub\State\Peer\Lookup;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Helper\Connection\ConnectionHelper;
-use Hub\LookupTable\Lookupable;
-use Hub\State\Peer\PeerStateable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Helper\Connection\ConnectionHelper;
+use Org\Shipsimu\Hub\LookupTable\Lookupable;
+use Org\Shipsimu\Hub\State\Peer\PeerStateable;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * An interface for peer-state lookup table wrappers
index 22f6c742d5726de13f88b2a8be0eb5a732831700..707ba71c29a94ab5d3cd69847db565fd2a85e6f9 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Helper\Miner;
+namespace Org\Shipsimu\Hub\Helper\Miner;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 // Import framework stuff
-use CoreFramework\Controller\Controller;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * An interface for "node-helper" classes
index 600da217d17fd1a065582264ef5ed16bd802ce06..3ec0d7a2d3d519ab339093e9871e48bf64de8d15 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Network\Package\Assembler;
+namespace Org\Shipsimu\Hub\Network\Package\Assembler;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 /**
  * An interface for a package assembler
index a5b9e08bd8573c699ff58b96bdb39f40c4c41831..dc7f92cf5e6d32fcca7859028988177f75023696 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Network\Deliver;
+namespace Org\Shipsimu\Hub\Network\Deliver;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
-use Hub\Helper\HubHelper;
+use Org\Shipsimu\Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Helper\HubHelper;
 
 /**
  * An interface for package delivery boys... ;-)
index 9e58cac9a14267c41bd194f99de5fb37a239458b..3e0118eef90b27ade5ec321b403f748c35799477 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Network\Receive;
+namespace Org\Shipsimu\Hub\Network\Receive;
 
 // Import application-specific stuff
-use Hub\Network\Networkable;
+use Org\Shipsimu\Hub\Network\Networkable;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 /**
  * An interface for package receivers
index 15c9fd0771987259bee677f25379f2d1401d0127..bf1fc2ee94007c9e2707493768fad20b7faa3504 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Network\Package\Fragment;
+namespace Org\Shipsimu\Hub\Network\Package\Fragment;
 
 // Import application-specific stuff
-use Hub\Helper\Connection\ConnectionHelper;
+use Org\Shipsimu\Hub\Helper\Connection\ConnectionHelper;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 /**
  * An interface for a package fragmenter
index 3277f278df6b89809055e2c738e686137709b640..473185d92bfa8503e074a64bfd92f75932def050 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Pool;
+namespace Org\Shipsimu\Hub\Pool;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 /**
  * A Poolable interface
index d3f1cc69f9e92a266d1cb29adcec9a1c15c03519..3054182ec551b0ba45759df8371595abdec12e97 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Pool\Listener;
+namespace Org\Shipsimu\Hub\Pool\Listener;
 
 // Import application-specific stuff
-use Hub\Listener\Listenable;
-use Hub\Pool\Poolable;
+use Org\Shipsimu\Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Pool\Poolable;
 
 // Import framework stuff
 
index 02f73672c24abdaad5c24ade322599ca3a56404f..b7e72cf8cde005f7f59abd820a11f668061b409a 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 // Own namespace
-namespace Hub\Pool\Peer;
+namespace Org\Shipsimu\Hub\Pool\Peer;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Pool\Poolable;
-use Hub\Tag\Socket\SocketTag;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Pool\Poolable;
+use Org\Shipsimu\Hub\Tag\Socket\SocketTag;
 
 /**
  * An interface for peer pools
index 7da1e7f34d0224751f779d15146602c2b6389eca..615677cdf4c16343e0a82544628df90a42a3cfe0 100644 (file)
@@ -1,9 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Producer\Block;
+namespace Org\Shipsimu\Hub\Producer\Block;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\Executor\Executor;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * An interface for the producer/consumer implementation, especially for block
@@ -37,6 +38,3 @@ interface BlockProducer extends Producer, Executor {
         */
        function prepareBlockProduction (Stateable $stateInstance);
 }
-
-// [EOF]
-?>
index 31fff2c21999b01c40bb4257329250a30dd3363c..66a5b7318a5dc35a7358a4cb5d2ce55bfb50ac59 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Producer;
+namespace Org\Shipsimu\Hub\Producer;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 /**
  * An interface for the producer/consumer implementation
index 616e0c7624d4c8ca2e65f0b60fe863bd98532e01..a6c1629b4bc5c57c3d4c426a16552b2b35f3055c 100644 (file)
@@ -1,9 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Producer\Key;
+namespace Org\Shipsimu\Hub\Producer\Key;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\Executor\Executor;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * An interface for the producer/consumer implementation, especially for key
@@ -37,6 +38,3 @@ interface KeyProducer extends Producer, Executor {
         */
        function produceKeys (Stateable $stateInstance);
 }
-
-// [EOF]
-?>
index d521c81c0d551227901876267250bd48c01f34b9..e72aa7132e71c25087e275049fde318b9e20a7b2 100644 (file)
@@ -1,9 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Producer\Unit;
+namespace Org\Shipsimu\Hub\Producer\Unit;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\Executor\Executor;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * An interface for the producer/consumer implementation, especially for work/
@@ -37,6 +38,3 @@ interface UnitProducer extends Producer, Executor {
         */
        function initUnitProduction (Stateable $stateInstance);
 }
-
-// [EOF]
-?>
index 1e170d22b3299cdab1fe13b2e9cc5f332c298b0a..a6a8a300b8724c1653f21c3b3e99eb2e544d85e6 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Network\Recipient;
+namespace Org\Shipsimu\Hub\Network\Recipient;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 // Import framework stuff
-use CoreFramework\Lists\Listable;
+use Org\Mxchange\CoreFramework\Lists\Listable;
 
 /**
  * An interface for recipients
index 9fe5d0cbb85f50e221850b9897339d44bc981015..0ee21765754176d1ab2fe589ae97d269daab0c6a 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Registry\Socket;
+namespace Org\Shipsimu\Hub\Registry\Socket;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Information\ShareableInfo;
-use Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Information\ShareableInfo;
+use Org\Shipsimu\Hub\Listener\Listenable;
 
 // Import framework stuff
-use CoreFramework\Registry\Registerable;
+use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
  * A class for registerable socket classes
@@ -70,4 +70,11 @@ interface RegisterableSocket extends Registerable {
         */
        function getInfoInstanceFromPackageData (array $packageData);
 
+       /**
+        * Checks whether a socket of a connection type 'incoming' is registered.
+        *
+        * @return      $isRegistered   Whether such a socket is registered
+        */
+       function isIncomingSocketRegistered ();
+
 }
index 0bea55e041426bd14d8b41425161b1e3e3783030..e2c5fcb031cb8e86e375a0c9288513d32a3771fd 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Resolver\Protocol;
+namespace Org\Shipsimu\Hub\Resolver\Protocol;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
-use Hub\Helper\Node\NodeHelper;
+use Org\Shipsimu\Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Helper\Node\NodeHelper;
 
 
 /**
index 85554f55fa11adfcb7345295fe7067194cfd5e56..275c154b74d7f3683411fc1b79a52860a6909da6 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 // Own namespace
-namespace Hub\Resolver\State;
+namespace Org\Shipsimu\Hub\Resolver\State;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Helper\Connection\ConnectionHelper;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Helper\Connection\ConnectionHelper;
 
 // Import framework stuff
-use CoreFramework\Resolver\Resolver;
+use Org\Mxchange\CoreFramework\Resolver\Resolver;
 
 /**
  * An instance for state resolver classes
index e9b28acb97cc28e0886f0ad92b30da562f428bdc..7c7673ced134992858667cd058e990a2af1cf272 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Scanner;
+namespace Org\Shipsimu\Hub\Scanner;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 /**
  * An interface for scanners
index 74cdc0a418cc72bdc899876572007bd8696dd58e..a7833e8c45403e16e18a4d924477e3df4ecadb16 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 // Own namespace
-namespace Hub\Information;
+namespace Org\Shipsimu\Hub\Information;
 
 // Import application-specific stuff
-use Hub\Container\Socket\StorableSocket;
-use Hub\Helper\Connection\ConnectionHelper;
-use Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Container\Socket\StorableSocket;
+use Org\Shipsimu\Hub\Helper\Connection\ConnectionHelper;
+use Org\Shipsimu\Hub\Listener\Listenable;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 // Import framework stuff
 
@@ -59,4 +59,11 @@ interface ShareableInfo extends HubInterface {
         */
        function fillWithSocketPeerInformation (StorableSocket $socketInstance);
 
+       /**
+        * Getter for connection type
+        *
+        * @return      $connectionType         Connection type
+        */
+       function getConnectionType ();
+
 }
index ce3ab3064e44c2d8d9be0e983de7242ad529fc9b..9d39b9876f63fda1c2c23cb08f5366f40cd3a069 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Tag\Socket;
+namespace Org\Shipsimu\Hub\Tag\Socket;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 /**
  * An interface/tag for socket classes
index 27d13ca4f74412336d424c131eb38bc0abeaf4fd..be647ffb9513e53ca7a13ebc29bb46b9afe81273 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Source;
+namespace Org\Shipsimu\Hub\Source;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 /**
  * An interface for sources
index 79f027370334cf80ae118ad8b59841c0252ad4c0..b3ea301a1ef2416cfec5cb5fb5f3cafdc6af9b22 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\State\Client;
+namespace Org\Shipsimu\Hub\State\Client;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * An interface for client states
index aaf8f3b838c6ff726f6be31ed3118f56fc9708be..1d0bb017f6d01fe096d42d351a78c354ad9a0597 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\State;
+namespace Org\Shipsimu\Hub\State;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * An interface for hub states
index 57ab4fdc9fef6641481bc94d289f19c24a32ac62..e4997e13529d03f8bed565b562e3e0c7df67b174 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\State\Peer;
+namespace Org\Shipsimu\Hub\State\Peer;
 
 // Import framework stuff
-use CoreFramework\State\Stateable;
+use Org\Mxchange\CoreFramework\State\Stateable;
 
 /**
  * An interface for Peer states
index aea274c5c75bb7371c9bb10ea2715044bc9b901e..31426896929e58d66484c9d842e54794268274f2 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Tag;
+namespace Org\Shipsimu\Hub\Tag;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
-use Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Listener\Listenable;
 
 // Import framework stuff
 
index e5f0c431bae73b2f3f9de03075a767a944fb5357..08d77a8dc27ec84b7da56646e5ad7cb06d997da6 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 // Own namespace
-namespace Hub\Visitor\Listener;
+namespace Org\Shipsimu\Hub\Visitor\Listener;
 
 // Import application-specific stuff
-use Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Listener\Listenable;
 
 // Import framework stuff
-use CoreFramework\Visitor\Visitor;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * An interface for the visitor implementation for listeners
index 833ef4e1972f07fc947d5e2b218eaec68fedc248..d95cc1447a33b4fc2f09e13b23d8ef555d73af39 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Visitor\Pool;
+namespace Org\Shipsimu\Hub\Visitor\Pool;
 
 // Import framework stuff
-use Hub\Pool\Poolable;
-use CoreFramework\Visitor\Visitor;
+use Org\Shipsimu\Hub\Pool\Poolable;
+use Org\Mxchange\CoreFramework\Visitor\Visitor;
 
 /**
  * An interface for the visitor implementation for pools
index eca9dfeb5f479981d738f1407c4fdea67a95920a..cb3c99a931499ba68a2478635638b19b09d1b1ae 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 // Own namespace
-namespace Hub\Visitor\Pool\Listener;
+namespace Org\Shipsimu\Hub\Visitor\Pool\Listener;
 
 // Import application-specific stuff
-use Hub\Listener\Listenable;
-use Hub\Visitor\Pool\PoolVisitor;
+use Org\Shipsimu\Hub\Listener\Listenable;
+use Org\Shipsimu\Hub\Visitor\Pool\PoolVisitor;
 
 /**
  * An interface for the visitor implementation for pools
index ec56b31953ae4ba9ebf3be987a971585e08e26bb..abd74e0db14a6a7b88144e0fbf867b8a602f227b 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 // Own namespace
-namespace Hub\Helper\Unit;
+namespace Org\Shipsimu\Hub\Helper\Unit;
 
 // Import application-specific stuff
-use Hub\Generic\HubInterface;
+use Org\Shipsimu\Hub\Generic\HubInterface;
 
 /**
  * An interface for work/test/foo unit helper
diff --git a/core b/core
index e72033bed456c820815feeb2d25335245499448e..14dcd1503b3965144b5450299f3208d9b052cfc0 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit e72033bed456c820815feeb2d25335245499448e
+Subproject commit 14dcd1503b3965144b5450299f3208d9b052cfc0
index 753e54afef0c09cffd916413bb5bc1b00a937ca9..1e7f1d48f75e9a68e0803bef7bd71d416ff24fa6 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,16 +1,15 @@
 <?php
 // Own namespace (watch out: core)
-namespace CoreFramework\EntryPoint;
+namespace Org\Mxchange\CoreFramework\EntryPoint;
 
 // Import framework stuff
-use CoreFramework\Bootstrap\FrameworkBootstrap;
-use CoreFramework\Configuration\FrameworkConfiguration;
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Filesystem\FileNotFoundException;
-use CoreFramework\Helper\Application\ApplicationHelper;
-use CoreFramework\Localization\LanguageSystem;
-use CoreFramework\Loader\ClassLoader;
-use CoreFramework\Generic\FrameworkException;
+use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Filesystem\FileNotFoundException;
+use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
+use Org\Mxchange\CoreFramework\Localization\LanguageSystem;
+use Org\Mxchange\CoreFramework\Loader\ClassLoader;
+use Org\Mxchange\CoreFramework\Generic\FrameworkException;
 
 // Import SPL stuff
 use \Exception;
@@ -25,7 +24,7 @@ use \Exception;
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -58,7 +57,7 @@ final class ApplicationEntryPoint {
         * @return      void
         * @todo        This method is old code and needs heavy rewrite and should be moved to ApplicationHelper
         */
-       public static final function app_exit ($message = '', $code = false, $extraData = '', $silentMode = false) {
+       public static final function exitApplication ($message = '', $code = false, $extraData = '', $silentMode = false) {
                // Is this method already called?
                if (isset($GLOBALS['app_die_called'])) {
                        // Then output the text directly
@@ -75,7 +74,7 @@ final class ApplicationEntryPoint {
                } // END - if
 
                // Get config instance
-               $configInstance = FrameworkConfiguration::getSelfInstance();
+               $configInstance = FrameworkBootstrap::getConfigurationInstance();
 
                // Do we have debug installation?
                if (($configInstance->getConfigEntry('product_install_mode') == 'productive') || ($silentMode === true)) {
@@ -133,7 +132,7 @@ final class ApplicationEntryPoint {
                        $applicationInstance = NULL;
 
                        // Is the class there?
-                       if (class_exists('CoreFramework\Helper\Application\ApplicationHelper')) {
+                       if (class_exists('Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper')) {
                                // Get application instance
                                $applicationInstance = ApplicationHelper::getSelfInstance();
 
@@ -193,7 +192,7 @@ final class ApplicationEntryPoint {
                // Is it not set?
                if (empty(self::$frameworkPath)) {
                        // Auto-detect core path (first application-common)
-                       foreach (array('core', '.', '/usr/local/share/php/core', '/usr/share/php/core') as $possiblePath) {
+                       foreach (array('core', __DIR__, '/usr/local/share/php/core', '/usr/share/php/core') as $possiblePath) {
                                // Create full path for testing
                                $realPath = realpath($possiblePath);
 
@@ -206,22 +205,19 @@ final class ApplicationEntryPoint {
                                        continue;
                                } // END - if
 
+                               // Append framework path
+                               $frameworkPath = sprintf('%s%sframework%s', $realPath, DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR);
+
                                // First create full-qualified file name (FQFN) to framework/config-global.php
-                               $fqfn = sprintf(
-                                       '%s%sframework%sconfig-global.php',
-                                       $realPath,
-                                       DIRECTORY_SEPARATOR,
-                                       DIRECTORY_SEPARATOR,
-                                       $possiblePath
-                               );
+                               $configFile = $frameworkPath . 'config-global.php';
 
                                // Debug message
-                               //* NOISY-DEBUG: */ printf('[%s:%d]: fqfn=%s' . PHP_EOL, __METHOD__, __LINE__, $fqfn);
+                               //* NOISY-DEBUG: */ printf('[%s:%d]: configFile=%s' . PHP_EOL, __METHOD__, __LINE__, $configFile);
 
                                // Is it readable?
-                               if (is_readable($fqfn)) {
+                               if (is_readable($configFile)) {
                                        // Found one
-                                       self::$frameworkPath = $realPath . '/framework/';
+                                       self::$frameworkPath = $frameworkPath;
 
                                        // Abort here
                                        break;