Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Feb : Re: OnWork does not fire in Indy10 Delphi 2007
| Subject: | Re: OnWork does not fire in Indy10 Delphi 2007 |
| Posted by: | "Moore" (moo..@hotmail.com) |
| Date: | 13 Feb 2008 02:11:51 |
I am grateful for the response, but i would be more grateful with an example or a link because i cannot manage to it,
i have a cmdtcpclient and a tcpserver, i create a command called 'hello' and in its event OnCommand a shoemessage('cmd received'), i connect to the tcpserver with the connect method,
in the server i put this in the OnConnect event:
AContext.Connection.SendCmd('greet');
but the client hangs in the button click that contains the connect method, and no message box appears !
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote:
>None. The waiting is performed internally for you. All you have to do is
>add entries to the TIdCmdTCPClient's CommandHandlers collection for the
>desired commands.