]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/listener/class_BaseListener.php
Rewrite continued:
[core.git] / framework / main / classes / listener / class_BaseListener.php
index ae98d5bd4c2b7737c3aab74fc6597a931c9a5f96..9765ca6ffb0ba844e3175454c403619818b6ae04 100644 (file)
@@ -56,7 +56,7 @@ class BaseListener extends BaseFrameworkSystem implements Visitable {
        /**
         * Whether we are in blocking or non-blocking mode (default: non-blocking
         */
-       private $blockingMode = FALSE;
+       private $blockingMode = false;
 
        /**
         * A peer pool instance
@@ -85,7 +85,7 @@ class BaseListener extends BaseFrameworkSystem implements Visitable {
                $isServerSocket = ((is_resource($socketResource)) && (!@socket_getpeername($socketResource, $peerName)));
 
                // We need to clear the error here if it is a resource
-               if ($isServerSocket === TRUE) {
+               if ($isServerSocket === true) {
                        // Clear the error
                        //* DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('socketResource[]=' . gettype($socketResource));
                        socket_clear_error($socketResource);
@@ -494,14 +494,14 @@ class BaseListener extends BaseFrameworkSystem implements Visitable {
                // Some new peers found?
                if ($left < 1) {
                        // Debug message
-                       //* EXTREME-NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TCP-LISTENER[' . __METHOD__ . ':' . __LINE__ . ']: left=' . $left . ',serverSocket=' . $this->getSocketResource() . ',readers=' . print_r($readers, TRUE));
+                       //* EXTREME-NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TCP-LISTENER[' . __METHOD__ . ':' . __LINE__ . ']: left=' . $left . ',serverSocket=' . $this->getSocketResource() . ',readers=' . print_r($readers, true));
 
                        // Nothing new found
                        return;
                } // END - if
 
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TCP-LISTENER[' . __METHOD__ . ':' . __LINE__ . ']: serverSocket=' . $this->getSocketResource() . ',readers=' . print_r($readers, TRUE));
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TCP-LISTENER[' . __METHOD__ . ':' . __LINE__ . ']: serverSocket=' . $this->getSocketResource() . ',readers=' . print_r($readers, true));
 
                // Do we have changed peers?
                if (in_array($this->getSocketResource(), $readers)) {
@@ -535,7 +535,7 @@ class BaseListener extends BaseFrameworkSystem implements Visitable {
                        // Output result (only for debugging!)
                        /*
                        $option = socket_get_option($newSocket, SOL_SOCKET, SO_RCVTIMEO);
-                       self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('SO_RCVTIMEO[' . gettype($option) . ']=' . print_r($option, TRUE));
+                       self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('SO_RCVTIMEO[' . gettype($option) . ']=' . print_r($option, true));
                        */
 
                        // Enable SO_OOBINLINE