System.Win.ScktComp.TSocketErrorProc
C++
typedef void __fastcall (*TSocketErrorProc)(int ErrorCode);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
typedef | public | System.Win.ScktComp.hpp | System.Win.ScktComp | System.Win.ScktComp |
Description
The type that represents the exception handler for error messages that are received from a Windows socket connection.
The ErrorProc
parameter specifies the exception handler. It is passed the Windows socket error code. Inside this exception handler an application can compensate for the error or raise an exception. Passing a value of nil (Delphi) or NULL (C++) for the ErrorProc
parameter restores the default behavior, where the socket component raises an ESocketError exception.
By default, socket components have no special error handler and simply raise an ESocketError exception when they receive error messages. If an exception handler is assigned using SetErrorProc, the socket component does not raise this exception.