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

www.cryer.info
Managed Newsgroup Archive

Re: Delphi 7 & Indy 10 TidCmdTCPServer OnCommand Event

Subject:Re: Delphi 7 & Indy 10 TidCmdTCPServer OnCommand Event
Posted by:"Codeman II" (thegentlem..@webmail.co.za)
Date:Fri, 13 Apr 2007 17:20:03

Sorry I would also like to get clarity on when to connect, disconnect
etc....

For example, if I would like to keep the connection open until the client
closes then I would be doing the following:

- On Client Startup - TidTCPClient.Connect (connect only once to the
TidCmdTCPServer) ???

- While the Client is running I only need to Send my commands when necessary
with TidTCPClient.SendCmd() without
   having to connect again ???

- When Client app closes then only I SendCmd('Quit') and this CommandHandler
does a Disconnect() on the connection ???

Is this correct?


Thanks in advance!

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive