More widen interface ProtocolHandler (which should be extended by listener and writer...
[core.git] / inc / classes / interfaces / registry / socket / class_RegisterableSocket.php
index a97574830ab2d58903d8019c28256eb129738e06..14efd131c6c9966e5499c988bd1f357d03c5c8ed 100644 (file)
@@ -26,30 +26,30 @@ interface RegisterableSocket extends Registerable {
         * Checks wether given socket resource is registered. If $socketResource is
         * false only the instance will be checked.
         *
-        * @param       $listenerInstance       An instance of a Listenable class
+        * @param       $protocolInstance       An instance of a ProtocolHandler class
         * @param       $socketResource         A valid socket resource
         * @return      $isRegistered           Wether the given socket resource is registered
         */
-       function isSocketRegistered (Listenable $listenerInstance, $socketResource);
+       function isSocketRegistered (ProtocolHandler $protocolInstance, $socketResource);
 
        /**
         * Registeres given socket for listener or throws an exception if it is already registered
         *
-        * @param       $listenerInstance       An instance of a Listenable class
+        * @param       $protocolInstance       An instance of a ProtocolHandler class
         * @param       $socketResource         A valid socket resource
         * @return      void
         * @throws      SocketAlreadyRegisteredException        If the given socket is already registered
         */
-       function registerSocket (Listenable $listenerInstance, $socketResource);
+       function registerSocket (ProtocolHandler $protocolInstance, $socketResource);
 
        /**
         * Getter for given listener's socket resource
         *
-        * @param       $listenerInstance       An instance of a Listenable class
+        * @param       $protocolInstance       An instance of a ProtocolHandler class
         * @return      $socketResource         A valid socket resource
         * @throws      NoSocketRegisteredException             If the requested socket is not registered
         */
-       function getSocketResource (Listenable $listenerInstance);
+       function getSocketResource (ProtocolHandler $protocolInstance);
 }
 
 // [EOF]