]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/template/answer/dht/class_XmlDhtBootstrapAnswerTemplateEngine.php
Continued with refacturing:
[hub.git] / application / hub / main / template / answer / dht / class_XmlDhtBootstrapAnswerTemplateEngine.php
index f5e26d7a36f659560b1910d608b772389f599043..b9a94872bd1b4c887af6145bc5cafb1083b0d153 100644 (file)
@@ -30,7 +30,6 @@ class XmlDhtBootstrapAnswerTemplateEngine extends BaseXmlAnswerTemplateEngine im
        const DHT_BOOTSTRAP_DATA_NODE_STATUS      = 'my-status';
        const DHT_BOOTSTRAP_DATA_EXTERNAL_ADDRESS = 'my-external-address';
        const DHT_BOOTSTRAP_DATA_INTERNAL_ADDRESS = 'my-internal-address';
-       const DHT_BOOTSTRAP_DATA_LISTEN_PORT      = 'my-listen-port';
        const DHT_BOOTSTRAP_DATA_NODE_LIST        = 'dht-nodes-list';
 
        /**
@@ -50,7 +49,6 @@ class XmlDhtBootstrapAnswerTemplateEngine extends BaseXmlAnswerTemplateEngine im
                        // Data from *this* node
                        self::DHT_BOOTSTRAP_DATA_EXTERNAL_ADDRESS,
                        self::DHT_BOOTSTRAP_DATA_INTERNAL_ADDRESS,
-                       self::DHT_BOOTSTRAP_DATA_LISTEN_PORT,
                        self::DHT_BOOTSTRAP_DATA_NODE_STATUS,
                        self::DHT_BOOTSTRAP_DATA_SESSION_ID,
                        // Data from other node
@@ -160,16 +158,6 @@ class XmlDhtBootstrapAnswerTemplateEngine extends BaseXmlAnswerTemplateEngine im
                $this->getStackInstance()->pushNamed('node_dht_bootstrap_answer', self::DHT_BOOTSTRAP_DATA_INTERNAL_ADDRESS);
        }
 
-       /**
-        * Starts the my-tcp-port
-        *
-        * @return      void
-        */
-       protected function startMyListenPort () {
-               // Push the node name on the stacker
-               $this->getStackInstance()->pushNamed('node_dht_bootstrap_answer', self::DHT_BOOTSTRAP_DATA_LISTEN_PORT);
-       }
-
        /**
         * Starts the my-session-id
         *
@@ -230,16 +218,6 @@ class XmlDhtBootstrapAnswerTemplateEngine extends BaseXmlAnswerTemplateEngine im
                $this->getStackInstance()->popNamed('node_dht_bootstrap_answer');
        }
 
-       /**
-        * Finishes the my-tcp-port
-        *
-        * @return      void
-        */
-       protected function finishMyListenPort () {
-               // Pop the last entry
-               $this->getStackInstance()->popNamed('node_dht_bootstrap_answer');
-       }
-
        /**
         * Finishes the my-internal-address
         *