]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/listener/class_BaseListenerDecorator.php
More rewrites (and code stops):
[hub.git] / application / hub / main / listener / class_BaseListenerDecorator.php
index e1e1bd54b32c3707ccbfda0e428805b90392d701..87292e4de815b4a8639c79b3331b7be3ecf7c1c0 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 /**
- * A decorator for the TcpListener to communicate to hubs
+ * A general decorator for listeners to communicate to hubs
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Hub Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 Hub Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -65,15 +65,6 @@ class BaseListenerDecorator extends BaseDecorator implements Visitable {
                return $this->getListenerInstance()->getPort();
        }
 
-       /**
-        * Getter for protocol
-        *
-        * @return      $protocol       The used protocol
-        */
-       public final function getProtocol () {
-               return $this->getListenerInstance()->getProtocol();
-       }
-
        /**
         * Accepts the visitor to process the visit "request"
         *
@@ -151,7 +142,7 @@ class BaseListenerDecorator extends BaseDecorator implements Visitable {
                 * if the decoded data origins from a TCP or UDP connection so we can
                 * just pass it over to the network package receiver
                 */
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('[' . __METHOD__ . ':' . __LINE__ . '] Going to handle over some raw data to receiver instance (' . $receiverInstance->__toString() . ') ...');
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('BASE-LISTENER-DECORATOR[' . __METHOD__ . ':' . __LINE__ . '] Going to handle over some raw data to receiver instance (' . $receiverInstance->__toString() . ') ...');
                $receiverInstance->addRawDataToIncomingStack($handlerInstance);
        }
 }