Also this ...
[core.git] / inc / classes / interfaces / registry / socket / class_RegisterableSocket.php
index 9a3ef45cd6a280f883810590a56029d529c3beae..6a93f752fb0d7c437d006055709650263951124a 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2013 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.shipsimu.org
  *
@@ -26,36 +26,36 @@ interface RegisterableSocket extends Registerable {
         * 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           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);
 }