10-23-2024, 07:48 PM
(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.