use CoreFramework\Discovery\BaseDiscovery;
use CoreFramework\Discovery\Discoverable;
use CoreFramework\Generic\UnsupportedOperationException;
+use CoreFramework\Helper\Template\HelpableTemplate;
+use CoreFramework\Request\Requestable;
/**
* A general node discovery class
// Import application-specific stuff
use Hub\Discovery\Node\BaseNodeDiscovery;
+use Hub\Factory\Resolver\Protocol\ProtocolResolverFactory;
use Hub\Helper\Node\NodeHelper;
// Import framework stuff
<?php
// Own namespace
-namespace Hub\Factory\Resolver;
+namespace Hub\Factory\Resolver\Protocol;
// Import framework stuff
use CoreFramework\Configuration\FrameworkConfiguration;
// Import hub-specific stuff
use Hub\Database\Frontend\Node\Information\NodeInformationDatabaseWrapper;
use Hub\Factory\State\Node\NodeStateFactory;
+use Hub\Locator\Node\LocateableNode;
use Hub\Generic\BaseHubSystem;
use Hub\Network\Receive\Receivable;
use Hub\Tools\HubTools;
// Import application-specific stuff
use Hub\Helper\Node\NodeHelper;
+use Hub\Resolver\Protocol\BaseProtocolResolver;
+use Hub\Resolver\Protocol\ProtocolResolver;
/**
* A !!! protocol resolver class
* 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 BaseProtocolResolver extends BaseHubSystem {
+abstract class BaseProtocolResolver extends BaseHubSystem implements ProtocolResolver {
/**
* Protected constructor
*
// Call parent constructor
parent::__construct($className);
}
-}
-// [EOF]
-?>
+}
// Import application-specific stuff
use Hub\Database\Frontend\Node\Information\NodeInformationDatabaseWrapper;
use Hub\Helper\Node\NodeHelper;
+use Hub\Resolver\Protocol\BaseProtocolResolver;
+use Hub\Resolver\Protocol\ProtocolResolver;
// Import framework stuff
use CoreFramework\Console\Tools\ConsoleTools;
use Hub\Factory\Dht\DhtObjectFactory;
use Hub\Factory\Node\NodeObjectFactory;
use Hub\Generic\BaseHubSystem;
+use Hub\Locator\Node\LocateableNode;
// Import framework stuff
use CoreFramework\Configuration\FrameworkConfiguration;
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('NODE[' . __METHOD__ . ':' . __LINE__ . ']: unl=' . $GLOBALS[__METHOD__] . ' - EXIT!');
return $GLOBALS[__METHOD__];
}
-}
-// [EOF]
-?>
+}
$cfg->setConfigEntry('tcp_protocol_handler_class', 'TcpProtocolHandler');
// CFG: UNIVERSAL-NODE-LOCATOR-CLASS
-$cfg->setConfigEntry('universal_node_locator_class', 'UniversalNodeLocator');
+$cfg->setConfigEntry('universal_node_locator_class', 'Hub\Locator\Node\UniversalNodeLocator');
// CFG: RECIPIENT-LIST-CLASS
$cfg->setConfigEntry('recipient_list_class', 'RecipientList');
$cfg->setConfigEntry('hub_communication_protocol_type', 'tcp');
// CFG: TCP-PROTOCOL-RESOLVER-CLASS
-$cfg->setConfigEntry('tcp_protocol_resolver_class', 'TcpProtocolResolver');
+$cfg->setConfigEntry('tcp_protocol_resolver_class', 'Hub\Resolver\Protocol\Tcp\TcpProtocolResolver');
// CFG: TCP-BUFFER-LENGTH
$cfg->setConfigEntry('tcp_buffer_length', 1024);
-Subproject commit de0fb4d6e2785338f2ba881761efc7b15c4a9530
+Subproject commit aa425d10f8eef36160fcfd87bcd9a7d44af9ff16