]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/dht/class_
Opps, wrong name :(
[hub.git] / application / hub / main / dht / class_
index 0543b18cce884ee7b29cf02fa229ebe53e9aa5a2..5342bec91f6535e007b5bc71aaf4a8d49aef1704 100644 (file)
@@ -21,7 +21,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-class ???DhtFacade extends BaseDht implements Dht {
+class ???DhtFacade extends BaseDht implements Distributable {
        /**
         * Protected constructor
         *
@@ -35,7 +35,7 @@ class ???DhtFacade extends BaseDht implements Dht {
        /**
         * Creates an instance of this class
         *
-        * @return      $dhtInstance            An instance of a Dht class
+        * @return      $dhtInstance    An instance of a Distributable class
         */
        public final static function create??? () {
                // Get new instance
@@ -44,6 +44,19 @@ class ???DhtFacade extends BaseDht implements Dht {
                // Return the prepared instance
                return $dhtInstance;
        }
+
+       /**
+        * Registers/updates an entry in the DHT with given data from $dhtData
+        * array. Different DHT implemtations may handle this differently as they
+        * may enrich the data with more meta data.
+        *
+        * @param       $dhtData        A valid array with DHT-related data (e.g. node/peer data)
+        * @return      void
+        * @todo        0% done
+        */
+       protected function insertDataIntoDht (array $dhtData) {
+               $this->partialStub('Please implement this method.');
+       }
 }
 
 // [EOF]