Discuss this help topic in SecureBlackbox Forum

TElSFTPServer.OnReadSymLink

TElSFTPServer     See also     


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


This event is fired when your software has to read the symbolic link.

Declaration

[C#]
    event TElSFTPServerReadSymLinkEvent OnReadSymLink;
    delegate void TElSFTPServerReadSymLinkEvent(Object Sender, string Path, TElSftpFileInfo Info, ref int ErrorCode, ref string Comment);

[VB.NET]
    Event OnReadSymLink As TElSFTPServerReadSymLinkEvent
    Delegate Sub TElSFTPServerReadSymLinkEvent(ByVal Sender As Object, ByVal Path As String, ByVal Info As TElSftpFileInfo, ByRef ErrorCode As Integer, ByRef Comment As String)

[Pascal]
    property OnReadSymLink: TSBSFTPServerReadSymLinkEvent;
    TSBSFTPServerReadSymLinkEvent = procedure(Sender : TObject; const Path : string; Info : TElSftpFileInfo; var ErrorCode : integer; var Comment : string) of object;

[C++]
    void get_OnReadSymLink(TElSFTPServerReadSymLinkEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnReadSymLink(TElSFTPServerReadSymLinkEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TElSFTPServerReadSymLinkEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcPath, int32_t szPath, TElSftpFileInfoHandle Info, int32_t &ErrorCode, char * pcComment, int32_t &szComment);

[PHP]
    TElSFTPServerReadSymLinkEvent|callable|NULL get_OnReadSymLink()
    void set_OnReadSymLink(TElSFTPServerReadSymLinkEvent|callable|NULL $Value)
    callable TElSFTPServerReadSymLinkEvent(TObject $Sender, string $Path, TElSftpFileInfo $Info, integer &$ErrorCode, string &$Comment)

[Java]
    TElSFTPServerReadSymLinkEvent getOnReadSymLink();
    void setOnReadSymLink(TElSFTPServerReadSymLinkEvent Value);
    TElSFTPServerReadSymLinkEvent.Callback OnReadSymLink = new TElSFTPServerReadSymLinkEvent.Callback() {
        public void TElSFTPServerReadSymLinkEventCallback(TObject Sender, String Path, TElSftpFileInfo Info, TSBInteger ErrorCode, TSBString Comment) {
            //...
        }
    }

Parameters

  • Path - specifies the path to a symbolic link
  • Info - information about file on which symbolic link points
  • ErrorCode - the error code, see values below
  • Comment - server comment
  • pcPath - specifies the path to a symbolic link
  • szPath - the length of pcPath.
  • pcComment - server comment
  • szComment - the length of pcComment.

Error codes values:

Description

    This event is fired when the symbolic link target information has to be read.
The application can return the error code in ErrorCode parameter and textual comment in Comment parameter.

See also:     OnCreateSymLink     OnReadFile     OnRemove    

Discuss this help topic in SecureBlackbox Forum