Exemple #1
0
        private void Main_Load(object sender, EventArgs e)
        {
            Resizable = false;

            // Setup a socket server
            _CLServer = new CLCore.CLServer("SKSK-B6FC-JFOQ-7DTQ", 8000);
            _CLServer.DetectedNotAllowedIP         += CLServer_DetectedNotAllowedIP;
            _CLServer.TcpServer.ClientConnected    += Server_ClientConnected;
            _CLServer.TcpServer.ClientDisconnected += Server_ClientDisconnected;
            Invoke(new MethodInvoker(() =>
            {
                logBox.AppendText(string.Format("CLServer is started in Port 8000") + Environment.NewLine);
            }));
        }
Exemple #2
0
 private void BtnTest_Click(object sender, EventArgs e)
 {
     CLCore.CLServer sTest = new CLCore.CLServer("SKSK-B6FC-JFOQ-7DTQ");
     MessageBox.Show(sTest.CheckConnectionByIP("127.0.0.1") + "");
 }