System.Win.ScktComp.TServerClientThread.Create
Delphi
constructor Create(CreateSuspended: Boolean; ASocket: TServerClientWinSocket);
C++
__fastcall TServerClientThread(bool CreateSuspended, TServerClientWinSocket* ASocket);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | System.Win.ScktComp.pas System.Win.ScktComp.hpp |
System.Win.ScktComp | TServerClientThread |
Description
Creates an instance of TServerClientThread.
Use Create to create an instance of TServerClientThread for a connection to a client socket, and add the thread to the cache maintained by the associated listening socket.
Initializes FreeOnTerminate to true.
Initializes Priority to tpHigher.
Initializes ClientSocket to the ASocket parameter and ServerSocket to ASocket.ServerWinSocket.
Starts the thread executing.
Adds the thread to the cache maintained by ServerSocket.
Sets the OnErrorEvent and OnSocketEvent event handlers of ClientSocket so that events are sent to ServerSocket.
Signals when initialization is complete and the thread is ready for reading from or writing to the client connection.