Back to FlowSsh Documentation

ClientSessionChannel

[C]

struct FlowSshC_ClientSessionChannel {};

Creation
---------
FlowSshC_ClientSessionChannel* __cdecl FlowSshC_ClientSessionChannel_Create(FlowSshC_Client* client);

[C++]

class ClientSessionChannel : public IRefCountable, public NoCopy
{
public:
  ClientSessionChannel(RefPtrConst<Client> const& client);
..
}

[C#]

public class ClientSessionChannel : IDisposable
{
  public ClientSessionChannel(Client client);
..
}

Members

Creation, Destruction

  • Create - Create a new session-channel for the client.
  • [C/Cpp] AddRef - Increment reference count.
  • [C/Cpp] Release - Decrement reference count.

Requests

[C] Handler Registration

[Cpp/Net] Overrides and Events

[Net] Disposing

  • IsDisposed - Is the object disposed?
  • Dispose - Release all resources used by the object. Also initiates a close request.

Remarks

Whenever you execute an application remotely or start an interactive shell, you will do so by using a session-channel. In FlowSshC, session-channels are represented by an opaque FlowSshC_ClientSessionChannel structure. In FlowSshCpp/Net they are managed by the ClientSessionChannel class. Handlers are called only for active channels. A channel is said to be active if it is either open or opening.

A channel can be created even if the associated client is not yet connected. Before an open request is send, the client must be connected though.