]> git.mxchange.org Git - hub.git/commitdiff
Moved 'protocolName' to 'core'.
authorRoland Haeder <roland@mxchange.org>
Mon, 29 Jun 2015 00:40:34 +0000 (02:40 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 29 Jun 2015 00:40:34 +0000 (02:40 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
application/hub/main/class_BaseHubSystem.php
application/hub/main/listener/tcp/class_TcpListener.php
core

index c8e141df12a15628d38714eab2a97e364b721ec9..d8b886856bd8957c49a52f2199004d5599022b8c 100644 (file)
@@ -79,11 +79,6 @@ class BaseHubSystem extends BaseFrameworkSystem {
         */
        private $infoInstance = NULL;
 
-       /**
-        * Name of used protocol
-        */
-       private $protocolName = 'invalid';
-
        /**
         * Protected constructor
         *
@@ -310,25 +305,6 @@ class BaseHubSystem extends BaseFrameworkSystem {
                return $this->getConfigInstance()->getConfigEntry('session_id');
        }
 
-       /**
-        * Getter for protocol name
-        *
-        * @return      $protocolName   Name of used protocol
-        */
-       public final function getProtocolName () {
-               return $this->protocolName;
-       }
-
-       /**
-        * Setter for protocol name
-        *
-        * @param       $protocolName   Name of used protocol
-        * @return      void
-        */
-       protected final function setProtocolName ($protocolName) {
-               $this->protocolName = $protocolName;
-       }
-
        /**
         * Constructs a callable method name from given socket error code. If the
         * method is not found, a generic one is used.
index 67da7ae6ecaa47bf927eb2c02a0ee45080add30c..7ef6a1f0554a27785f44a65311a413710a6c2269 100644 (file)
@@ -282,10 +282,13 @@ class TcpListener extends BaseListener implements Listenable {
                                $this->handleSocketError(__METHOD__, __LINE__, $newSocket, array('0.0.0.0', '0'));
                        } // END - if
 
+                       // Get node instance
+                       $nodeInstance = Registry::getRegistry()->getInstance('node');
+
                        // Create a faked package data array
                        $packageData = array(
                                NetworkPackage::PACKAGE_DATA_SENDER    => $peerName . ':0',
-                               NetworkPackage::PACKAGE_DATA_RECIPIENT => $this->getSessionId(),
+                               NetworkPackage::PACKAGE_DATA_RECIPIENT => $nodeInstance->getSessionId(),
                                NetworkPackage::PACKAGE_DATA_STATUS    => NetworkPackage::PACKAGE_STATUS_FAKED
                        );
 
diff --git a/core b/core
index c33ae28f2865cdcfb330dbbc6e8159b1d17b9ce0..e18cb1a8484d0cfe82812f4446738aa31d669f1e 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit c33ae28f2865cdcfb330dbbc6e8159b1d17b9ce0
+Subproject commit e18cb1a8484d0cfe82812f4446738aa31d669f1e