System.Win.ScktComp.TClientWinSocket.Connect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Connect(Socket: TSocket); override;

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 TClientWinSocket

Description

Responds to connection notifications.

Applications can not call this protected method. Connect is called 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.

Connect generates an OnSocketEvent event with the SocketEvent parameter set to seConnect. Socket components assign an OnSocketEvent event handler that responds to this event by generating an OnConnect event on the socket component.

Note: Connect is only called if the ASyncStyles property includes asConnect.

See Also