コード例 #1
0
ファイル: NetServer.cs プロジェクト: rubiruchi/.NET-MiniNet
        public NetServer(INetServerOptions options = null)
        {
            this.Options       = options ?? NetServerOptions.Create();
            this.SocketArgPool = new SocketEventArgPool(this.Options.MaxConnections);
            this.BufferPool    = new BufferPool(this.Options.BufferSize, this.Options.MaxConnections);

            this.OnListen  = delegate { };
            this.OnConnect = delegate { };
            this.OnFault   = delegate { };
        }
コード例 #2
0
ファイル: NetServer.cs プロジェクト: Q-Smith/MS.NET-MiniNet
        public NetServer(INetServerOptions options = null)
        {
            this.Options = options ?? NetServerOptions.Create();
            this.SocketArgPool = new SocketEventArgPool(this.Options.MaxConnections);
            this.BufferPool = new BufferPool(this.Options.BufferSize, this.Options.MaxConnections);

            this.OnListen = delegate { };
            this.OnConnect = delegate { };
            this.OnFault = delegate { };
        }