From: Roland Häder Date: Thu, 14 Feb 2013 22:23:40 +0000 (+0000) Subject: Added missing 'package tags' X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a463ca7be226a21aa8e73d55fedba57797e61d2a;p=hub.git Added missing 'package tags' --- diff --git a/application/hub/main/helper/dht/class_DhtBootstrapHelper.php b/application/hub/main/helper/dht/class_DhtBootstrapHelper.php index 110bf25ea..d3177450b 100644 --- a/application/hub/main/helper/dht/class_DhtBootstrapHelper.php +++ b/application/hub/main/helper/dht/class_DhtBootstrapHelper.php @@ -34,6 +34,9 @@ class DhtBootstrapHelper extends BaseHubSystemHelper implements HelpableDht { // Set recipient type $this->setRecipientType(NetworkPackage::NETWORK_TARGET_DHT); + + // Set package tags + $this->setPackageTags(array('dht_bootstrap')); } /** diff --git a/application/hub/main/package/class_NetworkPackage.php b/application/hub/main/package/class_NetworkPackage.php index 09ca858bf..9aca332c0 100644 --- a/application/hub/main/package/class_NetworkPackage.php +++ b/application/hub/main/package/class_NetworkPackage.php @@ -145,6 +145,11 @@ class NetworkPackage extends BaseHubSystem implements Deliverable, Receivable, R */ const NETWORK_TARGET_SELF = 'self'; + /** + * Network target (alias): 'dht' + */ + const NETWORK_TARGET_DHT = 'dht'; + /** * TCP package size in bytes */