System.Win.ScktComp.TCustomWinSocket.Connect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Connect(Socket: TSocket); virtual;

C++

virtual void __fastcall Connect(NativeInt Socket);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Win.ScktComp.pas
System.Win.ScktComp.hpp
System.Win.ScktComp TCustomWinSocket

Description

Provides the interface for a method that responds to connection notifications from client sockets.

Connect is called automatically in response to notifications that the client socket has successfully completed a connection to a server socket. The Socket parameter is the Windows socket handle for the socket that receives the notification.

The Connect method for TCustomWinSocket does nothing with the notification. Descendants of TCustomWinSocket that represent client sockets override this method to respond to connection notifications.

Connect is only called if the ASyncStyles property includes asConnect.

See Also