/// <summary> /// Constructor /// </summary> /// <param name="id">Channel ID</param> /// <param name="name">Channel Name</param> /// <param name="options">Channel Options</param> /// <param name="chunkSize">Max chunk size</param> /// <param name="compressType">Compress Type</param> /// <param name="decompressType">Decompress Type</param> /// <param name="sender">Method used to send packet</param> 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; }
/// <summary> /// Constructor /// </summary> /// <param name="id">Channel ID</param> /// <param name="name">Channel Name</param> /// <param name="options">Channel Options</param> /// <param name="chunkSize">Max chunk size</param> /// <param name="compressType">Compress Type</param> /// <param name="decompressType">Decompress Type</param> /// <param name="sender">Method used to send packet</param> public ServerStaticVirtualChannel(UInt16 id, string name, Channel_Options options, uint chunkSize, CompressionType compressType, CompressionType decompressType, SendSVCData sender) : base(id, name, options, chunkSize, compressType, decompressType, sender) { }
/// <summary> /// Constructor /// </summary> /// <param name="id">Channel ID</param> /// <param name="name">Channel Name</param> /// <param name="options">Channel Options</param> /// <param name="chunkSize">Max chunk size</param> /// <param name="compressType">Compress Type</param> /// <param name="decompressType">Decompress Type</param> /// <param name="sender">Method used to send packet</param> public ClientStaticVirtualChannel(UInt16 id, string name, Channel_Options options, uint chunkSize, CompressionType compressType, CompressionType decompressType, SendSVCData sender) : base(id, name, options, chunkSize, compressType, decompressType, sender) { }
/// <summary> /// Constructor /// </summary> /// <param name="id">Channel ID</param> /// <param name="name">Channel Name</param> /// <param name="options">Channel Options</param> /// <param name="chunkSize">Max chunk size</param> /// <param name="compressType">Compress Type</param> /// <param name="decompressType">Decompress Type</param> /// <param name="sender">Method used to send packet</param> 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; }