Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Apr : Simple Indy event question

www.cryer.info
Managed Newsgroup Archive

Simple Indy event question

Subject:Simple Indy event question
Posted by:"IanH" (none@nospam.com)
Date:11 Apr 2006 04:58:55

Hi,

I am using D5 + Indy 9, and trying to understand the in's and out's of
the threading issues involved (previous projects have only involved
limited use of my own task-specific threads). I have read the Threads
section of Indy In Depth, and have a couple of questions.

If I create a UDP (or TCP) server in my main program thread, and attach
an OnUDPRead or similar event, is the event automatically processed in
the main thread?

If I created the server in a separate thread, would the event be
executed by that thread?

My understanding is that in both cases the answer is yes, but I want to
make sure before I go any further.

Please feel free to mention any decent online resources I should be
looking at.

TIA

Ian

Replies:

www.cryer.info
Managed Newsgroup Archive