Discuss this help topic in SecureBlackbox Forum

TElBaseSocketClient.OnError

TElBaseSocketClient     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This event reports an error.

Declaration

[C#]
    event TSBErrorEvent OnError;
    delegate void TSBErrorEvent(Object Sender, int ErrorCode, bool Fatal, bool Remote);

[VB.NET]
    Event OnError As TSBErrorEvent
    Delegate Sub TSBErrorEvent(ByVal Sender As Object, ByVal ErrorCode As Integer, ByVal Fatal As Boolean, ByVal Remote As Boolean)

[Pascal]
    property OnError : TSBErrorEvent;
    TSBErrorEvent = procedure(Sender : TObject; ErrorCode : integer; Fatal : boolean; Remote : boolean) of object;

[C++]
    void get_OnError(TSBErrorEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnError(TSBErrorEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBErrorEvent)(void * _ObjectData, TObjectHandle Sender, int32_t ErrorCode, int8_t Fatal, int8_t Remote);

[PHP]
    TSBErrorEvent|callable|NULL get_OnError()
    void set_OnError(TSBErrorEvent|callable|NULL $Value)
    callable TSBErrorEvent(TObject $Sender, integer $ErrorCode, bool $Fatal, bool $Remote)

[Java]
    TSBErrorEvent getOnError();
    void setOnError(TSBErrorEvent Value);
    TSBErrorEvent.Callback OnError = new TSBErrorEvent.Callback() {
        public void TSBErrorEventCallback(TObject Sender, int ErrorCode, boolean Fatal, boolean Remote) {
            //...
        }
    }

Parameters

  • ErrorCode - the error code, see values below.
  • Fatal - if true, the error is fatal, the connection will be closed immediately.
  • Remote - if true, the error has originated on the remote side.

Socket error codes

Description

This event is fired by TElBaseSocketClient to report an error.

See also:     OnDNSError    

Discuss this help topic in SecureBlackbox Forum