RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseSocket.OnError Event

Occurs when the socket fails in making, using, or shutting down a connection.

Pascal
property OnError: TSocketErrorEvent;
C++
__property TSocketErrorEvent OnError;

Write an OnError event handler to respond to errors that arise with the socket connection. Set the ErrorCode parameter to 0 if the OnError event handler successfully deals with the error condition, to prevent an ESocketError exception from being raised. 

 

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