]> git.mxchange.org Git - hub.git/commitdiff
setNodeInstance is no longer available through BaseListener as BaseListener is now...
authorRoland Haeder <roland@mxchange.org>
Sat, 22 Aug 2015 09:44:49 +0000 (11:44 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 22 Aug 2015 09:44:49 +0000 (11:44 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
application/hub/main/handler/message-types/dht/class_NodeMessageDhtBootstrapHandler.php
application/hub/main/listener/tcp/class_TcpListener.php
application/hub/main/listener/udp/class_UdpListener.php
application/hub/main/pools/listener/class_DefaultListenerPool.php

index 35b609e4ca4cee602916e74e6e398541c06e8859..8e16c876fd8e160c300e2649065f832a52948d2c 100644 (file)
@@ -76,6 +76,9 @@ class NodeMessageDhtBootstrapHandler extends BaseMessageHandler implements Handl
                // Get node instance
                $nodeInstance = NodeObjectFactory::createNodeInstance();
 
+               // Debug message
+               self::createDebugInstance(__CLASS__)->debugOutput('POOL[' . __METHOD__ . ':' . __LINE__ . ':] Setting node ...');
+
                // ... and set it here
                $handlerInstance->setNodeInstance($nodeInstance);
 
index 7ef6a1f0554a27785f44a65311a413710a6c2269..d3fbcf35c6dfb11a391de971372d47c781842f1c 100644 (file)
@@ -45,9 +45,6 @@ class TcpListener extends BaseListener implements Listenable {
                // Get new instance
                $listenerInstance = new TcpListener();
 
-               // Set the application instance
-               $listenerInstance->setNodeInstance($nodeInstance);
-
                // Return the prepared instance
                return $listenerInstance;
        }
index a9c9d51dea265b32d3b857f5a8f83397692e9611..0eed46a90c23d57f1822051832f57c87f2faea39 100644 (file)
@@ -45,9 +45,6 @@ class UdpListener extends BaseListener implements Listenable {
                // Get new instance
                $listenerInstance = new UdpListener();
 
-               // Set the application instance
-               $listenerInstance->setNodeInstance($nodeInstance);
-
                // Return the prepared instance
                return $listenerInstance;
        }
index 82e5ced4aae91914667ed67ee22168dbd38fd3d0..3409bd484ba1f79eecb2c04ab04aa932e7d46609 100644 (file)
@@ -42,6 +42,9 @@ class DefaultListenerPool extends BasePool implements PoolableListener {
                // Get new instance
                $listenerInstance = new DefaultListenerPool();
 
+               // Debug message
+               self::createDebugInstance(__CLASS__)->debugOutput('POOL[' . __METHOD__ . ':' . __LINE__ . ':] Setting node ...');
+
                // Set the application instance
                $listenerInstance->setNodeInstance($nodeInstance);