开发者

Server Socket in Delphi?

开发者 https://www.devze.com 2023-03-13 04:59 出处:网络
What is an alternative to TServerSocket and TClientSocket (like in Delphi 7), in Delphi 2010? I\'m really not sure what to use, since this is what I would like to do:

What is an alternative to TServerSocket and TClientSocket (like in Delphi 7), in Delphi 2010? I'm really not sure what to use, since this is what I would like to do:

For server side:

ServerSocket1.Port开发者_运维知识库 := 23;

For client side:

ClientSocket1.Port :=  23;  
ClientSocket1.Host :=  'xxx.xxx.xxx.xxx';

What will a alternative be for this in Delphi 2010?


Apparently TSocketServer and TClientSocket ship with Delphi, but they just hide it:

  • From the Delphi IDE menu select Component - Install Packages,
  • Click Add, in the Install Packages dialog,
  • In the Add Design Package dialog, browse to your "RAD Studio\5.0\bin" folder (for Delphi 2007) and select dclsockets100.bpl, then click Open.
  • Click OK.

i would never have guessed that BorlandImpriseCodeGearEmbarcadero put them on the DVD.


Recommended alternatives include Indy, ICS, Synapse, RealThinSDK, and just about any other socket library for Delphi.

0

精彩评论

暂无评论...
验证码 换一张
取 消