1 #ifndef HAVE_URL_STREAM_H
2 #define HAVE_URL_STREAM_H 1
11 #include <curl/curl.h>
30 URL_MODE_READ, URL_MODE_WRITE
45 static size_t read_callback(
void *ptr,
size_t size,
size_t nmemb,
void *device);
46 static size_t write_callback(
void *ptr,
size_t size,
size_t nmemm,
void *device);
185 ~
url_ostream() { rdbuf()->pubsync();
delete rdbuf(); };
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in c...
Definition: http_client.cpp:23
Base class for Boost Device implementations allowing to access local (file://) and remote (ftp://...
Definition: URLStream.hpp:41
int buffer_size
allocated buffer size
Definition: URLStream.hpp:65
char * buffer
internal buffer for storing data from last read
Definition: URLStream.hpp:64
A Boost Device implementation allowing read access to local and remote URLs.
Definition: URLStream.hpp:113
bool waiting
indicate if the device is still waiting for more data
Definition: URLStream.hpp:69
void loop()
loop to fetch/send more data
Definition: URLStream.cpp:272
Main type for opening an output stream to an URL for writing.
Definition: URLStream.hpp:179
A Boost Device implementation allowing write access to local and remote URLs.
Definition: URLStream.hpp:144
virtual ~URLStreambufBase()
Clean up resources occupied by device, e.g.
Definition: URLStream.cpp:247
char * buffer_position
cURL position in buffer (when sending/receiving data)
Definition: URLStream.hpp:66
bool finishing
indicate if device is already finishing transfer (i.e. no more reads/writes)
Definition: URLStream.hpp:68
URLStreambufBase(const char *url, URLMode mode, int bufsize)
Open URL device using the given URL and flags.
Definition: URLStream.cpp:163
Definition: URLStream.hpp:50
Main type for opening an input stream to an URL for reading.
Definition: URLStream.hpp:193