Also this ...
[core.git] / inc / classes / interfaces / registry / socket / class_RegisterableSocket.php
index fc7f39874edbb54bfad9bc9240044c1d2fa96348..6a93f752fb0d7c437d006055709650263951124a 100644 (file)
@@ -2,11 +2,11 @@
 /**
  * A class for registerable socket classes
  *
- * @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 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 Core 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
  */
 interface RegisterableSocket extends Registerable {
        /**
-        * Checks wether given socket resource is registered. If $socketResource is
-        * false only the instance will be checked.
+        * Checks whether given socket resource is registered. If $socketResource is
+        * FALSE only the instance will be checked.
         *
-        * @param       $protocolInstance       An instance of a ProtocolHandler class
+        * @param       $protocolInstance       An instance of a HandleableProtocol class
         * @param       $socketResource         A valid socket resource
-        * @return      $isRegistered           Wether the given socket resource is registered
+        * @return      $isRegistered           Whether the given socket resource is registered
         */
-       function isSocketRegistered (ProtocolHandler $protocolInstance, $socketResource);
+       function isSocketRegistered (HandleableProtocol $protocolInstance, $socketResource);
 
        /**
         * Registeres given socket for listener or throws an exception if it is already registered
         *
-        * @param       $protocolInstance       An instance of a ProtocolHandler class
+        * @param       $protocolInstance       An instance of a HandleableProtocol class
         * @param       $socketResource         A valid socket resource
         * @return      void
         * @throws      SocketAlreadyRegisteredException        If the given socket is already registered
         */
-       function registerSocket (ProtocolHandler $protocolInstance, $socketResource);
+       function registerSocket (HandleableProtocol $protocolInstance, $socketResource);
 
        /**
         * Getter for given listener's socket resource
         *
-        * @param       $protocolInstance       An instance of a ProtocolHandler class
+        * @param       $protocolInstance       An instance of a HandleableProtocol class
         * @return      $socketResource         A valid socket resource
         * @throws      NoSocketRegisteredException             If the requested socket is not registered
         */
-       function getRegisteredSocketResource (ProtocolHandler $protocolInstance);
+       function getRegisteredSocketResource (HandleableProtocol $protocolInstance);
 
        /**
         * "Getter" for protocol/connection instance from given package data
         *
         * @param       $packageData            Raw package data
-        * @return      $protocolInstance       An instance of a ProtocolHandler class
+        * @return      $protocolInstance       An instance of a HandleableProtocol class
         */
        function getHandlerInstanceFromPackageData (array $packageData);
 }