Go to the documentation of this file.
20 #ifndef NETWORK_ADAPTER_H
21 #define NETWORK_ADAPTER_H
42 typedef std::map<std::string, std::string, StringNoCaseLessThan>
51 const std::string&
url,
const std::string& cachefile);
62 const std::string&
url,
const std::string& postdata,
63 const std::string& cachefile);
76 const std::string& cachefile);
89 return (
names.find(headerName) ==
names.end());
97 NetworkAdapter::CookiesIn = cookiesin;
105 return NetworkAdapter::CookiesIn;
119 #endif // CURL_ADAPTER_H
void log_debug(StringType msg, Args... args)
Definition: log.h:301
#define _(String)
Definition: log.h:44
static void setCookiesIn(const std::string &cookiesin)
Set CookiesIn variable to cookiefile path.
Definition: NetworkAdapter.h:96
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
std::set< std::string, StringNoCaseLessThan > ReservedNames
Definition: NetworkAdapter.h:79
static DSOEXPORT bool isHeaderAllowed(const std::string &headerName)
Check whether a RequestHeader is permitted.
Definition: NetworkAdapter.h:86
#define UNUSED(x)
Definition: utility.h:113
void log_error(StringType msg, Args... args)
Definition: log.h:283
static const std::string & getCookiesIn()
Get CookiesIn variable, cookiefile path.
Definition: NetworkAdapter.h:104
code
Definition: GnashKey.h:44
T * get(as_object *o)
Extract the DisplayObject attached to an object.
Definition: as_object.h:842
Code to use libcurl as an IOChannel stream.
Definition: NetworkAdapter.h:35
char ** names[EV_MAX+1]
Definition: evtest.c:357
void gnashSleep(time_t useconds)
Sleep compatibly for the specified number of microseconds.
Definition: GnashSleep.h:35
std::string url
Definition: gnash.cpp:59
static RcInitFile & getDefaultInstance()
Return the default instance of RC file.
Definition: rc.cpp:61
void log_security(StringType msg, Args... args)
Definition: log.h:319
#define VERSION
Definition: gnashconfig.h:731
#define DSOEXPORT
Definition: dsodefs.h:55
std::map< std::string, std::string, StringNoCaseLessThan > RequestHeaders
Definition: NetworkAdapter.h:43
static DSOEXPORT std::unique_ptr< IOChannel > makeStream(const std::string &url, const std::string &cachefile)
Returns a read-only IOChannel that fetches data from an url.
Definition: NetworkAdapter.cpp:47
double getStreamsTimeout() const
The number of seconds of inactivity before timing out streams downloads.
Definition: rc.h:229
SimpleBuffer data
Definition: LocalConnection_as.cpp:151