X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Finterfaces%2Fregistry%2Fsocket%2Fclass_RegisterableSocket.php;h=14efd131c6c9966e5499c988bd1f357d03c5c8ed;hp=a97574830ab2d58903d8019c28256eb129738e06;hb=c89cdd982baa6d3941f829f3916785e7069c4214;hpb=6536a4dda3b96201f7f5551dc5d42559cf8b453d diff --git a/inc/classes/interfaces/registry/socket/class_RegisterableSocket.php b/inc/classes/interfaces/registry/socket/class_RegisterableSocket.php index a9757483..14efd131 100644 --- a/inc/classes/interfaces/registry/socket/class_RegisterableSocket.php +++ b/inc/classes/interfaces/registry/socket/class_RegisterableSocket.php @@ -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]