RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TServerWinSocket.OnThreadEnd Event

Occurs when a client socket connection is terminated and the associated thread finishes execution.

Pascal
property OnThreadEnd: TThreadNotifyEvent;
C++
__property TThreadNotifyEvent OnThreadEnd;

Write an OnThreadEnd to take specific action when the thread for a client connection finishes execution. OnThreadEnd occurs after the OnClientDisconnect event. 

The Sender parameter is the TServerWinSocket that received the client request. The Thread parameter is the thread that is finishing up.

Note: The OnThreadEnd event handler for TServerWinSocket is also set when setting the OnThreadEnd event handler of the associated TServerSocket.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!