CloudBuilder C++ SDK  v3.0.0
Making social games is easy !
Public Member Functions | Friends | List of all members
CloudBuilder::CHttpFailureEventArgs Struct Reference

Public Member Functions

void Abort ()
 
void RetryIn (int milliseconds)
 
void SetUserData (intptr_t data, bool releaseAtTheEnd)
 
const char * Url ()
 
intptr_t UserData ()
 

Friends

class RequestDispatcher
 

Member Function Documentation

◆ Abort()

void CloudBuilder::CHttpFailureEventArgs::Abort ( )
inline

Call this to abort the request. It won't be tried ever again.

◆ RetryIn()

void CloudBuilder::CHttpFailureEventArgs::RetryIn ( int  milliseconds)
inline

Call this to retry the request later.

Parameters
millisecondstime in which to try again. No other request will be executed during this time (they will be queued) as to respect the issuing order. Please keep this in mind when setting a high delay.

◆ SetUserData()

void CloudBuilder::CHttpFailureEventArgs::SetUserData ( intptr_t  data,
bool  releaseAtTheEnd 
)
inline

Set a pointer to user data. You can call this from the callback; in case the request fails again, this data will be set to the same value as set last time. It is always set to NULL when the request fails for the first time.

Parameters
datapointer to be set
releaseAtTheEndwhether to automatically free the memory (call C++ delete on the pointer)

◆ Url()

const char* CloudBuilder::CHttpFailureEventArgs::Url ( )
inline
Returns
the original URL that the request failed to reach

◆ UserData()

intptr_t CloudBuilder::CHttpFailureEventArgs::UserData ( )
inline

You can set this member from the callback; in case the request fails again, this data will be set to the same value as set last time. It is always set to NULL when the request fails for the first time.

Returns
the user data as set previously

The documentation for this struct was generated from the following file: