/** * The open connection callback * * @param integer $id The client's ID * @param string $addr The client's IP address * @param integer $port The client's port * * @return boolean true */ function onOpen($id, $addr, $port = null) { $post = array("m" => $this->module, "dosql" => $this->controller, "port" => $this->port, "message" => base64_encode("TCP_Open"), "client_addr" => $addr, "client_port" => $port, "suppressHeaders" => 1); $url = $this->call_url . "/index.php?login={$this->username}:{$this->password}"; $this->requestHttpPost($url, $post); return parent::onOpen($id, $addr, $port); }