Discuss this help topic in SecureBlackbox Forum


TElSFTPServer     See also     

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

This event is fired when your software has to canonicalize any given path name to the absolute path.


    event TElSFTPServerRequestAbsolutePathEvent OnRequestAbsolutePath;
    delegate void TElSFTPServerRequestAbsolutePathEvent(Object Sender, string Path, ref string AbsolutePath, TSBSftpRealpathControl Control, TElStringList ComposePath, ref int ErrorCode, ref string Comment);

    Event OnRequestAbsolutePath As TElSFTPServerRequestAbsolutePathEvent
    Delegate Sub TElSFTPServerRequestAbsolutePathEvent(ByVal Sender As Object, ByVal Path As String, ByRef AbsolutePath As String, ByVal Control As TSBSftpRealpathControl, ByVal ComposePath As TElStringList, ByRef ErrorCode As Integer, ByRef Comment As String)

    property OnRequestAbsolutePath: TSBSFTPServerRequestAbsolutePathEvent;
    TSBSFTPServerRequestAbsolutePathEvent = procedure(Sender : TObject; const Path : string; var AbsolutePath : string; Control : TSBSftpRealpathControl; ComposePath : TStringList; var ErrorCode: integer; var Comment : string) of object;

    void get_OnRequestAbsolutePath(TElSFTPServerRequestAbsolutePathEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnRequestAbsolutePath(TElSFTPServerRequestAbsolutePathEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TElSFTPServerRequestAbsolutePathEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcPath, int32_t szPath, char * pcAbsolutePath, int32_t &szAbsolutePath, TSBSftpRealpathControlRaw Control, TStringListHandle ComposePath, int32_t &ErrorCode, char * pcComment, int32_t &szComment);

    TElSFTPServerRequestAbsolutePathEvent|callable|NULL get_OnRequestAbsolutePath()
    void set_OnRequestAbsolutePath(TElSFTPServerRequestAbsolutePathEvent|callable|NULL $Value)
    callable TElSFTPServerRequestAbsolutePathEvent(TObject $Sender, string $Path, string &$AbsolutePath, integer $Control, TStringList $ComposePath, integer &$ErrorCode, string &$Comment)

    TElSFTPServerRequestAbsolutePathEvent getOnRequestAbsolutePath();
    void setOnRequestAbsolutePath(TElSFTPServerRequestAbsolutePathEvent Value);
    TElSFTPServerRequestAbsolutePathEvent.Callback OnRequestAbsolutePath = new TElSFTPServerRequestAbsolutePathEvent.Callback() {
        public void TElSFTPServerRequestAbsolutePathEventCallback(TObject Sender, String Path, TSBString AbsolutePath, TSBSftpRealpathControl Control, TElStringList ComposePath, TSBInteger ErrorCode, TSBString Comment) {


  • Path - path name
  • AbsolutePath - absolute path to be returned
  • Control - manages possible ways of the path transforming
  • ComposePath - A path which the client wishes the server to compose with the original path to form the new path.
  • ErrorCode - the error code, see values below
  • Comment - server comment
  • pcPath - path name
  • szPath - the length of pcPath.
  • pcAbsolutePath - absolute path to be returned
  • szAbsolutePath - the length of pcAbsolutePath.
  • pcComment - server comment
  • szComment - the length of pcComment.

Control values:

Error codes values:


    This event is fired when path has to be canonicalized to the absolute path.
The application can return the error code in ErrorCode parameter and textual comment in Comment parameter.

See also:     OnRequestAttributes     OnRequestAttributes2     OnExtendedRequest    

Discuss this help topic in SecureBlackbox Forum