System.Win.ScktComp.TServerClientThread.Error

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Error(ErrorEvent: TErrorEvent; var ErrorCode: Integer); virtual;

C++

virtual void __fastcall Error(TErrorEvent ErrorEvent, int &ErrorCode);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
System.Win.ScktComp.pas
System.Win.ScktComp.hpp
System.Win.ScktComp TServerClientThread

Description

Generates an OnClientError event for the associated server socket.

TServerClientThread assigns the Error method as an event handler for the OnErrorEvent method of the associated TClientWinSocket object. This allows errors received from the client to generate OnClientError events on the server socket.

Warning: Error is not thread-safe. It should not be called from the server client thread. It is only intended for use by the associated client socket, which is not local to the server client thread.

See Also