System.Win.ScktComp.TAbstractSocket.InitSocket

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure InitSocket(Socket: TCustomWinSocket);

C++

void __fastcall InitSocket(TCustomWinSocket* Socket);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
System.Win.ScktComp.pas
System.Win.ScktComp.hpp
System.Win.ScktComp TAbstractSocket

Description

Tells a Windows socket object to call the Error and Event methods.

Applications cannot call this protected method. InitSocket is called automatically by the socket's constructor, immediately after the Windows socket object is created. It allows the socket component to respond to events on the Windows socket object by assigning an OnErrorEvent handler that calls Error and an OnSocketEvent handler that calls Event.

The Socket parameter specifies the Windows socket object that passes events on to the socket component.

See Also