Discuss this help topic in SecureBlackbox Forum

TElBaseSocketClient.OnDNSError

TElBaseSocketClient     See also     


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


This event reports errors in DNS resolution.

Declaration

[C#]
    event TSBDNSErrorEvent OnDNSError;
    delegate void TSBDNSErrorEvent(Object Sender, string Server, int ErrorCode, string ErrorMessage);

[VB.NET]
    Event OnDNSError As TSBDNSErrorEvent
    Delegate Sub TSBDNSErrorEvent(ByVal Sender As Object, ByVal Server As String, ByVal ErrorCode As Integer, ByVal ErrorMessage As String)

[Pascal]
    property OnDNSError : TSBDNSErrorEvent;
    TSBDNSErrorEvent = procedure(Sender : TObject; const Server : string; ErrorCode : Integer; const ErrorMessage : string) of object;

[C++]
    void get_OnDNSError(TSBDNSErrorEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnDNSError(TSBDNSErrorEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBDNSErrorEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcServer, int32_t szServer, int32_t ErrorCode, const char * pcErrorMessage, int32_t szErrorMessage);

[PHP]
    TSBDNSErrorEvent|callable|NULL get_OnDNSError()
    void set_OnDNSError(TSBDNSErrorEvent|callable|NULL $Value)
    callable TSBDNSErrorEvent(TObject $Sender, string $Server, integer $ErrorCode, string $ErrorMessage)

[Java]
    TSBDNSErrorEvent getOnDNSError();
    void setOnDNSError(TNotifyEvent Value);
    TSBDNSErrorEvent.Callback OnDNSError = new TSBDNSErrorEvent.Callback() {
        public void TSBDNSErrorEventCallback(TObject Sender) {
            //...
        }
    }

Parameters

  • Server - the server (host) to be resolved.
  • ErrorCode - contains DNS error code.
  • ErrorMessage - contains the error message.
  • pcServer - the server (host) to be resolved.
  • szServer - the length of pcServer.
  • pcErrorMessage - contains the error message.
  • szErrorMessage - the length of pcErrorMessage.

Values:

Description

This event is fired if an error occurs during DNS resolution.

See also:     OnDNSResolve     DNS    

Discuss this help topic in SecureBlackbox Forum