public KcpChannelPipeline(KcpSocketChannel channel, KcpOptions kcpOptions) : base(channel) { this.options = kcpOptions; this.updateKcpTimer = new System.Threading.Timer((e) => { update(iclock()); }, null, TimeSpan.Zero, TimeSpan.FromMilliseconds(33)); this.timer = new System.Threading.Timer((e) => { this.HeatBeat(); }, null, TimeSpan.Zero, TimeSpan.FromSeconds(5)); }
public KcpSocketChannel(ChannelOptions options, KcpOptions kcpOptions) : base(options) { this.Pipeline = new KcpChannelPipeline(this, kcpOptions); }