Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Dec : Re: TIdTCPClient / how to implement something like OnReceiveData event?
| Subject: | Re: TIdTCPClient / how to implement something like OnReceiveData event? |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Tue, 1 Jan 2008 19:38:56 |
"Unspoken" <ff_aa_cc_ee_tt@wp.pl> wrote in message
news:47793492@newsgroups.borland.com...
> I've looked thanks. However from what I've read from the
> source there is no method for awaiting for the data from the
> Server.
TIdIRC handles all of that internally for you. You DO NOT have to do any
waiting yourself. If you look at the source again more closely, you will
see that TIdIRC runs an internal thread that continously reads from the
connection, triggering the OnReceive, OnRaw, OnSystem, and other events when
needed.
> So even with its usage I would have to implement on my own
> the functionality diescussed earlier.
No, you would not.
Gambit