function __construct($verb=FALSE,
$le=FALSE
) { parent::
__construct(false,
$verb,
$le);
}// <!-- --------------------------------------------------------------------------------------- -->
// <!-- Private functions -->
// <!-- --------------------------------------------------------------------------------------- -->
function _settimeout($sock) { if(!@
stream_set_timeout($sock,
$this->_timeout
)) { $this->
PushError('_settimeout','socket set send timeout'
);
$this->
_quit();
return FALSE;
} return TRUE;
} function _connect($host,
$port) { $this->
SendMSG("Creating socket"
);
$sock = @
fsockopen($host,
$port,
$errno,
$errstr,
$this->_timeout
);
if (!
$sock) { $this->
PushError('_connect','socket connect failed',
$errstr." (".
$errno.")"
);
return FALSE;
}