|
static void * | RunThread (void *data) |
|
static size_t | ReceiveCallback (void *buffer, size_t size, size_t nmemb, void *userp) |
|
static size_t | SendCallback (char *bufptr, size_t size, size_t nmemb, void *userp) |
|
Definition at line 83 of file UserReport.cpp.
CUserReporterWorker::CUserReporterWorker |
( |
const std::string & |
userID, |
|
|
const std::string & |
url |
|
) |
| |
|
inline |
CUserReporterWorker::~CUserReporterWorker |
( |
| ) |
|
|
inline |
void CUserReporterWorker::AppendEscaped |
( |
std::string & |
buffer, |
|
|
const std::string & |
str |
|
) |
| |
|
inlineprivate |
void CUserReporterWorker::ConstructRequestData |
( |
const CUserReport & |
report | ) |
|
|
inlineprivate |
bool CUserReporterWorker::GetEnabled |
( |
| ) |
|
|
inlineprivate |
bool CUserReporterWorker::GetShutdown |
( |
| ) |
|
|
inlineprivate |
std::string CUserReporterWorker::GetStatus |
( |
| ) |
|
|
inline |
Called by main thread to determine the current status of the uploader.
Definition at line 194 of file UserReport.cpp.
bool CUserReporterWorker::ProcessReport |
( |
| ) |
|
|
inlineprivate |
static size_t CUserReporterWorker::ReceiveCallback |
( |
void * |
buffer, |
|
|
size_t |
size, |
|
|
size_t |
nmemb, |
|
|
void * |
userp |
|
) |
| |
|
inlinestaticprivate |
void CUserReporterWorker::Run |
( |
| ) |
|
|
inlineprivate |
static void* CUserReporterWorker::RunThread |
( |
void * |
data | ) |
|
|
inlinestaticprivate |
static size_t CUserReporterWorker::SendCallback |
( |
char * |
bufptr, |
|
|
size_t |
size, |
|
|
size_t |
nmemb, |
|
|
void * |
userp |
|
) |
| |
|
inlinestaticprivate |
void CUserReporterWorker::SetEnabled |
( |
bool |
enabled | ) |
|
|
inline |
Called by main thread, when the online reporting is enabled/disabled.
Definition at line 155 of file UserReport.cpp.
void CUserReporterWorker::SetStatus |
( |
const std::string & |
status | ) |
|
|
inlineprivate |
bool CUserReporterWorker::Shutdown |
( |
void |
| ) |
|
|
inline |
Called by main thread to request shutdown.
Returns true if we've shut down successfully. Returns false if shutdown is taking too long (we might be blocked on a sync network operation) - you mustn't destroy this object, just leak it and terminate.
Definition at line 174 of file UserReport.cpp.
void CUserReporterWorker::Submit |
( |
const shared_ptr< CUserReport > & |
report | ) |
|
|
inline |
Called by main thread to add a new report to the queue.
Definition at line 203 of file UserReport.cpp.
void CUserReporterWorker::Update |
( |
| ) |
|
|
inline |
Called by the main thread every frame, so we can check retransmission timers.
Definition at line 218 of file UserReport.cpp.
CURL* CUserReporterWorker::m_Curl |
|
private |
bool CUserReporterWorker::m_Enabled |
|
private |
char CUserReporterWorker::m_ErrorBuffer[CURL_ERROR_SIZE] |
|
private |
curl_slist* CUserReporterWorker::m_Headers |
|
private |
double CUserReporterWorker::m_LastUpdateTime |
|
private |
double CUserReporterWorker::m_PauseUntilTime |
|
private |
std::deque<shared_ptr<CUserReport> > CUserReporterWorker::m_ReportQueue |
|
private |
std::string CUserReporterWorker::m_RequestData |
|
private |
size_t CUserReporterWorker::m_RequestDataOffset |
|
private |
std::string CUserReporterWorker::m_ResponseData |
|
private |
bool CUserReporterWorker::m_Shutdown |
|
private |
std::string CUserReporterWorker::m_Status |
|
private |
std::string CUserReporterWorker::m_URL |
|
private |
std::string CUserReporterWorker::m_UserID |
|
private |
CMutex CUserReporterWorker::m_WorkerMutex |
|
private |
SDL_sem* CUserReporterWorker::m_WorkerSem |
|
private |
pthread_t CUserReporterWorker::m_WorkerThread |
|
private |
The documentation for this class was generated from the following file: