Back to FlowSsh Documentation

ClientSessionChannel - Send

[C]

__cdecl FlowSshC_ClientSessionChannel_Send(
  FlowSshC_ClientSessionChannel* channel,
  unsigned char const* data,
  unsigned int dataBytes,
  bool eof,
  FlowSshC_ProgressHandler handler,
  void* handlerData);

[C++]

[ClientSessionChannel] void Send(
  Data const& data,
  bool eof,
  RefPtr<ProgressHandler> const& progress);

[C#]

[ClientSessionChannel] public void Send(
  byte[] data,
  bool eof,
  ProgressHandler progress);

ClientSessionChannel] public void Send(
  byte[] data,
  int offset,
  int size,
  bool eof,
  ProgressHandler progress);

Parameters

  • [C] channel: FlowSshC_ClientSessionChannel pointer.
  • [C] handler: A ProgressHandler function to be used with the request. Optional.
  • [C] handlerData: An application-defined value to be passed to the handler. Optional.
  • [C] dataBytes: The number of bytes to send (array size).
     
  • data: Data to send.
       In [C] an array of type unsigned char (=byte).
       In [Cpp] a Data object.
       In [Net] an array of type Byte.
  • eof: Send EOF? If eof=true (end-of-file), we should send no more data over this channel. The server could still send data to us as long as the channel is open, but will usually just reply with an EOF of its own.
     
  • [Net] offset: The position in the data buffer at which to begin sending data.
  • [Net] size: The number of bytes to send.
  • [Cpp/Net] progress: A ProgressHandler object to be used with the request. Optional.

Remarks

Sends data to the server.