RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TServerClientThread.Error Method

Generates an OnClientError event for the associated server socket.

Pascal
procedure Error(ErrorEvent: TErrorEvent; var ErrorCode: Integer); virtual;
C++
virtual __fastcall Error(TErrorEvent ErrorEvent, int ErrorCode);

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.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!