WindowChangeRequestInfo
Represents "window-change" type channel request information.
namespace Renci.SshNet.Messages.Connection
{
internal sealed class WindowChangeRequestInfo : RequestInfo
{
public const string Name = "window-change";
public override string RequestName => "window-change";
public uint Columns { get; set; }
public uint Rows { get; set; }
public uint Width { get; set; }
public uint Height { get; set; }
protected override int BufferCapacity => base.BufferCapacity + 4 + 4 + 4 + 4;
public WindowChangeRequestInfo()
{
base.WantReply = false;
}
public WindowChangeRequestInfo(uint columns, uint rows, uint width, uint height)
: this()
{
Columns = columns;
Rows = rows;
Width = width;
Height = height;
}
protected override void LoadData()
{
base.LoadData();
Columns = ReadUInt32();
Rows = ReadUInt32();
Width = ReadUInt32();
Height = ReadUInt32();
}
protected override void SaveData()
{
base.SaveData();
Write(Columns);
Write(Rows);
Write(Width);
Write(Height);
}
}
}