]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/handler/message-types/class_BaseMessageHandler.php
Rewrites, some more methods:
[hub.git] / application / hub / main / handler / message-types / class_BaseMessageHandler.php
index 7770d236b39bd613c4163a46d8341ed3d28622c3..8c347b407567c4fa9fffe54c45d7fa3a847eabcc 100644 (file)
@@ -59,11 +59,11 @@ abstract class BaseMessageHandler extends BaseDataHandler {
         *
         * - session-id  (for finding the node's record together with below data)
         * - external-ip (hostname or IP number)
-        * - tcp-port    (TCP port for inbound connections)
+        * - listen-port (TCP/UDP listen port for inbound connections)
         *
         * @param       $messageArray   An array with all minimum message data
         * @return      void
-        * @todo        Add something more, e.g. spreading information over DHT
+        * @todo        Rewrite this to use DHT
         */
        protected function registerNodeByMessageData (array $messageData) {
                // Check if searchData has entries
@@ -78,7 +78,7 @@ abstract class BaseMessageHandler extends BaseDataHandler {
                // Debug message
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('MESSAGE-HANDLER: messageData=' . print_r($messageData, true));
 
-               // Search for the node's session id and external IP/hostname + TCP port
+               // Search for the node's session id and external IP/hostname + TCP/UDP listen port
                foreach ($this->searchData as $key) {
                        // Debug message
                        /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('MESSAGE-HANDLER: messageData[' . $key . ']=' . $messageData[$key]);