]> git.mxchange.org Git - hub.git/blobdiff - application/hub/templates/xml/object_registry/object_registry.xml
A whole bunch of classes/interfaces/exceptions added, many refacturings:
[hub.git] / application / hub / templates / xml / object_registry / object_registry.xml
diff --git a/application/hub/templates/xml/object_registry/object_registry.xml b/application/hub/templates/xml/object_registry/object_registry.xml
new file mode 100644 (file)
index 0000000..6c0b7d9
--- /dev/null
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+The object registry. All known (shareable!) object types/names are "registered"
+here.
+
+@author                Roland Haeder <webmaster@ship-simu.org>
+@version       0.0.0
+@copyright     Copyright (c) 2007, 2008 Roland Haeder, 2009 Ship-Simu Developer Team
+@license       GNU GPL 3.0 or any newer version
+@link          http://www.ship-simu.org
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>
+//-->
+<object-registry>
+       <!--
+       A list of object types this hub accepts. Please leave all untouched if
+       you want to participate in the main network. If you need special objects,
+       please disconnect from our boot hubs and start your own network.
+       
+       If you don't do so, you may be banned because of unknown object types your
+       node tries to advertise/share.
+       //-->
+       <object-list>
+               <!-- A single object type we want to share. //-->
+               <object-list-entry>
+                       <!-- The actual name, this must be the same as tag names are. //-->
+                       <object-name>announcement</object-name>
+                       <!--
+                       Recipient limitation:
+                       ---------------------
+                       upper - Only uploaded to "upper" hubs, these are bootstrap and
+                               list-nodes
+                       ???   - More to follow ...
+                       //-->
+                       <object-recipient-limitation>upper</object-recipient-limitation>
+                       <!--
+                       Maximum spread of the object. 1 means, only the direct recipient is
+                       allowed to keep it (required for announcements), 2 means the direct
+                       recipient may share it to its direct connected hubs. This aids to
+                       keep the overall network load at low-profile.
+                       //-->
+                       <object-max-spread>1</object-max-spread>
+                       <!--
+                       The protocol we should use for transmission. Valid values can be
+                       'tcp' or 'udp', without the quotes.
+                       //-->
+                       <object-protocol>tcp</object-protocol>
+               </object-list-entry>
+       </object-list>
+</object-registry>