|
crawlserv++
[under development]
Application for crawling and analyzing textual content of websites.
|
Classes | |
| struct | State |
| Stores content and status of a FTP upload. More... | |
Functions | |
| void | write (const std::string &content, const std::string &url, const std::string &proxy=std::string{}, bool verbose=false) |
Writes data into a FTP file using the libcurl library. More... | |
| std::size_t | read (char *bufptr, std::size_t size, std::size_t nitems, void *userp) |
| Custom reader function for FTP transfers. More... | |
| void | check (CURLcode code) |
Checks the result of a libcurl operation and throws an exception if an error occured. More... | |
|
inline |
Checks the result of a libcurl operation and throws an exception if an error occured.
| code | The result code from to be checked. |
Referenced by write().
|
inline |
Custom reader function for FTP transfers.
| bufptr | Pointer to the buffer to write to. |
| size | Size of each item to be written. |
| nitems | Number of items to be written. |
| userp | Pointer to the state of the FTP operation. |
References crawlservpp::Network::FTPUpload::State::size.
Referenced by write().
|
inline |
Writes data into a FTP file using the libcurl library.
| content | Constant reference to the content that should be written to the new file. |
| url | Constant reference to a string containing the URL including protocol. If the FTP server requires authentification, it needs to be included into the URL as follows: ftp[s]://username:password@example.com |
| proxy | Constant reference to a string containing the URL of the proxy server to be used. If the string is empty, no proxy server will be used. |
References check(), crawlservpp::Network::FTPUpload::State::content, crawlservpp::Wrapper::Curl::get(), read(), crawlservpp::Network::FTPUpload::State::size, and crawlservpp::Wrapper::Curl::valid().
Referenced by crawlservpp::Module::Analyzer::Thread::uploadResult().