X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fhub%2Fmain%2Flistener%2Ftcp%2Fdecorators%2Fclass_ClientTcpListenerDecorator.php;h=87f19300f6506e3ba803fbb1958d337f18b5a916;hb=44314097c8abbfef2ee703eeda601dffd22520af;hp=f456e009d63640c5f582fec434aacc0911bcc6cf;hpb=574060bd24fce7557acbd4dc3a4c5b9429f8846b;p=hub.git diff --git a/application/hub/main/listener/tcp/decorators/class_ClientTcpListenerDecorator.php b/application/hub/main/listener/tcp/decorators/class_ClientTcpListenerDecorator.php index f456e009d..87f19300f 100644 --- a/application/hub/main/listener/tcp/decorators/class_ClientTcpListenerDecorator.php +++ b/application/hub/main/listener/tcp/decorators/class_ClientTcpListenerDecorator.php @@ -2,11 +2,11 @@ /** * A decorator for the TcpListener to communicate to peers * - * @author Roland Haeder + * @author Roland Haeder * @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