original_string: public function send()
      {
          $this->response = '';
          
          $fs = fsockopen($this->host, $this->port, $this->errorNumber, $this->errorString, 3);
          
          if ($this->errorNumber != 0) {
              throw new Exception('Error connecting to host: ' . $this->host . ' Error number: ' . $this->errorNumber . ' Error message: ' . $this->errorString);
          }
          
          if ($fs !== false) {
              @fwrite($fs, $this->request);
              
              while (!feof($fs)) {
                  $this->response .= fgets($fs, $this->responseLength);
              }
              
              fclose($fs);
          }
      }
code: public function send()
      {
          $this->response = '';
          
          $fs = fsockopen($this->host, $this->port, $this->errorNumber, $this->errorString, 3);
          
          if ($this->errorNumber != 0) {
              throw new Exception('Error connecting to host: ' . $this->host . ' Error number: ' . $this->errorNumber . ' Error message: ' . $this->errorString);
          }
          
          if ($fs !== false) {
              @fwrite($fs, $this->request);
              
              while (!feof($fs)) {
                  $this->response .= fgets($fs, $this->responseLength);
              }
              
              fclose($fs);
          }
      }
code_tokens: public function send ( ) { $ this -> response = '' ; $ fs = fsockopen ( $ this -> host , $ this -> port , $ this -> errorNumber , $ this -> errorString , 3 ) ; if ( $ this -> errorNumber != 0 ) { throw new Exception ( 'Error connecting to host: ' . $ this -> host . ' Error number: ' . $ this -> errorNumber . ' Error message: ' . $ this -> errorString ) ; } if ( $ fs !== false ) { @ fwrite ( $ fs , $ this -> request ) ; while ( ! feof ( $ fs ) ) { $ this -> response .= fgets ( $ fs , $ this -> responseLength ) ; } fclose ( $ fs ) ; } }
docstring: Sends the data to the remote host.
  
  @throws	An exception is thrown if a connection cannot be made to the remote host.
docstring_tokens: Sends the data to the remote host .