Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Jan : Re: Open a TCP Socket
| Subject: | Re: Open a TCP Socket |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Tue, 29 Jan 2008 10:02:31 |
"Kim Jensen" <kim@comcasystems.com> wrote in message
news:479e8aac$1@newsgroups.borland.com...
> I can not find the procedure in TIdTCPClient for the above procedures.
What version of Indy are you using? The methods I mentioned earlier are
declared in TIdTCPConnection (which TIdTCPClient derives from) in Indy 9 and
earlier, and in TIdIOHandler in Indy 10.
> I noticed a Property called IOHandel do I need to add TIdIOHandlerStream?
No. TIdTCPClient.Connect() will initialize the IOHandler property
automatically if it is not already assigned. Even if you want to assign it
yourself (which is certainly allowed), TIdIOHandlerStream would be the wrong
component to use. For TCP support, you would have to use TIdIOHandlerSocket
(Indy 9 and earlier) or TIdIOHandlerStack (Indy 10) instead.
> The controller should respons with ? if I send a wrong command.
But in what format exactly? What is the actual protocol structure that you
are trying to implement?
Gambit