VCL.InetWinSockets Sample

From RAD Studio Code Examples
Jump to: navigation, search

This Windows sockets sample is a package that installs the Web.Win.Sockets components in the Internet category on the Tool Palette.

Web.Win.Sockets was removed from the product, but you can see the documentation for Web.Win.Sockets on the XE5 docwiki: http://docwiki.embarcadero.com/RADStudio/XE5/en/Working_with_sockets_Index

Location

You can find the InetWinSockets sample project at:

  • Start | Programs | Embarcadero RAD Studio Alexandria | Samples and then navigate to Object Pascal\VCL\InetWinSockets
  • Subversion Repository:
    • You can find Delphi code samples in GitHub Repositories. Search by name into the samples repositories according to your RAD Studio version.

Description

This sample consists of a package (.bpl) that you can install in RAD Studio. The package installs three Web.Win.Sockets components in the Tool Palette.

How to Use the Sample

  1. Navigate to Start | Programs | Embarcadero RAD Studio Alexandria | Samples and open Object Pascal\VCL\InetWinSockets.dproj.
  2. Right-click the .bpl in the Project Manager.
  3. Click Install.

Files

File Contains

InetWinSocketsReg.pas

The code for registering the InetWinSockets components and their property editor

inetwinsockets.dpk

The source code for the InetWinSockets package

inetwinsockets.res

Resource file for the InetWinSockets package; contains the icons for the Tool Palette.

SocketsEditor

The code for the sockets editor.

Web.Win.Sockets.pas

The source file for the deprecated Web.Win.Sockets unit, upon which the InetWinSockets package is built.

Implementation

Installing the InetWinSockets package in the IDE installs three Web.Win.Sockets components (TTcpClient, TTcpServer, and TUpdpSocket) in the Internet category on the Tool Palette.

Uses

  • Web.Win.Sockets (deprecated and included in this sample)

See Also