Example #1
0
        private void btnListen_Click(object sender, EventArgs e)
        {
            int       portNum    = 8888;
            IPAddress ipAddr     = IPAddress.Parse("127.0.0.1");
            Server    mainServer = new Server(ipAddr);

            mainServer.StartListening(portNum);
            txtLog.Text = "Сервер запущен! " + "\r\n";
        }