Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TClientSocket.Socket. SendText not working (?)

1 view
Skip to first unread message

KevanB

unread,
Feb 4, 2007, 1:29:56 PM2/4/07
to
HI

Upgrading an old Delphi5 program to delphi2005 and TClientSocket no longer
works for me.


What i need to do is talk to an external EXE via sockets sending and
receiving text. If I use a TIdTCPClient, I can successfully talk to the
external pp, though a "Buffer start position invalid" error occurs when the
app responds (with text). TClientSockt howvere never appears to connect
corrcetly with the app.


ClientSocket.address =192.168.1.103
ClientSocket.port =25000
ClientSocket.ClientType = ctNonBlocking // also tried ctblocking

clientsocket.connect;
clientsocket.socket.sendtext('G'); // initiating.. expect a sequence of text
is response


Indy :

idTCPClient.ip := '192.168.1.103'
idTCPClient.port := '25000
idTCPClient.connect;
idTCPClient.sendCMD('G'); // activity noted at remote exe, response triggers
"Buffer start position is invalid" error


Any clues appreciated, bit stuffed time wise on this one :(


cheers


KevanB


KevanB

unread,
Feb 4, 2007, 1:39:27 PM2/4/07
to
Wrong news group


0 new messages