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