September 27th, 2004, 11:45 AM
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, 07: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 29th, 2004, 11:41 PM
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