RTC Forums
November 21, 2024, 06:08:34 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Starting a new thread from inside the server  (Read 4694 times)
thomh
RTC License+
****
Posts: 17


« on: April 29, 2021, 11:27:25 AM »

Hi,

I have a server built on the same principle as your RTC_WebServer example. For each incoming call from the client a new working thread is created. But is it possible to start such a working thread on the server itself?

Thanks,
Thom
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: April 29, 2021, 11:49:35 AM »

Sorry, but I don't understand your question. If a Client connects to a Server, a Thread will be needed on the Server to handle that Clients requests. For that purpose, every RTC Server already manages a Thread Pool (inside the Server Application), from which Threads are allocated as-needed, to handle all Clients requests. In other words, as far as I can tell, what you are asking for - is how things already work now.

Or did I misunderstand your question?

Can you please elaborate and explain with more detail, what is it exactly that you need?

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.021 seconds with 16 queries.