Discuss this help topic in SecureBlackbox Forum


TElFTPSServer     See also     

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

This event is used to read data from the control channel.


    event TSBReceiveEvent OnCmdReceive;
    delegate void TSBReceiveEvent(Object Sender, ref byte[] Buffer, int MaxSize, out int Written);

    Event OnCmdReceive As TSBReceiveEvent
    Delegate Sub TSBReceiveEvent(ByVal Sender As Object, ByRef Buffer As Byte(), ByVal MaxSize As Integer, Out Written As Integer)

    property OnCmdReceive : TSBReceiveEvent;
    TSBReceiveEvent = procedure (Sender: TObject; Buffer : Pointer; MaxSize : LongInt; out Written : LongInt) of object;

    void get_OnCmdReceive(TSBReceiveEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnCmdReceive(TSBReceiveEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBReceiveEvent)(void * _ObjectData, TObjectHandle Sender, void * Buffer, int32_t MaxSize, int32_t &Written);

    TSBReceiveEvent|callable|NULL get_OnCmdReceive()
    void set_OnCmdReceive(TSBReceiveEvent|callable|NULL $Value)
    callable TSBReceiveEvent(TObject $Sender, TSBPointer|NULL $Buffer, integer $MaxSize, integer &$Written)

    TSBReceiveEvent getOnCmdReceive();
    void setOnCmdReceive(TSBReceiveEvent Value);
    TSBReceiveEvent.Callback OnCmdReceive = new TSBReceiveEvent.Callback() {
        public void TSBReceiveEventCallback(TObject Sender, byte[] Buffer, int MaxSize, TSBInteger Written) {


  • Buffer - the buffer that should be filled with data which were read from the socket by application.
  • MaxSize - the length of the buffer. Specifies the maximum number of bytes that can be written to the buffer.
  • Written - the amount of data that was placed to the buffer.


    This event is fired by TElFTPSServer when it needs to read some data from the control channel. The application should fill the Buffer with the amount of data not more than MaxSize bytes and return the number of bytes written in Written parameter.

See also:     OnCmdSend    

Discuss this help topic in SecureBlackbox Forum