Exemplo n.º 1
0
 /**
  * Connection cleanup callback
  * 
  * @param integer $id The client's ID
  * 
  * @return void
  */
 function onCleanup($id)
 {
     $client = $this->clients[$id];
     $post = array("m" => $this->module, "dosql" => $this->controller, "port" => $this->port, "message" => base64_encode("TCP_Closed"), "client_addr" => $client["addr"], "client_port" => $client["port"], "suppressHeaders" => 1);
     $url = $this->call_url . "/index.php?login={$this->username}:{$this->password}";
     $this->requestHttpPost($url, $post);
     parent::onCleanup($id);
 }