Register for your free account! | Forgot your password?

You last visited: Today at 17:23

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



KillConnection

Discussion on KillConnection within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
bryce16's Avatar
 
elite*gold: 0
Join Date: Oct 2010
Posts: 47
Received Thanks: 3
Question KillConnection

So Iv'e recently been having some 'fun' with the KillConnection file Fang provided me with on another thread which I find very useful as it helps keep issues with users connections away from the project.
I do have two question's i'd like to be answered as soon as possible as I would like to know what exactly do these codes mean and do. I know what the KillConnection implementation does and how it effects the overall project. I found these following codes laying around on a source I can't seem to remember but I would like to know how they work.

Code:
if (Now.Second >= 0)
            {
                MySql.Data.MySqlClient.MySqlConnection conn = DataHolder.MySqlConnection;
                // conn.Open();
                conn.Dispose();
                //conn.Open();
                KillConnections.Kill();
                GameServer.Enable();
                AuthServer.Enable();
            }
Code:
if (Now >= KillProcesss)
            {
                KillConnections.Kill();
                KillProcesss = DateTime.Now.AddSeconds(30);
                //Console.WriteLine("");

            }
Code:
public static DateTime KillProcesss = DateTime.Now.AddSeconds(30);
bryce16 is offline  
Reply




All times are GMT +1. The time now is 17:23.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.