RTC Forums
November 24, 2024, 04:07:40 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: function executed in thread  (Read 5324 times)
mteirek
RTC Expired
*
Posts: 9


« on: June 19, 2015, 05:58:50 PM »

i use rtc-server-multithreaded=true
i think in mutithreaded server -> server send 1 thread by connection.


i plan to build some functions to be executed in the rtc-server-thread.
where i can put those functions ??

Logged
mteirek
RTC Expired
*
Posts: 9


« Reply #1 on: June 19, 2015, 07:57:44 PM »

maybe if i put all those functions in one class. Then i create and destroy this class in
TRtcdataprovider.onDataReceived  Event.
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #2 on: June 21, 2015, 05:02:57 PM »

Where are those remote functions implemented? Are they implemented in the Server which needs to call these functions (so they could also be called locally), or are these functions on a different Server (so they need to be called remotely)?

Best Regards,
Danijel Tkalcec
Logged
mteirek
RTC Expired
*
Posts: 9


« Reply #3 on: June 21, 2015, 07:30:27 PM »

those functions are implemented in the server and called locally and executed locally in the server.
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #4 on: June 21, 2015, 08:44:50 PM »

You can execute functions locally on the Server by using the CallFunction or ExecuteData method on the TRtcFunctionGroup component.

Best Regards,
Danijel Tkalcec
Logged
mteirek
RTC Expired
*
Posts: 9


« Reply #5 on: June 22, 2015, 03:07:00 PM »

thanks for your help.
i will try it
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.024 seconds with 16 queries.