Discuss this help topic in SecureBlackbox Forum

TElSimpleFTPSClient.OnDNSResolve

TElSimpleFTPSClient     See also     


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


This event is fired when an address of the host should be resolved.

Declaration

[C#]
    event TSBDNSResolveEvent OnDNSResolve;
    delegate void TSBDNSResolveEvent(Object Sender, string HostName, TElDNSResourceRecordSet Response, int ResolveResult, byte SecurityStatus);

[VB.NET]
    Event OnDNSResolve As TSBDNSResolveEvent
    Delegate Sub TSBDNSResolveEvent(ByVal Sender As Object, ByVal HostName As String, ByVal Response As TElDNSResourceRecordSet, ByVal ResolveResult As Integer, ByVal SecurityStatus As Byte)

[Pascal]
    property OnDNSResolve : TSBDNSResolveEvent;
    TSBDNSResolveEvent = procedure (Sender: TObject; const HostName : string; Response : TElDNSResourceRecordSet; ResolveResult : Integer; SecurityStatus : TSBDNSSecurityStatus) of object;

[C++]
    void get_OnDNSResolve(TSBDNSResolveEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnDNSResolve(TSBDNSResolveEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBDNSResolveEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcHostName, int32_t szHostName, TElDNSResourceRecordSetHandle Response, int32_t ResolveResult, TSBDNSSecurityStatusRaw SecurityStatus);

[PHP]
    TSBDNSResolveEvent|callable|NULL get_OnDNSResolve()
    void set_OnDNSResolve(TSBDNSResolveEvent|callable|NULL $Value)
    callable TSBDNSResolveEvent(TObject $Sender, string $HostName, TElDNSResourceRecordSet $Response, integer $ResolveResult, integer $SecurityStatus)

[Java]
    TSBDNSResolveEvent getOnDNSResolve();
    void setOnDNSResolve(TSBDNSResolveEvent Value);
    TSBDNSResolveEvent.Callback OnDNSResolve = new TSBDNSResolveEvent.Callback() {
        public void TSBDNSResolveEventCallback(TObject Sender, String HostName, TElDNSResourceRecordSet Response, int ResolveResult, byte SecurityStatus) {
            //...
        }
    }

Parameters

  • HostName - name of the host to be resolved
  • Response - resource record received from the resolver
  • ResolveResult - DNS resolution result
  • SecurityStatus - security status of the DNS resource record set
  • pcHostName - name of the host to be resolved
  • szHostName - the length of pcHostName.

Values:

Description

    This event is fired by TElSimpleFTPSClient when DNS resolving has been performed.

See also:     OnDNSKeyNeeded     OnDNSKeyValidate     DNS    

Discuss this help topic in SecureBlackbox Forum