System.Win.ScktComp.TServerWinSocket.OnThreadEnd

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnThreadEnd: TThreadNotifyEvent read FOnThreadEnd write FOnThreadEnd;

C++

__property TThreadNotifyEvent OnThreadEnd = {read=FOnThreadEnd, write=FOnThreadEnd};

Properties

Type Visibility Source Unit Parent
event public
System.Win.ScktComp.pas
System.Win.ScktComp.hpp
System.Win.ScktComp TServerWinSocket

Description

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

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.

See Also