]> git.mxchange.org Git - hub.git/commitdiff
Also don't forget to add it here ....
authorRoland Haeder <roland@mxchange.org>
Sun, 24 May 2015 22:40:19 +0000 (00:40 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 24 May 2015 22:40:19 +0000 (00:40 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
application/hub/main/handler/message-types/answer/class_NodeMessageAnnouncementAnswerHandler.php
application/hub/main/template/answer/announcement/class_XmlAnnouncementAnswerTemplateEngine.php

index 1014e932fb441776de49649119380507faa76a4f..eab9f542f0c4ac29311fa5fa954ec0e227f10ba8 100644 (file)
@@ -39,6 +39,7 @@ class NodeMessageAnnouncementAnswerHandler extends BaseMessageHandler implements
                        XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_EXTERNAL_ADDRESS,
                        XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_INTERNAL_ADDRESS,
                        XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_NODE_STATUS,
+                       XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_NODE_ID,
                        XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_SESSION_ID,
                        XmlAnnouncementAnswerTemplateEngine::ANNOUNCEMENT_DATA_PRIVATE_KEY_HASH,
                        BaseXmlAnswerTemplateEngine::ANSWER_STATUS,
index 660c42125c6c1506b4805c3ea97c3a63723d338c..87ed8fa545fe9274b04097ccc5b61448086431ac 100644 (file)
@@ -161,6 +161,16 @@ class XmlAnnouncementAnswerTemplateEngine extends BaseXmlAnswerTemplateEngine im
                $this->getStackInstance()->pushNamed('node_announcement_answer', self::ANNOUNCEMENT_DATA_INTERNAL_ADDRESS);
        }
 
+       /**
+        * Starts the my-node-id
+        *
+        * @return      void
+        */
+       protected function startMyNodeId () {
+               // Push the node name on the stacker
+               $this->getStackInstance()->pushNamed('node_announcement_answer', self::ANNOUNCEMENT_DATA_NODE_ID);
+       }
+
        /**
         * Starts the my-session-id
         *
@@ -221,6 +231,16 @@ class XmlAnnouncementAnswerTemplateEngine extends BaseXmlAnswerTemplateEngine im
                $this->getStackInstance()->popNamed('node_announcement_answer');
        }
 
+       /**
+        * Finishes the my-node-id
+        *
+        * @return      void
+        */
+       protected function finishMyNodeId () {
+               // Pop the last entry
+               $this->getStackInstance()->popNamed('node_announcement_answer');
+       }
+
        /**
         * Finishes the my-internal-address
         *