ClientSftpChannel - Open

[C]

__cdecl FlowSshC_ClientSftpChannel_Open(
  FlowSshC_ClientSftpChannel* channel,
  FlowSshC_ProgressHandler handler,
  void* handlerData);

[C++]

[ClientSftpChannel] void Open(RefPtr<ProgressHandler> const& progress);

[C#]

[ClientSftpChannel] public void Open(ProgressHandler progress);

Parameters

  • [C] channel: FlowSshC_ClientSftpChannel 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++/.NET] progress: A ProgressHandler object to be used with the request. Optional.

Remarks

The client must be connected before sending an open request, otherwise the request will fail immediately through the supplied progress handler. Once the channel is opened, you can start using its SFTP functionality. To close the channel call [ClientSftpChannel]Close. A closed channel can be re-opened at any time.