1 <?xml version="1.0" encoding="UTF-8" ?>
3 An XML for DHTs publishing their entries
5 @author Roland Haeder <webmaster@ship-simu.org>
7 @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 Hub Developer Team
8 @license GNU GPL 3.0 or any newer version
9 @link http://www.ship-simu.org
11 This program is free software: you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with this program. If not, see <http://www.gnu.org/licenses/>
26 The data in this message is similar to that in announcement, except that an
27 announcement is sent to boot, master and list nodes but this to "all" nodes
28 that matches some criteria. If we would send this to *really* all nodes,
29 this would easily flood the network.
31 Currently this XML message contains the same data fields as announcement.xml
32 but this might be changed in the future. And please remember that you can
33 type as much as you want here, as all will be removed by the compaction
36 The following example data will be published (execept __idx):
39 [node_mode] => regular
40 [external_address] => 192.168.2.3
42 [node_id] => 38fc625d3d9aa05654bfc90a7aea7ff72c883f1573
43 [session_id] => 38fc625d3dabe9ff09b54253b298e91985191472a3
44 [private_key_hash] => 38fc625d3dad67db034d7e715fae8b8ea47fefb0dc
45 [accepted_object_types] => announcement,self_connect,announcement_answer,request_node_list,request_node_list_answer,dht_bootstrap
50 <!-- Status of this node, see node_status.xml for details. //-->
51 <node-status>{?node_status?}</node-status>
52 <!-- Node mode: regular, master, list, boot again //-->
53 <node-mode>{?node_default_mode?}</node-mode>
54 <!-- The node id. //-->
55 <node-id>{?node_id?}</node-id>
56 <!-- The session id. This should be announced to all other hubs. //-->
57 <session-id>{?session_id?}</session-id>
58 <!-- Hash of private key. //-->
59 <private-key-hash>{?private_key_hash?}</private-key-hash>
60 <!-- Accepted object types //-->
61 <accepted-object-types>{?accepted_object_types?}</accepted-object-types>
62 <!-- Data from our listeners (e.g. which port) //-->
64 <!-- Public external address //-->
65 <external-address>{?external_address?}</external-address>