Beispiel #1
0
 /**
  * Connect to pushup
  *
  * @throws SC_Pushup_Exception
  */
 public function connect()
 {
     // check connection
     if (!$this->TcpClient->isOpen()) {
         $this->TcpClient->connect($this->host, $this->port);
     }
     // log in
     if ($this->loggedIn === false) {
         if ($this->backendPassword === null) {
             throw new SC_Pushup_Exception('no backend password set');
         }
         // set logged in status and send password
         $this->loggedIn = true;
         $this->command(array($this->backendPassword));
     }
 }