Delphi (Indy) TIdTCPClient in a stream

Throughout the Internet, I see what seems to be usually done to host "TIdTCPClient" inside a TThread user descendant ... why is this done?

Sometimes I see a server in such a stream too ... why?

Cheers, Adrian

+4
source share
1 answer

Indy uses blocking I / O operations that are best handled in threads, and this is the core for Indy's overall design. Blocking the main thread of the user interface gives users the impression that the application is frozen when it really does not work. See โ€œIntroduction to Indyโ€ for more information.

+7
source

All Articles