Thread View: borland.public.delphi.clx.components.using
2 messages
2 total messages
Started by KevanB
Sun, 04 Feb 2007 18:29
TClientSocket.Socket. SendText not working (?)
Author: KevanB
Date: Sun, 04 Feb 2007 18:29
Date: Sun, 04 Feb 2007 18:29
40 lines
1878 bytes
1878 bytes
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
Re: TClientSocket.Socket. SendText not working (?)
Author: KevanB
Date: Sun, 04 Feb 2007 18:39
Date: Sun, 04 Feb 2007 18:39
1 lines
969 bytes
969 bytes
Wrong news group
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads