Lines Matching refs:fp
580 $fp = @fsockopen ( $host, $port, $errno, $errstr );
582 $fp = @fsockopen ( $host, $port, $errno, $errstr, $this->_timeout );
584 if ( !$fp )
601 if ( !$this->_Send ( $fp, pack ( "N", 1 ), 4 ) )
603 fclose ( $fp );
609 list(,$v) = unpack ( "N*", fread ( $fp, 4 ) );
613 fclose ( $fp );
618 return $fp;
622 function _GetResponse ( $fp, $client_ver ) argument
627 $header = fread ( $fp, 8 );
632 while ( $left>0 && !feof($fp) )
634 $chunk = fread ( $fp, $left );
643 fclose ( $fp );
1100 if (!( $fp = $this->_Connect() ))
1112 if ( !( $this->_Send ( $fp, $req, $len+8 ) ) ||
1113 !( $response = $this->_GetResponse ( $fp, VER_COMMAND_SEARCH ) ) )
1294 if (!( $fp = $this->_Connect() ))
1349 if ( !( $this->_Send ( $fp, $req, $len+8 ) ) ||
1350 !( $response = $this->_GetResponse ( $fp, VER_COMMAND_EXCERPT ) ) )
1398 if (!( $fp = $this->_Connect() ))
1419 if ( !( $this->_Send ( $fp, $req, $len+8 ) ) ||
1420 !( $response = $this->_GetResponse ( $fp, VER_COMMAND_KEYWORDS ) ) )
1533 if (!( $fp = $this->_Connect() ))
1538 if ( !$this->_Send ( $fp, $req, $len+8 ) )
1541 if (!( $response = $this->_GetResponse ( $fp, VER_COMMAND_UPDATE ) ))
1560 if ( !$fp = $this->_Connect() )
1565 if ( !$this->_Send ( $fp, $req, 12 ) )
1568 $this->_socket = $fp;
1593 if (!( $fp = $this->_Connect() ))
1600 if ( !( $this->_Send ( $fp, $req, 12 ) ) ||
1601 !( $response = $this->_GetResponse ( $fp, VER_COMMAND_STATUS ) ) )