public function __construct() { try { $this->telnet = TelnetConnector::getInstance('127.0.0.1', 8990, 'jcliadmin', 'jclipwd'); } catch (Exception $e) { echo 'Telnet connection failed :' . $e->getMessage(); return false; } return true; }
/** * Flashes the table of the object * @return string */ public function flush() { $result = $this->connector->doCommand($this->command . ' -f'); return $result; }