Official Murl Engine Forum
IUrlRequest in MessageThread - Printable Version

+- Official Murl Engine Forum (https://murlengine.com/forum)
+-- Forum: Murl Engine (https://murlengine.com/forum/forumdisplay.php?fid=5)
+--- Forum: General (https://murlengine.com/forum/forumdisplay.php?fid=8)
+--- Thread: IUrlRequest in MessageThread (/showthread.php?tid=552)



IUrlRequest in MessageThread - BregoXX - 20 May 2019

Is it allowed to use urlRequest object in message thread?
It is required to check every frame url request status with WasFinished() or WasRejected().
How is it correct to use url request inside message thread?


RE: IUrlRequest in MessageThread - Ketschak - 20 May 2019

(20 May 2019, 11:31)BregoXX Wrote: Is it allowed to use urlRequest object in message thread?
It is required to check every frame url request status with WasFinished() or WasRejected().
How is it correct to use url request inside message thread?

UrlRequest should be used from the logic thread. The medods WasFinished() and WasRejected() should be checked every tick in the OnProcessTick() or OnFinishTick() method of the logic processor.


RE: IUrlRequest in MessageThread - BregoXX - 22 May 2019

(20 May 2019, 12:57)Ketschak Wrote:
(20 May 2019, 11:31)BregoXX Wrote: Is it allowed to use urlRequest object in message thread?
It is required to check every frame url request status with WasFinished() or WasRejected().
How is it correct to use url request inside message thread?

UrlRequest should be used from the logic thread. The medods WasFinished() and WasRejected() should be checked every tick in the OnProcessTick() or OnFinishTick() method of the logic processor.
Ok.thanks.