The network transfer agent (wrapper for libcurl).
More...
#include <Agent.h>
The network transfer agent (wrapper for libcurl).
- Author
- Michael Imamura
Agent::Agent |
( |
const std::string & |
url = "" | ) |
|
void Agent::Get |
( |
std::string & |
buf, |
|
|
std::shared_ptr< CancelFlag > |
cancelFlag = {} |
|
) |
| |
Easy URL retrieval to a string.
This method blocks until the transfer is complete.
- Parameters
-
buf | The string to store to. |
cancelFlag | Optional control to check for cancellation (may be NULL ). |
void Agent::Get |
( |
std::ostream & |
buf, |
|
|
std::shared_ptr< CancelFlag > |
cancelFlag = {} |
|
) |
| |
Easy URL retrieval to a stream.
This method blocks until the transfer is complete.
- Parameters
-
buf | The stream to write to. |
cancelFlag | Optional control to check for cancellation (may be NULL ). |
const std::string& HoverRace::Net::Agent::GetUrl |
( |
| ) |
const |
|
inline |
void Agent::SetUrl |
( |
const std::string & |
url | ) |
|
std::string HoverRace::Net::Agent::url |
|
private |
The documentation for this class was generated from the following files: