/**
* Some XML nodes must be available for later data extraction
*/
- const DHT_BOOTSTRAP_DATA_SESSION_ID = 'session-id';
- const DHT_BOOTSTRAP_DATA_NODE_STATUS = 'node-status';
- const DHT_BOOTSTRAP_DATA_NODE_MODE = 'node-mode';
- const DHT_BOOTSTRAP_DATA_EXTERNAL_IP = 'external-ip';
- const DHT_BOOTSTRAP_DATA_INTERNAL_IP = 'internal-ip';
- const DHT_BOOTSTRAP_DATA_LISTEN_PORT = 'listen-port';
+ const DHT_BOOTSTRAP_DATA_BOOTSTRAP_DATA = 'dht-bootstrap-data';
+ const DHT_BOOTSTRAP_DATA_SESSION_ID = 'session-id';
+ const DHT_BOOTSTRAP_DATA_NODE_STATUS = 'node-status';
+ const DHT_BOOTSTRAP_DATA_NODE_MODE = 'node-mode';
+ const DHT_BOOTSTRAP_DATA_EXTERNAL_IP = 'external-ip';
+ const DHT_BOOTSTRAP_DATA_INTERNAL_IP = 'internal-ip';
+ const DHT_BOOTSTRAP_DATA_LISTEN_PORT = 'listen-port';
/**
* Protected constructor
// Init array
$this->subNodes = array(
- 'bootstrap-data',
+ self::DHT_BOOTSTRAP_DATA_BOOTSTRAP_DATA,
'listener',
self::DHT_BOOTSTRAP_DATA_NODE_STATUS,
self::DHT_BOOTSTRAP_DATA_NODE_MODE,
*/
protected function startBootstrap () {
// Push the node name on the stacker
- $this->getStackerInstance()->pushNamed('dht_bootstrap', 'bootstrap');
+ $this->getStackerInstance()->pushNamed('dht_bootstrap', 'dht-bootstrap');
}
/**
*/
protected function startBootstrapData () {
// Push the node name on the stacker
- $this->getStackerInstance()->pushNamed('dht_bootstrap', 'bootstrap-data');
+ $this->getStackerInstance()->pushNamed('dht_bootstrap', self::DHT_BOOTSTRAP_DATA_BOOTSTRAP_DATA);
}
/**
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
//-->
-<bootstrap>
+<dht-bootstrap>
<!--
The data in this message is similar to that in announcement, except that an
announcement is sent to boot, master and list nodes but this to "all" nodes
type as much as you want here, as all will be removed by the compaction
step.
//-->
- <bootstrap-data>
+ <dht-bootstrap-data>
<!-- Status of this node, see node_status.xml for details. //-->
<node-status>{?node_status?}</node-status>
<!-- Node mode: regular, master, list, boot again //-->
<!-- Listener ports for both connections //-->
<listen-port>{?node_listen_port?}</listen-port>
</listener>
- </bootstrap-data>
-</bootstrap>
+ </dht-bootstrap-data>
+</dht-bootstrap>