System.Win.ScktComp.TCustomWinSocket.Data
Delphi
property Data: Pointer read FData write FData;
C++
__property void * Data = {read=FData, write=FData};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | System.Win.ScktComp.pas System.Win.ScktComp.hpp |
System.Win.ScktComp | TCustomWinSocket |
Description
Points to application-specific data associated with the socket.
Use Data to associate information specific to the socket connection with the Windows socket object. For example, Data can be used to store access and authentication information used by a server socket to evaluate client connection requests.
Data can store information in a thread-safe manner that would otherwise require the use of global variables. This is useful given the multi-threaded nature of many client-server applications.