예제 #1
0
파일: Form1.cs 프로젝트: sps014/HTTP-Server
 private void button1_Click(object sender, EventArgs e)
 {
     if (!server.IsRunning)
     {
         server.Start();
         button1.Text = "Stop";
     }
     else
     {
         button1.Text = "Start";
         server.Stop();
     }
 }
예제 #2
0
        void StartServer()
        {
            SonicHttpServer sonicHttpServer = new SonicHttpServer(9595);

            sonicHttpServer.OnConnection += SonicHttpServer_OnConnection;
            sonicHttpServer.Start(2);
        }