Lines Matching refs:fp
553 $fp = @fsockopen($host, $port, $errno, $errstr);
555 $fp = @fsockopen($host, $port, $errno, $errstr, $this->_timeout);
557 if (!$fp) {
573 if (!$this->_Send($fp, pack("N", 1), 4)) {
574 fclose($fp);
580 list(, $v) = unpack("N*", fread($fp, 4));
583 fclose($fp);
588 return $fp;
592 function _GetResponse($fp, $client_ver) argument
597 $header = fread($fp, 8);
601 while ($left > 0 && !feof($fp)) {
602 $chunk = fread($fp, $left);
610 fclose($fp);
1062 if (!($fp = $this->_Connect())) {
1074 !($this->_Send($fp, $req, $len + 8)) ||
1075 !($response = $this->_GetResponse($fp, VER_COMMAND_SEARCH))
1263 if (!($fp = $this->_Connect())) {
1317 !($this->_Send($fp, $req, $len + 8)) ||
1318 !($response = $this->_GetResponse($fp, VER_COMMAND_EXCERPT))
1364 if (!($fp = $this->_Connect())) {
1385 !($this->_Send($fp, $req, $len + 8)) ||
1386 !($response = $this->_GetResponse($fp, VER_COMMAND_KEYWORDS))
1492 if (!($fp = $this->_Connect()))
1497 if (!$this->_Send($fp, $req, $len + 8))
1500 if (!($response = $this->_GetResponse($fp, VER_COMMAND_UPDATE)))
1518 if (!$fp = $this->_Connect())
1523 if (!$this->_Send($fp, $req, 12))
1526 $this->_socket = $fp;
1550 if (!($fp = $this->_Connect())) {
1557 !($this->_Send($fp, $req, 12)) ||
1558 !($response = $this->_GetResponse($fp, VER_COMMAND_STATUS))