Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpbcgr.StaticVirtualChannel.StaticVirtualChannel C# (CSharp) Method

StaticVirtualChannel() public method

Constructor
public StaticVirtualChannel ( UInt16 id, string name, Channel_Options options, uint chunkSize, CompressionType compressType, CompressionType decompressType, SendSVCData sender ) : System
id System.UInt16 Channel ID
name string Channel Name
options Channel_Options Channel Options
chunkSize uint Max chunk size
compressType CompressionType Compress Type
decompressType CompressionType Decompress Type
sender SendSVCData Method used to send packet
return System
        public StaticVirtualChannel(UInt16 id, 
            string name,
            Channel_Options options,
            uint chunkSize,
            CompressionType compressType,
            CompressionType decompressType,
            SendSVCData sender)
        {
            this.channelId = id;
            this.channelName = name;
            this.channelOptions = options;
            this.maxChunkSize = chunkSize;
            this.decompressedBuffer = new List<byte>();

            if (compressType != CompressionType.PACKET_COMPR_TYPE_NONE)
            {
                mppcCompressor = new Compressor((SlidingWindowSize)compressType);
            }

            if (decompressType != CompressionType.PACKET_COMPR_TYPE_NONE)
            {
                mppcDecompressor = new Decompressor((SlidingWindowSize)decompressType);
            }
            this.Sender = sender;
        }