#include <librets/CurlStream.h>
Public Member Functions | |
CurlStream (CurlHttpClient &httpClient) | |
This class inherits from std::stringstream and overrides the eof() and read() methods in order to work in concenrt with class CurlHttpClient and the cURL multi interface to imlement the streaming interface. | |
bool | eof () |
Determine if there is any more data. | |
std::istream & | read (char *s, std::streamsize n) |
Read a block of data from the stream. |
CurlStream | ( | CurlHttpClient & | httpClient | ) |
This class inherits from std::stringstream and overrides the eof() and read() methods in order to work in concenrt with class CurlHttpClient and the cURL multi interface to imlement the streaming interface.
httpClient | A reference to the CurlHttpClient for this call. |
bool eof | ( | ) |
Determine if there is any more data.
A side effect of this call is that the CurlHttpClient may be invoked to fetch further data from the network.
std::istream& read | ( | char * | s, | |
std::streamsize | n | |||
) |
Read a block of data from the stream.
A side effect of this call is that the CurlHttpClient may be invoked to fetch further data from the network.
s | A pointer to a buffer to which the data will be returned. | |
n | The maximum size of the buffer. |