Akane.Server.stop C# (CSharp) 메소드

stop() 공개 메소드

public stop ( ) : void
리턴 void
        public void stop()
        {
            this.listener.Stop();
        }

Usage Example

예제 #1
0
파일: Form.cs 프로젝트: KNCT-KPC/Bungo
        /* サーバ */
        private void button2_Click(object sender, EventArgs e)
        {
            if (server != null)
            {
                server.stop();
                server       = null;
                button2.Text = "開始";
                printLog("サーバ終了");
                return;
            }

            server       = new Server(Decimal.ToInt32(numericUpDown1.Value));
            button2.Text = "終了";
            printLog("サーバ起動");
        }