public HttpConnectionHandler(HttpServer server, Socket s)
        {
            NetworkStream ns = new NetworkStream(s);

            this.socket = s;
            this.sr = new StreamReader(ns);
            this.server = server;
        }
示例#2
0
        static void Main()
        {
            try
            {
                Program.settings.Load();
                Program.sessionsCollection.Load();

                jsonGamesUpdater = new JsonGamesUpdater();
                httpServer = new HttpServer();

                SetupMainForm();
                StartWebserver();
                ShowInitialMessage(Program.frmMain);

                Application.Run(Program.frmMain);
            }
            catch (Exception e)
            {
                FrmSelectableMessage.ShowException(e);
            }
        }