RTC Forums
November 24, 2024, 06:50:54 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Call a function in a QuickJob  (Read 4278 times)
ISIGest
RTC Expired
*
Posts: 121


« on: April 27, 2015, 12:54:33 PM »

Can I call a functon in a quickjob execute event?
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: April 27, 2015, 01:47:59 PM »

You can do anything you want in a TRtcQuickJob OnExecute event, as long as your code is thread-safe, because these events will be executed from background threads. If the TRtcQuickJob component is used on the Server and you need to call a remote function on that same Server, you can do it by using the CallFunction or the ExecuteData method on the TRtcFunctionGoup component. The same methods are used by the TRtcServerModule component to execute remote functions received from Clients, as well as from the RTC Scripting Engine when calling remote functions from within RTC Scripts.

Best Regards,
Danijel Tkalcec
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.023 seconds with 17 queries.