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;
}