Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Apr : Delphi 7 & Indy 10 TidCmdTCPServer OnCommand Event

www.cryer.info
Managed Newsgroup Archive

Delphi 7 & Indy 10 TidCmdTCPServer OnCommand Event

Subject:Delphi 7 & Indy 10 TidCmdTCPServer OnCommand Event
Posted by:"Codeman II" (thegentlem..@webmail.co.za)
Date:Wed, 11 Apr 2007 11:57:18

Hi Everyone,

My application consist of a client and server module.
I have a TidCmdTCPServer & TidTCPClient component on the server and on the
client.
The clients send commands to the server module and then the server processes
the command where after it broadcasts the command to the rest of the
clients.

1. The server & all clients hang whenever 2 or more clients send the same
command
    simultaneously to the server.

2. I am not really familiar with the design of the Indy (TidCmdTCPServer
etc) and how it handles the OnCommand event.
    Does Indy create threads for each OnCommand. And how do you update VCL
components in the OnCommand?
    Thread safe...

Please help.

Thanks.

Replies:

www.cryer.info
Managed Newsgroup Archive