Discuss this help topic in SecureBlackbox Forum

TElSimpleSSHClient.ReceiveData

TElSimpleSSHClient     See also     


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


This method receives data through logical connection

Declaration

[C#]
    void ReceiveData(ref byte[] Buffer, ref int Size, ref byte[] StdErrBuffer, ref int StdErrSize);
    int ReceiveData(byte[] Buffer, int StartIndex, int Count, bool ReadAll);

[VB.NET]
    Sub ReceiveData(ByRef Buffer As Byte(), ByRef Size As Integer, ByRef StdErrBuffer As Byte(), ByRef StdErrSize As Integer)
    Function ReceiveData(ByVal Buffer As Byte(), ByVal StartIndex As Integer, ByVal Count As Integer, ByVal ReadAll As Boolean) As Integer

[Pascal]
    procedure ReceiveData(Buffer : pointer; var Size : integer; StdErrBuffer : pointer; var StdErrSize : integer);

[C++]
    void ReceiveData(void * Buffer, int32_t &Size, void * StdErrBuffer, int32_t &StdErrSize);

[PHP]
    void ReceiveData(TSBPointer|array of byte|string|NULL $Buffer, integer &$Size, TSBPointer|array of byte|string|NULL $StdErrBuffer, integer &$StdErrSize)

[Java]
    int receiveData(byte[] Buffer, int StartIndex, int Count, boolean ReadAll);
    void receiveData(byte[] Buffer, TSBInteger Size, byte[] StdErrBuffer, TSBInteger StdErrSize);

Parameters

  • Buffer - buffer for data
  • Size - size of buffer for data
  • StdErrBuffer (StdErrData) - buffer for data from stderr
  • StdErrSize - size of the buffer for data from stderr
  • StartIndex - position in the buffer from which data must be written
  • Count - amount of bytes to be written
  • ReadAll -

Description

    Use this method to receive data through the logical connection. This method tries to read Size bytes and writes to Size parameter amount of bytes that have been actually read.

See also:     ReceiveText     SendData     ExecuteCommand    

Discuss this help topic in SecureBlackbox Forum