Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Nov : Packet is splitting in telnet
| Subject: | Packet is splitting in telnet |
| Posted by: | "Larry" (lkill..@charter.net) |
| Date: | Thu, 9 Nov 2006 19:27:33 |
I am re-writing a VB app in Delphi2006 with Indy 10.1.5 components. The
original program used an Active-X Power TCP object. I am using the
TidTelnet client.
My program is to poll a scale controller with an embedded NIC and receive a
string data packet.
I am having a couple of problems with this component.
1. The connected event never fires. I see connecting but never connected
yet when I test for it, I know I am connected.
2. When I issue a GETDATA command (expected by the controller), I get the
first character of the data in the Buffer string and receive the rest in a
subsequent buffer. This behavior is consistant.
procedure TfrmTelnetDemo.IdTelnetDemoDataAvailable(Sender: TIdTelnet;
const Buffer: String);
begin
Memo1.Lines.Add(Buffer);
end;
I went into Hyper-terminal and issues GetData and I see the full packet
complete.
Also, the active -x component in VB handles it as one.
Is there anyway I can resolve this? Is the telnet client the ideal
component for my task?
Thanks