コード例 #1
0
ファイル: UdpBootstrap.cs プロジェクト: gedo4547/letter
        public override async Task BuildAsync()
        {
            await base.BuildAsync();

            this.memoryPool         = SlabMemoryPoolFactory.Create(this.options.MemoryPoolOptions);
            this.schedulerAllocator = new SchedulerAllocator(this.options.SchedulerCount);
        }
コード例 #2
0
        public TcpClientChannel(SchedulerAllocator allocator, MemoryPool <byte> memoryPool, TcpClientOptions options,
                                Action <IFilterPipeline <ITcpSession> > handler, SslFeature sslFeature)

            : base(handler, sslFeature, options)
        {
            this.memoryPool         = memoryPool;
            this.schedulerAllocator = allocator;
        }
コード例 #3
0
ファイル: UdpChannel.cs プロジェクト: gedo4547/letter
        public UdpChannel(SchedulerAllocator allocator, MemoryPool <byte> memoryPool, UdpOptions options, Action <IFilterPipeline <IUdpSession> > handler)
        {
            this.memoryPool         = memoryPool;
            this.schedulerAllocator = allocator;

            base.ConfigurationSelfOptions(options);
            base.ConfigurationSelfFilter(handler);
        }