◆ PumpMessages()
| void BuildPatchServices::FMessagePump::PumpMessages |
( |
| ) |
|
|
overridevirtual |
Dequeues received messages, pushing them to the provided handlers. NOTE: PumpMessages, RegisterMessageHandler, and UnregisterMessageHandler MUST all be called from the same thread.
Implements BuildPatchServices::IMessagePump.
◆ RegisterMessageHandler()
| void BuildPatchServices::FMessagePump::RegisterMessageHandler |
( |
FMessageHandler * |
MessageHandler | ) |
|
|
overridevirtual |
Registers a message handler.
- Parameters
-
| MessageHandler | Ptr to the message handler to add. Must not be null. NOTE: PumpMessages, RegisterMessageHandler, and UnregisterMessageHandler MUST all be called from the same thread. |
Implements BuildPatchServices::IMessagePump.
◆ SendMessage() [1/3]
◆ SendMessage() [2/3]
◆ SendMessage() [3/3]
◆ SendRequest()
Sends out a request to resolve the uri to the chunk location
- Parameters
-
| Request | Request for the chunk location |
| OnResponse | A delegate to call with the chunk location and any potential headers to add to the http request. |
Note that while this function supports asynchronous processing, the calling code does not support cancelation of the requests under abort scenarios, potentially leading to crashes. As as result, incomplete shutdown of the installation requires waiting for all outstanding requests to return before shutdown can complete. For user initiated cancellations it is recommended that you abort any async uri request handling and call OnResponse with FChunkUriResponse::bFailed to true after calling CancelInstall(). This will prevent the default URL concatenation from occuring and allow the shutdown logic to complete in a timely fashion.
For internally initiated cancellations (due to errors) there's nothing to be done; shutdown just waits for the requests to all complete.
As a result, it's highly advisable to make this as immediate as possible, e.g. caching auth tokens up front before installation launch.
Implements BuildPatchServices::IMessagePump.
◆ UnregisterMessageHandler()
| void BuildPatchServices::FMessagePump::UnregisterMessageHandler |
( |
FMessageHandler * |
MessageHandler | ) |
|
|
overridevirtual |
Unregisters a message handler.
- Parameters
-
| MessageHandler | Ptr to the message handler to remove. NOTE: PumpMessages, RegisterMessageHandler, and UnregisterMessageHandler MUST all be called from the same thread. |
Implements BuildPatchServices::IMessagePump.
The documentation for this class was generated from the following file:
- Engine/Source/Runtime/Online/BuildPatchServices/Private/Installer/MessagePump.cpp