ScummVM API documentation
Networking::ConnectionManager Class Reference
Inheritance diagram for Networking::ConnectionManager:
Common::Singleton< ConnectionManager > Common::NonCopyable

Public Member Functions

void registerEasyHandle (CURL *easy) const
 
RequestaddRequest (Request *request, RequestCallback callback=nullptr)
 
Common::String urlEncode (const Common::String &s) const
 

Static Public Member Functions

static uint32 getCloudRequestsPeriodInMicroseconds ()
 
static Common::String getCaCertPath ()
 
- Static Public Member Functions inherited from Common::Singleton< ConnectionManager >
static bool hasInstance ()
 
static ConnectionManager & instance ()
 
static void destroy ()
 

Friends

void connectionsThread (void *)
 

Additional Inherited Members

- Protected Types inherited from Common::Singleton< ConnectionManager >
typedef ConnectionManager SingletonBaseType
 
- Static Protected Attributes inherited from Common::Singleton< ConnectionManager >
static ConnectionManager * _singleton
 

Member Function Documentation

◆ registerEasyHandle()

void Networking::ConnectionManager::registerEasyHandle ( CURL *  easy) const

All libcurl transfers are going through this ConnectionManager. So, if you want to start any libcurl transfer, you must create an easy handle and register it using this method.

◆ addRequest()

Request* Networking::ConnectionManager::addRequest ( Request request,
RequestCallback  callback = nullptr 
)

Use this method to add new Request into manager's queue. Manager will periodically call handle() method of these Requests until they set their state to FINISHED.

If Request's state is RETRY, handleRetry() is called instead.

The passed callback would be called after Request is deleted.

Note
This method starts the timer if it's not started yet.
Returns
the same Request pointer, just as a shortcut

◆ urlEncode()

Common::String Networking::ConnectionManager::urlEncode ( const Common::String s) const

Return URL-encoded version of given string.

◆ getCaCertPath()

static Common::String Networking::ConnectionManager::getCaCertPath ( )
static

Return the path to the CA certificates bundle.


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