Channels Property

A collection of currently open channels.

Syntax

public SSHChannelMap Channels { get; }
Public ReadOnly Property Channels As SSHChannelMap

Remarks

The SSH 2.0 specification allows for multiple channels to be opened over a single TCP/IP connection. The Channels property represents the channels that are currently open. A new SSHChannel can be opened with OpenChannel.

This collection is a hashtable where the channel's Id string is used as the key to the desired SSH channel object.

Example (Sending Data to a Channel)


channels["1"].DataToSend = "channel specific data";

This property is read-only.

Copyright (c) 2023 /n software inc. - All rights reserved.
IPWorks SSH 2020 .NET Edition - Version 20.0 [Build 8501]