Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Feb : Re: Indy 10 TIdIRC component problems.

www.cryer.info
Managed Newsgroup Archive

Re: Indy 10 TIdIRC component problems.

Subject:Re: Indy 10 TIdIRC component problems.
Posted by:"Unspoken" (ff_aa_cc_ee_..@wp.pl)
Date:Sat, 9 Feb 2008 20:35:37

A bit more research and I came out with such solution:

procedure TIdCmdTCPClientListeningThread.PassToSync;
begin
  FClient.CommandHandlers.HandleCommand(FContext, FRecvData);
end;

procedure TIdCmdTCPClientListeningThread.Run;
begin
  FRecvData := FClient.IOHandler.ReadLn;
  Synchronize(PassToSync);
  FClient.IOHandler.CheckForDisconnect;
end;

It works! But...

Is it ok, could it be improved?

Thanks again :-)

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive