From a463ca7be226a21aa8e73d55fedba57797e61d2a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 14 Feb 2013 22:23:40 +0000 Subject: [PATCH] Added missing 'package tags' --- application/hub/main/helper/dht/class_DhtBootstrapHelper.php | 3 +++ application/hub/main/package/class_NetworkPackage.php | 5 +++++ 2 files changed, 8 insertions(+) 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 */ -- 2.39.5