Discuss this help topic in SecureBlackbox Forum

TElSFTPServer.OnUnblock

TElSFTPServer     See also     


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


This event is fired when a previously acquired byte-range lock is removed.

Declaration

[C#/Java]
    event TElSFTPServerUnblockEvent OnUnblock;
    delegate void TElSFTPServerUnblockEvent(Object Sender, Object Data, long Offset, long Length, ref int ErrorCode, ref string Comment);

[VB.NET]
    Event OnUnblock As TElSFTPServerUnblockEvent
    Delegate Sub TElSFTPServerUnblockEvent(ByVal Sender As Object, ByVal Data As Object, ByVal Offset As Long, ByVal Length As Long, ByRef ErrorCode As Integer, ByRef Comment As String)

[Pascal]
    property OnUnblock: TElSFTPServerUnblockEvent;
    TElSFTPServerUnblockEvent = procedure(Sender : TObject; Data : pointer; Offset, Length : Int64; var ErrorCode : integer; var Comment : string) of object;

[C++]
    void get_OnUnblock(TElSFTPServerUnblockEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnUnblock(TElSFTPServerUnblockEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TElSFTPServerUnblockEvent)(void * _ObjectData, TObjectHandle Sender, void * Data, int64_t Offset, int64_t Length, int32_t &ErrorCode, char * pcComment, int32_t &szComment);

[PHP]
    TElSFTPServerUnblockEvent|callable|NULL get_OnUnblock()
    void set_OnUnblock(TElSFTPServerUnblockEvent|callable|NULL $Value)
    callable TElSFTPServerUnblockEvent(TObject $Sender, TSBPointer|NULL $Data, integer $Offset, integer $Length, integer &$ErrorCode, string &$Comment)

Parameters

  • Data - data previously locked
  • Offset - beginning of the byte-range to unlock.
  • Length - number of bytes in the range to unlock. The special value 0 means lock from Offset to the end of the file.
  • ErrorCode - the error code, see values below
  • Comment - server comment
  • pcComment - server comment
  • szComment - the length of pcComment.

Error codes values:


Description

    This event is fired when a previously acquired byte-range lock is removed.

See also:     OnBlock    

Discuss this help topic in SecureBlackbox Forum