|
NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
Classes | |
| class | Error |
| A class for URL exceptions. More... | |
Functions | |
| static size_t | writer (char *data, size_t size, size_t nmemb, std::string *writerData) |
| libcurl write callback function. More... | |
| static size_t | reader (char *ptr, size_t size, size_t nmemb, void *stream) |
| libcurl read callback function. More... | |
| static CURL * | common_init (const std::string &sUrl, const std::string &sUserName, const std::string &sPassWord) |
| Perform common CURL initialization. More... | |
| static CURL * | get_init (const std::string &sUrl, const std::string &sUserName, const std::string &sPassWord, std::string *buffer) |
| libcurl get connection initialization. More... | |
| static CURL * | put_init (const std::string &sUrl, const std::string &sUserName, const std::string &sPassWord, std::ifstream *filestream, size_t filesize) |
| libcurl put connection initialization. More... | |
| std::string | get (const std::string &sUrl, const std::string &sUserName, const std::string &sPassWord) |
| Get the contents of a URL. More... | |
| size_t | put (const std::string &sUrl, const std::string &sFileName, const std::string &sUserName, const std::string &sPassWord) |
| Upload a file to a destination and return the transmitted bytes. More... | |
Variables | |
| static char | errorBuffer [CURL_ERROR_SIZE] |
| libcurl variable for error strings. More... | |
|
static |
Perform common CURL initialization.
| sUrl | const std::string& |
| sUserName | const std::string& |
| sPassWord | const std::string& |
Definition at line 88 of file http.cpp.
References errorBuffer.
Referenced by get_init(), and put_init().
| std::string url::get | ( | const std::string & | sUrl, |
| const std::string & | sUserName, | ||
| const std::string & | sPassWord | ||
| ) |
Get the contents of a URL.
| sUrl | const std::string& |
| sUserName | const std::string& |
| sPassWord | const std::string& |
| http::Error |
Definition at line 251 of file http.cpp.
References errorBuffer, and get_init().
Referenced by Memory::convert(), Memory::convertColumns(), PackageRepoBrowser::getFileFromRepo(), PackageRepoBrowser::getRepoList(), PackageRepoBrowser::populatePackageList(), Memory::setCategories(), and urlExecute().
|
static |
libcurl get connection initialization.
| conn | CURL*& |
| sUrl | const std::string& |
| sUserName | const std::string& |
| sPassWord | const std::string& |
| buffer | std::string* |
| http::Error |
Definition at line 168 of file http.cpp.
References common_init(), errorBuffer, and writer().
Referenced by get().
| size_t url::put | ( | const std::string & | sUrl, |
| const std::string & | sFileName, | ||
| const std::string & | sUserName, | ||
| const std::string & | sPassWord | ||
| ) |
Upload a file to a destination and return the transmitted bytes.
| sUrl | const std::string& |
| sFileName | const std::string& |
| sUserName | const std::string& |
| sPassWord | const std::string& |
Definition at line 286 of file http.cpp.
References errorBuffer, and put_init().
Referenced by urlExecute().
|
static |
libcurl put connection initialization.
| sUrl | const std::string& |
| sUserName | const std::string& |
| sPassWord | const std::string& |
| filestream | std::ifstream* |
| filesize | size_t |
| http::Error |
Definition at line 207 of file http.cpp.
References common_init(), errorBuffer, and reader().
Referenced by put().
|
static |
libcurl read callback function.
| ptr | char* |
| size | size_t |
| nmemb | size_t |
| stream | void* |
Definition at line 71 of file http.cpp.
Referenced by put_init().
|
static |
libcurl write callback function.
| data | char* |
| size | size_t |
| nmemb | size_t |
| writerData | std::string* |
Definition at line 50 of file http.cpp.
Referenced by get_init().
|
static |
libcurl variable for error strings.
Definition at line 37 of file http.cpp.
Referenced by common_init(), get(), get_init(), put(), and put_init().