Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: TTcpServer
| Subject: | Re: TTcpServer |
| Posted by: | "Luca Bottani" (in..@noxed.com) |
| Date: | Thu, 25 May 2006 18:54:45 |
Indy uses blocking sockets rather than the event driven model in
TServerSocket and TClientSocket,
so everything happens in a sequence, just like accessing a file.
At least you need to implement a thread class descendent for reading from
the "indy" socket.
> On my last program I have used the TServerSocket component and I used the
> onclientread method to receive the request from my TClientSocket.
> Now I want update my program with the new TTcpServer and TTcpClient
> components. But there isn't any onclientread and on this new component.
How
> can I intercept when the client send me the string of text that I want to
> parse?
> Thanks.