]> 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 0e6c6bfe663f52b16170889d154c1ae23e87c5c7..8c347b407567c4fa9fffe54c45d7fa3a847eabcc 100644 (file)
@@ -59,16 +59,15 @@ 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
                assert(count($this->searchData) > 0);
-               self::createDebugInstance(__CLASS__)->debugOutput('messageData=' . print_r($messageData, true));
 
                // Get a wrapper instance
                $wrapperInstance = ObjectFactory::createObjectByConfiguredName('node_list_db_wrapper_class');
@@ -79,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]);