Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Mar : Re: INDY TIdTCPClient and TIdTCPServer Usage
| Subject: | Re: INDY TIdTCPClient and TIdTCPServer Usage |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Tue, 21 Mar 2006 11:33:35 |
"Dennis" <marianndkc@home3.gvdnet.dk> wrote in message
news:442045da$1@newsgroups.borland.com...
> Why does this not work?
Just saying it doesn't work says nothing about the actual problem you are
having. Always provide specific details. What exactly is happening?
> IdTCPClient1.SendCmd('Hello', -1);
>
> -1 means accept any answer.
If you want SendCmd() to accept any response code, then omit that parameter
completely:
Response := IdTCPClient1.SendCmd('Hello');
Gambit