Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can I run TIdTCPServer inside a Context/Thread?
#4
(10-23-2024, 07:42 PM)Justin Case Wrote: By thread safe, do you mean as a normal server would? - code in the event handlers from the Object Inspector or is there another technique I need to use?

What I mean is, any data being shared inside the events across thread boundaries must be properly synchronized, etc.

(10-23-2024, 07:42 PM)Justin Case Wrote: I'm assuming that inside the worker thread, a created server would then create its own threads inside that thread?

Yes. Indy servers create a thread for each Binding they are listening on, and in the case of TIdTCPServer, also a thread for each client that is accepted.

Reply


Messages In This Thread
RE: Can I run TIdTCPServer inside a Context/Thread? - by rlebeau - 10-23-2024, 07:48 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)