Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Apr : Re: Delphi 7 & Indy 10 TidCmdTCPServer OnCommand Event
| Subject: | Re: Delphi 7 & Indy 10 TidCmdTCPServer OnCommand Event |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Fri, 13 Apr 2007 10:30:38 |
"Codeman II" <thegentleman@webmail.co.za> wrote in message
news:461f9dd4@newsgroups.borland.com...
> - While the Client is running I only need to Send my commands
> when necessary with TidTCPClient.SendCmd() without
> having to connect again ???
Yes. That includes the SendCmd() for keepalives.
> - When Client app closes then only I SendCmd('Quit') and
> this CommandHandler does a Disconnect() on the connection ???
Don't forget to call Disconnect() on the client side after sending
QUIT. Both sides have to close their respective half of the
connection.
Gambit
none