Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Nov : Re: tidTCPClient/Server - problem transfering data.
| Subject: | Re: tidTCPClient/Server - problem transfering data. |
| Posted by: | "Arvid Haugen" (arv..@elis.no) |
| Date: | Fri, 23 Nov 2007 11:10:04 |
A little followup question.
I want to make a code that in case I do not get a correct response to my
send command I will clear whatever is in the input buffer.
In case the response from the server is som non-numeric data the "SendCmd"
will throw an exception. I then want to clear whatever is in the buffer. I
know that the code below work - but is this the correct way to do this - or
is the inputbuffer also only for Indy internal use?
try
outResponse := IdTCPClient1.SendCmd('100 Test', [101]);
except
IdTCPClient1.IOHandler.InputBuffer.Clear;
end;
Is there any documentation explaining what functions can be used - and which
ones should not be used?