delphi_coder
delphi_coder

Reputation: 177

Server Socket in Delphi?

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?

Upvotes: 1

Views: 5165

Answers (2)

Ian Boyd
Ian Boyd

Reputation: 257095

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.

Upvotes: 6

Warren  P
Warren P

Reputation: 69114

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

Upvotes: 4

Related Questions