]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/resolver/state/network/class_NetworkStateResolver.php
Renamed FooNetworkPackageHandler to FooRawDataHandler, because it handles raw data...
[hub.git] / application / hub / main / resolver / state / network / class_NetworkStateResolver.php
index 25639a6959a28a2bb528fe95eaa516b21895f8db..9b592b6f8ed311f99963c090a4afd24bf98fc4e8 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Hub Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Hub Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -78,13 +78,13 @@ class NetworkStateResolver extends BaseStateResolver implements StateResolver {
                if (($errorCode == 134) || ($errorCode == 107)) {
                        // Transport endpoint not connected, should be handled else!
                        // @TODO On some systems it is 134, on some 107?
-                       $errorCode = BaseNetworkPackageHandler::SOCKET_ERROR_TRANSPORT_ENDPOINT;
+                       $errorCode = BaseRawDataHandler::SOCKET_ERROR_TRANSPORT_ENDPOINT;
                } elseif (is_int($errorCode)) {
-                       // Debug output (because we might want to handle it like the above(s)
-                       $this->debugOutput(__METHOD__ . ': UNKNOWN ERROR CODE = ' . $errorCode, ', MESSAGE = ' . socket_strerror($errorCode));
+                       // Unhandled error code detected, so first debug it because we may want to handle it like the others
+                       $this->debugOutput('[' . __METHOD__ . ':' . __LINE__ . '] UNKNOWN ERROR CODE = ' . $errorCode, ', MESSAGE = ' . socket_strerror($errorCode));
 
                        // Change it only in this class
-                       $errorCode = BaseNetworkPackageHandler::SOCKET_ERROR_UNKNOWN;
+                       $errorCode = BaseRawDataHandler::SOCKET_ERROR_UNKNOWN;
                } // END - if
 
                // Create a state instance based on $errorCode. This factory does the hard work for us