RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomWinSocket.Accept Method

Provides the interface for a method that accepts a connection to a client socket.

Pascal
procedure Accept(Socket: TSocket); virtual;
C++
virtual __fastcall Accept(TSocket 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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!