| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 | namespace Renci.SshNet.Messages.Connection{    /// <summary>    /// Used to open "forwarded-tcpip" channel type    /// </summary>    internal class ForwardedTcpipChannelInfo : ChannelOpenInfo    {        /// <summary>        /// Specifies channel open type        /// </summary>        public const string NAME = "forwarded-tcpip";        /// <summary>        /// Gets the type of the channel to open.        /// </summary>        /// <value>        /// The type of the channel to open.        /// </value>        public override string ChannelType        {            get { return NAME; }        }        /// <summary>        /// Gets the connected address.        /// </summary>        public string ConnectedAddress { get; private set; }        /// <summary>        /// Gets the connected port.        /// </summary>        public uint ConnectedPort { get; private set; }        /// <summary>        /// Gets the originator address.        /// </summary>        public string OriginatorAddress { get; private set; }        /// <summary>        /// Gets the originator port.        /// </summary>        public uint OriginatorPort { get; private set; }        /// <summary>        /// Called when type specific data need to be loaded.        /// </summary>        protected override void LoadData()        {            base.LoadData();            this.ConnectedAddress = this.ReadString();            this.ConnectedPort = this.ReadUInt32();            this.OriginatorAddress = this.ReadString();            this.OriginatorPort = this.ReadUInt32();        }        /// <summary>        /// Called when type specific data need to be saved.        /// </summary>        protected override void SaveData()        {            base.SaveData();            this.Write(this.ConnectedAddress);            this.Write(this.ConnectedPort);            this.Write(this.OriginatorAddress);            this.Write(this.OriginatorPort);        }    }}
 |