Discuss this help topic in SecureBlackbox Forum



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

Handle this event if you need the server to support HOST command.


    event TSBFTPSServerHostRequestEvent OnVirtualHostRequest;
    delegate void TSBFTPSServerHostRequestEvent(Object Sender, string Host, ref int ErrorCode);

    Event OnVirtualHostRequest As TSBFTPSServerHostRequestEvent
    Delegate Sub TSBFTPSServerHostRequestEvent(ByVal Sender As Object, ByVal Host As String, ByRef ErrorCode As Integer)

    property OnVirtualHostRequest : TSBFTPSServerHostRequestEvent;
    TSBFTPSServerHostRequestEvent = procedure(Sender : TObject; const Host : string; var ErrorCode : word) of object;

    void get_OnVirtualHostRequest(TSBFTPSServerHostRequestEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnVirtualHostRequest(TSBFTPSServerHostRequestEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBFTPSServerHostRequestEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcHost, int32_t szHost, int32_t &ErrorCode);

    TSBFTPSServerHostRequestEvent|callable|NULL get_OnVirtualHostRequest()
    void set_OnVirtualHostRequest(TSBFTPSServerHostRequestEvent|callable|NULL $Value)
    callable TSBFTPSServerHostRequestEvent(TObject $Sender, string $Host, integer &$ErrorCode)


  • Host - ...
  • ErrorCode - ...
  • pcHost - ...
  • szHost - the length of pcHost.


    The event handler should return error code 220 if the virtual host is OK, or error code 504 if the host is not recognized.

Discuss this help topic in SecureBlackbox Forum