]> git.mxchange.org Git - hub.git/commitdiff
Removed usage of array elements that are never transmitted.
authorRoland Haeder <roland@mxchange.org>
Mon, 17 Mar 2014 19:39:25 +0000 (20:39 +0100)
committerRoland Haeder <roland@mxchange.org>
Mon, 17 Mar 2014 19:39:25 +0000 (20:39 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
application/hub/exceptions/dht/class_NoDhtBootstrapAttemptedException.php
application/hub/main/class_BaseHubSystem.php

index fed54274ef5ab99c2a449494aaab4d4f8136724e..0f20c6e334d644f367007534f6e74db0d0cd1817 100644 (file)
@@ -32,14 +32,11 @@ class NoDhtBootstrapAttemptedException extends FrameworkException {
         */
        public function __construct (array $messageArray, $code) {
                // Construct the message
-               $message = sprintf('[%s:%d] This DHT (%s) has not attempted to bootstrap, but got an answer from session-id=%s,ip=%s/%s,listen port=%s,status=%s.',
+               $message = sprintf('[%s:%d] This DHT (%s) has not attempted to bootstrap, but got an answer from session-id=%s,status=%s.',
                        $messageArray[0]->__toString(),
                        $this->getLine(),
                        $messageArray[1]->__toString(),
                        $messageArray[2][XmlDhtBootstrapAnswerTemplateEngine::DHT_BOOTSTRAP_DATA_SESSION_ID],
-                       $messageArray[2][XmlDhtBootstrapAnswerTemplateEngine::DHT_BOOTSTRAP_DATA_EXTERNAL_IP],
-                       $messageArray[2][XmlDhtBootstrapAnswerTemplateEngine::DHT_BOOTSTRAP_DATA_INTERNAL_IP],
-                       $messageArray[2][XmlDhtBootstrapAnswerTemplateEngine::DHT_BOOTSTRAP_DATA_LISTEN_PORT],
                        $messageArray[2][XmlDhtBootstrapAnswerTemplateEngine::DHT_BOOTSTRAP_DATA_NODE_STATUS]
                );
 
index 39ce33e30a9c963adf86be6828d62c7e2fb994c7..4efd83b8fa8ae5b42e2c156403c91663c966f6ab 100644 (file)
@@ -33,7 +33,7 @@ class BaseHubSystem extends BaseFrameworkSystem {
        const EXCEPTION_REQUEST_NOT_ACCEPTED          = 0x907;
        const EXCEPTION_DHT_BOOTSTRAP_NOT_ACCEPTED    = 0x908;
        const EXCEPTION_MULTIPLE_MESSAGE_SENT         = 0x909;
-       const EXCEPTION_DHT_BOOTSTRAP_NOT_ATTEMPTED   = 0x90A;
+       const EXCEPTION_DHT_BOOTSTRAP_NOT_ATTEMPTED   = 0x90a;
 
        // Message status codes
        const MESSAGE_STATUS_CODE_OKAY = 'OKAY';