Is Delphi TClientSocket (still) deprecated?

后端 未结 3 641
情书的邮戳
情书的邮戳 2021-01-24 01:30

In the resolution comments for bug report 12266 (\"Error on socket connect causes resource leak\"), Robert Ehteshamzadeh wrote

TClientSocket is deprecate

3条回答
  •  清酒与你
    2021-01-24 02:29

    TClientSocket and TServerSocket use ineffective design based on Windows messages. This scheme was introduced in Windows 3.11 (or did it happen in 3.1?), when there was no true multitasking and multithreaded socket handling was impossible. Deprecation took place due to more powerful and high-performing solutions appeared on the component market (namely Indy, then other libraries). There's no sense to bring the old technology back to life though the components are still shipped. Moreover, I'd suggest Embarcadero to include some IOCP-based server socket implementation to be included, however, I guess server sockets are not in the scope of interest for Embarcadero now.

提交回复
热议问题