From 256027e87d4369a4cbd5155887c92cee8c725ec2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 19 May 2017 03:06:40 +0200 Subject: [PATCH] Next wave: - imported BaseHubNode - imported (Node)Helper - created namespaces MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../node/class_NodeDistributedHashTableDatabaseWrapper.php | 1 + .../frontend/node/class_NodeInformationDatabaseWrapper.php | 4 ++++ .../discovery/node/class_UniversalNodeLocatorDiscovery.php | 6 ++++++ .../factories/states/node/class_NodeStateFactory.php | 1 + .../class_NodeAnnouncementAnswerOkayHandler.php | 1 + .../requests/class_NodeMessageRequestNodeListHandler.php | 1 + application/hub/classes/handler/network/tcp/class_ | 6 ++++++ .../node/announcement/class_NodeAnnouncementHelper.php | 6 ++++++ .../class_NodeAnnouncementMessageAnswerHelper.php | 6 ++++++ .../dht/class_NodeDhtBootstrapMessageAnswerHelper.php | 6 ++++++ .../class_NodeRequestNodeListMessageAnswerHelper.php | 6 ++++++ application/hub/classes/helper/node/class_ | 6 ++++++ .../hub/classes/helper/node/class_BaseNodeHelper.php | 2 +- .../helper/node/connection/class_NodeSelfConnectHelper.php | 6 ++++++ .../node/requests/class_NodeRequestNodeListHelper.php | 6 ++++++ application/hub/classes/listener/tcp/class_ | 6 ++++++ application/hub/classes/listener/udp/class_ | 6 ++++++ application/hub/classes/nodes/boot/class_HubBootNode.php | 4 ++++ application/hub/classes/nodes/class_ | 4 ++++ application/hub/classes/nodes/list/class_HubListNode.php | 4 ++++ .../hub/classes/nodes/master/class_HubMasterNode.php | 4 ++++ .../hub/classes/nodes/regular/class_HubRegularNode.php | 4 ++++ .../classes/pools/listener/class_DefaultListenerPool.php | 3 +++ application/hub/classes/resolver/protocol/class_ | 6 ++++++ .../resolver/protocol/tcp/class_TcpProtocolResolver.php | 3 +++ application/hub/classes/states/node/class_ | 6 ++++++ .../database/frontend/class_NodeInformationWrapper.php | 3 +++ .../unl/class_DiscoverableUniversalNodeLocator.php | 6 ++++++ application/hub/interfaces/helper/hub/class_HubHelper.php | 6 ++++++ .../hub/interfaces/helper/messages/class_MessageHelper.php | 6 ++++++ .../hub/interfaces/helper/node/class_HelpableNode.php | 6 ++++++ .../hub/interfaces/helper/nodes/class_NodeHelper.php | 3 ++- .../hub/interfaces/resolver/class_ProtocolResolver.php | 6 ++++++ 33 files changed, 148 insertions(+), 2 deletions(-) diff --git a/application/hub/classes/database/frontend/node/class_NodeDistributedHashTableDatabaseWrapper.php b/application/hub/classes/database/frontend/node/class_NodeDistributedHashTableDatabaseWrapper.php index aeae4e35b..b41984318 100644 --- a/application/hub/classes/database/frontend/node/class_NodeDistributedHashTableDatabaseWrapper.php +++ b/application/hub/classes/database/frontend/node/class_NodeDistributedHashTableDatabaseWrapper.php @@ -4,6 +4,7 @@ namespace Hub\Database\Frontend\Node\Dht; // Import application-specific stuff use Hub\Factory\Node\NodeObjectFactory; +use Hub\Node\BaseHubNode; // Import framework stuff use CoreFramework\Criteria\Storing\StoreableCriteria; diff --git a/application/hub/classes/database/frontend/node/class_NodeInformationDatabaseWrapper.php b/application/hub/classes/database/frontend/node/class_NodeInformationDatabaseWrapper.php index c105b7c1b..499e2a561 100644 --- a/application/hub/classes/database/frontend/node/class_NodeInformationDatabaseWrapper.php +++ b/application/hub/classes/database/frontend/node/class_NodeInformationDatabaseWrapper.php @@ -2,6 +2,10 @@ // Own namespace namespace Hub\Database\Frontend\Node\Information; +// Import application-specific stuff +use Hub\Node\BaseHubNode; +use Hub\Node\Helper\NodeHelper; + // Import framework stuff use CoreFramework\Factory\ObjectFactory; use CoreFramework\Request\Requestable; diff --git a/application/hub/classes/discovery/node/class_UniversalNodeLocatorDiscovery.php b/application/hub/classes/discovery/node/class_UniversalNodeLocatorDiscovery.php index 5fa1ca71d..dab60ad1e 100644 --- a/application/hub/classes/discovery/node/class_UniversalNodeLocatorDiscovery.php +++ b/application/hub/classes/discovery/node/class_UniversalNodeLocatorDiscovery.php @@ -1,4 +1,10 @@ 0) { socket_close($mainSocket); ?> +// Own namespace +namespace Hub\Listener\; + +// Import application-specific stuff +use Hub\Node\Helper\NodeHelper; + 0) { socket_close($mainSocket); ?> +// Own namespace +namespace Hub\Listener\Tcp\; + +// Import application-specific stuff +use Hub\Node\Helper\NodeHelper; +