]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/registry/socket/class_SocketRegistry.php
Added exceptions + some code:
[hub.git] / application / hub / main / registry / socket / class_SocketRegistry.php
index a293fb06cf3f5b16bffde44ee427cfd765fcd800..0041ec956a09bed24f624bcd354478cdfedcd9a8 100644 (file)
@@ -23,7 +23,7 @@
  */
 class SocketRegistry extends BaseRegistry implements Register, RegisterableSocket {
        // Exception constants
-       const SOCKET_NOT_REGISTERED = 0xd00;
+       const SOCKET_NOT_REGISTERED = 0xd200;
 
        /**
         * Instance of this class
@@ -131,7 +131,7 @@ class SocketRegistry extends BaseRegistry implements Register, RegisterableSocke
 
        /**
         * Checks whether given socket resource is registered. If $socketResource is
-        * false only the instance will be checked.
+        * FALSE only the instance will be checked.
         *
         * @param       $protocolInstance       An instance of a ProtocolHandler class
         * @param       $socketResource         A valid socket resource
@@ -142,7 +142,7 @@ class SocketRegistry extends BaseRegistry implements Register, RegisterableSocke
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(__METHOD__ . ':protocol=' . $protocolInstance->getProtocol() . ',socketResource[' . gettype($socketResource) . ']=' . $socketResource . ' - ENTERED!');
 
                // Default is not registered
-               $isRegistered = false;
+               $isRegistered = FALSE;
 
                // First, check for the instance, there can be only once
                if ($this->isProtocolRegistered($protocolInstance)) {