]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/listener/tcp/decorators/class_ClientTcpListenerDecorator.php
Added more UNL (Universal Node Locator) stuff:
[hub.git] / application / hub / main / listener / tcp / decorators / class_ClientTcpListenerDecorator.php
index f456e009d63640c5f582fec434aacc0911bcc6cf..87f19300f6506e3ba803fbb1958d337f18b5a916 100644 (file)
@@ -2,11 +2,11 @@
 /**
  * A decorator for the TcpListener to communicate to peers
  *
- * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 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.ship-simu.org
+ * @link               http://www.shipsimu.org
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -31,8 +31,9 @@ class ClientTcpListenerDecorator extends BaseListenerDecorator implements Listen
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Set listener type
+               // Set listener type and protocol name
                $this->setListenerType('peer');
+               $this->setProtocolName('tcp');
        }
 
        /**
@@ -75,10 +76,10 @@ class ClientTcpListenerDecorator extends BaseListenerDecorator implements Listen
        }
 
        /**
-        * Checks wether the listener would accept the given package data array
+        * Checks whether the listener would accept the given package data array
         *
         * @param       $packageData    Raw package data
-        * @return      $accepts                Wether this listener does accept
+        * @return      $accepts                Whether this listener does accept
         */
        public function ifListenerAcceptsPackageData (array $packageData) {
                // Get a tags instance