]> git.mxchange.org Git - hub.git/blobdiff - application/hub/interfaces/wrapper/class_NodeDhtWrapper.php
Rewrites, some more methods:
[hub.git] / application / hub / interfaces / wrapper / class_NodeDhtWrapper.php
index 9ef9950f53a368057ba16ad94103f0e4c9e2479e..37a5b12972bb9c066fe17363067507c90ee806c2 100644 (file)
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 interface NodeDhtWrapper extends DatabaseWrapper {
+       /**
+        * Checks whether the local (*this*) node is registered in the DHT by
+        * checking if the external ip/port is found.
+        *
+        * @return      $isRegistered   Whether *this* node is registered in the DHT
+        */
+       function isLocalNodeRegistered ();
+
+       /**
+        * Updates local (*this*) node data in DHT, this is but not limited to the
+        * session id, ip number (and/or hostname) and port number.
+        *
+        * @return      void
+        */
+       function updateLocalNode();
+
+       /**
+        * Registeres the local (*this*) node with its data in the DHT.
+        *
+        * @return      void
+        */
+       function registerLocalNode();
 }
 
 // [EOF]