classes/Swift/AWSTransport.php
/**
		 * Read the socket for a response
		 */
Read the socket for a response
Read the socket for a response
public function read () {
			if( ! $this->write_finished ) { $this->finishWrite(); }
			$this->read_started = true;
			$response = new AWSResponse();
			while( ! feof( $this->socket ) ) {
				$line = fgets( $this->socket );
				if( AWSResponse::EOF == $response->line( $line ) ) {
					break;
				}
			}
			$response->complete();
			return $response;
		}
public function read ( ) { if ( ! $ this -> write_finished ) { $ this -> finishWrite ( ) ; } $ this -> read_started = true ; $ response = new AWSResponse ( ) ; while ( ! feof ( $ this -> socket ) ) { $ line = fgets ( $ this -> socket ) ; if ( AWSResponse :: EOF == $ response -> line ( $ line ) ) { break ; } } $ response -> complete ( ) ; return $ response ; }
Read the socket for a response
Read the socket for a response