ClientSftpChannel - SetCloseHandler, OnChannelClose[C] __cdecl FlowSshC_ClientSftpChannel_SetCloseHandler(
[C++] [ClientSftpChannel] virtual void OnChannelClose(); [C#] [ClientSftpChannel] public event ChannelCloseEventHandler OnChannelClose; [C] Parameters
[Cpp/Net] Overrides and Events
Remarks The close handler can be invoked only on successfully opened channels. No other channel handlers are invoked after OnChannelClose. The channel is closed immediately if [ClientSftpChannel]Close is called. Otherwise, if the channel is closed by the server or due to client disconnection, then the channel will linger (its close handler will be delayed) until all pending data is processed through the corresponding handlers. Sending a new request at this point will fail with a "SFTP channel is closing" message. |