private void BanPlayer() { // Automatically shuts down the players connection udpSocket.CloseSocket(); MessageBox.Show("You Have Been Banned"); Application.Exit(); }
private void ServerClose(object sender, EventArgs e) { udpSocket.CloseSocket(); tcpSocket.CloseSocket(); Application.Exit(); }