System.Win.ScktComp.TCustomWinSocket.Accept
Delphi
procedure Accept(Socket: TSocket); virtual;
C++
virtual void __fastcall Accept(int 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 accepts a connection to a client socket.
Accept is called automatically in response to notifications that a client socket is requesting a connection. The Socket parameter is the Windows socket handle for the socket that receives the notification.
The Accept method for TCustomWinSocket does nothing with the notification. Descendants of TCustomWinSocket that represent listening server sockets override this method to accept the connection to the client socket.
Accept is only called if the ASyncStyles property includes asAccept.