System.Win.ScktComp.TCustomSocket

From RAD Studio API Documentation
Jump to: navigation, search

System.Win.ScktComp.TAbstractSocketSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTCustomSocket

Delphi

TCustomSocket = class(TAbstractSocket)

C++

class PASCALIMPLEMENTATION TCustomSocket : public TAbstractSocket

Properties

Type Visibility Source Unit Parent
class public
System.Win.ScktComp.pas
System.Win.ScktComp.hpp
System.Win.ScktComp System.Win.ScktComp

Description

TCustomSocket is the base class for socket components.

Override TCustomSocket to create a socket component that can be assigned event handlers for the events and error conditions that occur. In addition to the properties and methods introduced by TAbstractSocket that enable an application to work with Windows sockets, TCustomSocket introduces several events that can be used by applications.

Do not create instances of TCustomSocket. Use a descendant of TCustomSocket to add the ability to communicate with other machines using TCP/IP. To create a socket that initiates the connection with another machine, use TClientSocket. To create a socket that responds to requests for connections from other machines, use TServerSocket.

See Also