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); })); }
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") + ""); }