Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jun : TidUDPServer question
| Subject: | TidUDPServer question |
| Posted by: | "Richard Bibby" (richard.bib..@profdoc.se) |
| Date: | Fri, 2 Jun 2006 11:27:31 |
Hej,
I am writting a service application that recieves messages, processes them,
and sends a response.
I am using a TidUDPServer to handle the incoming messages. Then I start a
thread to actually process the message. Each thread will then send a
response back to the originator of the message.
My question is will I have a problem when trying to send messages in my
threads? I can end up in the situtuation that more than one will try to
respond at the same time. I was thinking that each thread would create an
instance of TidUDPServer to Send the data. Am I going to run into trouble
because sooner or later two or more TidUDPServer components will be
reading/writing to the same port? Should I route all my transmissions
through a since thread so as to avoid any concurrency problems?
Any help or advice would be much appreciated.
/Richard