*/
public final function handleSocketError ($method, $line, StorableSocket $socketInstance, array $socketData) {
// Trace message
- /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('HUB-SYSTEM: CALLED!');
+ /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('HUB-SYSTEM: Handling socket errorCode=%d - CALLED!', $socketInstance->getLastSocketError()));
// This method handles only socket resources
if (!$socketInstance->isValidSocket()) {
assert(isset($socketData[1]));
// Get error code for first validation (0 is not an error)
- $errorCode = $socketInstance->getSocketLastError();
+ $errorCode = $socketInstance->getLastSocketError();
// If the error code is zero, someone called this method without an error
if ($errorCode == 0) {
/* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('SOCKET-DISCOVERY: socketInstance[]=%s', gettype($socketInstance)));
// Is it FALSE, the recipient isn't known to us and we have no connection to it
- if (($socketInstance instanceof StorableSocket) || (!$socketInstance->isValidSocket()) || ($socketInstance->getSocketLastError() > 0)) {
+ if (($socketInstance instanceof StorableSocket) || (!$socketInstance->isValidSocket()) || ($socketInstance->getLastSocketError() > 0)) {
// Try to create a new socket resource
try {
// Possibly noisy debug message
} // END - if
// Get socket error code for verification
- $socketError = $socketInstance->getSocketLastError();
+ $socketError = $socketInstance->getLastSocketError();
// Check if there was an error else
if ($socketError > 0) {
*/
protected function socketErrorPermissionDeniedHandler (StorableSocket $socketInstance, array $socketData) {
// Get socket error code for verification
- $socketError = $socketInstance->getSocketLastError();
+ $socketError = $socketInstance->getLastSocketError();
// Get error message
- $errorMessage = $socketInstance->getSocketLastErrorMessage();
+ $errorMessage = $socketInstance->getLastSocketErrorMessage();
// Shutdown this socket
$socketInstance->shutdownSocket();