コード例 #1
0
 public ClientConnection(Socket socket, AsynchronousServer.Server server,
                         ServerConfiguration configuration, Dictionary <string, IWebSocketService> webSocketServices,
                         HTTPRequest request)
     : this(socket, server, configuration, webSocketServices)
 {
     this.request = request;
 }
コード例 #2
0
            public Server(ServerConfiguration configuration)
            {
                this.configuration = configuration;

                server = new AsynchronousServer.Server(configuration,
                                                       (handler, s) =>
                {
                    return(new ClientConnection(handler, s, configuration, webSocketServices));
                });
            }
コード例 #3
0
            public Server(ServerConfiguration configuration)
            {
                this.configuration = configuration;

                server = new AsynchronousServer.Server(configuration,
                    (handler, s) =>
                    {
                        return new ClientConnection(handler, s, configuration, webSocketServices);
                    });
            }
コード例 #4
0
            public Server(ServerConfiguration configuration)
            {
                this.configuration = configuration;

                server = new AsynchronousServer.Server(configuration,
                                                       (handler, s) =>
                {
                    return(new ClientConnection(handler, this, configuration));
                });

                requestChainOfResponsibility.Add(new FallBackRequestResponsibility());
            }
コード例 #5
0
            public Server(ServerConfiguration configuration)
            {
                this.configuration = configuration;

                server = new AsynchronousServer.Server(configuration,
                    (handler, s) =>
                    {
                        return new ClientConnection(handler, this, configuration);
                    });

                requestChainOfResponsibility.Add(new FallBackRequestResponsibility());
            }
コード例 #6
0
            public ClientConnection(Socket socket, AsynchronousServer.Server server,
                                    ServerConfiguration configuration, Dictionary <string, IWebSocketService> webSocketServices)
                : base(socket, server)
            {
                this.configuration     = configuration;
                this.server            = server;
                this.webSocketServices = webSocketServices;

                data    = new List <byte>();
                frame   = new WebSocketFrame();
                request = new HTTPRequest();

                ConnectionRead += StatefulWebSocketHandShake;
            }
コード例 #7
0
            public ClientConnection(Socket socket, AsynchronousServer.Server server,
                ServerConfiguration configuration, Dictionary<string, IWebSocketService> webSocketServices)
                : base(socket, server)
            {
                this.configuration = configuration;
                this.server = server;
                this.webSocketServices = webSocketServices;

                data = new List<byte>();
                frame = new WebSocketFrame();
                request = new HTTPRequest();

                ConnectionRead += StatefulWebSocketHandShake;
            }