ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Networking::ConnectionManager::RequestWithCallback Struct Reference

RequestWithCallback is used by ConnectionManager to storage the Request and a callback which should be called on Request delete. More...

Collaboration diagram for Networking::ConnectionManager::RequestWithCallback:

List of all members.

Public Member Functions

 RequestWithCallback (Request *rq=nullptr, RequestCallback cb=nullptr)

Public Attributes

Requestrequest
RequestCallback onDeleteCallback

Detailed Description

RequestWithCallback is used by ConnectionManager to storage the Request and a callback which should be called on Request delete.

Usually one won't need to pass such callback, but in some cases you'd like to know whether Request is still running.

For example, Cloud::Storage is keeping track of how many Requests are running, and thus it needs to know that Request was destroyed to decrease its counter.

onDeleteCallback is called with *invalid* pointer. ConnectionManager deletes Request first and then passes the pointer to the callback. One may use the address to find it in own HashMap or Array and remove it. So, again, this pointer is for information only. One cannot use it.

Definition at line 70 of file connectionmanager.h.


Constructor & Destructor Documentation

Networking::ConnectionManager::RequestWithCallback::RequestWithCallback ( Request rq = nullptr,
RequestCallback  cb = nullptr 
) [inline]

Definition at line 74 of file connectionmanager.h.


Member Data Documentation


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


Generated on Sat Jul 20 2019 05:03:25 for ResidualVM by doxygen 1.7.1
curved edge   curved edge