Ejemplo n.º 1
0
        public HttpConnectionHandler(HttpServer server, Socket s)
        {
            NetworkStream ns = new NetworkStream(s);

            this.socket = s;
            this.sr = new StreamReader(ns);
            this.server = server;
        }
Ejemplo n.º 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);
            }
        }