Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Apr : Re: Indy10 / D2006 / IdCmdTCPClient / IdCmdTCPServer

www.cryer.info
Managed Newsgroup Archive

Re: Indy10 / D2006 / IdCmdTCPClient / IdCmdTCPServer

Subject:Re: Indy10 / D2006 / IdCmdTCPClient / IdCmdTCPServer
Posted by:"Guillem" (guillemvicens-nospam@clubgreenoasis.com)
Date:7 Apr 2006 06:16:41

Mark Gebauer wrote:


>
> I've found the hint in this newsgroup to use IdTCPClient instead, and
> it works now okay for the client => server direction. Can somebody
> please help me to understand why this code doesn't work with
> IdCmdTCPClient? Or are IdCmdTCPClient/IdCmdTCPServer not able to send
> commands?
>

idCmdTCPClient is a component designed to *wait* for commands, not to
send them. It freezes because it is waiting for the next command.

As stated by Gamit in another post:

"TIdCmdTCPClient runs an internal thread that continuously reads
incoming commands being sent by the server.  TIdCmdTCPServer does not
ever send commands to clients, though.  Neither does TIdTCPServer by
default, though the user's code in the OnExecute event of TIdTCPServer
can."


--
Best regards :)

Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive