September 27th, 2004, 12:45 PM
this mis my code:
procedure TForm1.IdTCPServer1Execute(AThread: TIdPeerThread);
Msg : string;
while AThread.Connection.Connected do
Msg := AThread.Connection.ReadLn;
(UpperCase(Msg) = 'QUIT') or (UpperCase(Msg) = 'BYE') then
AddLog('Leggi in: ' + Msg);
The question is:which option I have to use to forward the string Msg(something like ".Socket.SendText" in delphi6 tcpclient socket)??
September 28th, 2004, 08:54 AM
I didn't write that I'm working with delphi7, and I'm looking for an aextension of the IdTCPClient socket similar to the sendtext command in delphi6's client socket!!
September 30th, 2004, 12:41 AM
IdTCPClient has a method called Write, which is what you're looking for.
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo