System.Win.ScktComp.TCustomSocket.OnError

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnError: TSocketErrorEvent read FOnError write FOnError;

C++

__property TSocketErrorEvent OnError = {read=FOnError, write=FOnError};

Properties

Type Visibility Source Unit Parent
event protected
System.Win.ScktComp.pas
System.Win.ScktComp.hpp
System.Win.ScktComp TCustomSocket

Description

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