RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTcpClient.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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!