Show: Delphi C++
Display Preferences

System.Win.ScktComp.TClientSocket.OnError

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnError: TSocketErrorEvent read FOnError write FOnError;

C++

__property OnError;

Properties

Type Visibility Source Unit Parent
event published
System.Win.ScktComp.pas
System.Win.ScktComp.hpp
System.Win.ScktComp TClientSocket

Description

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

System.Win.ScktComp.TClientSocket.OnError inherits from System.Win.ScktComp.TCustomSocket.OnError. All content below this line refers to System.Win.ScktComp.TCustomSocket.OnError.

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

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 from being raised.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance