示例#1
0
        /// <summary>
        /// Creates a new instance of <see cref="GPCMClient"/>
        /// </summary>
        public GPCMServer(string serverName, DatabaseDriver databaseDriver, IPAddress address, int port) : base(serverName, address, port)
        {
            //GPCMHandler.DBQuery = new GPCMDBQuery(driver);

            DB = databaseDriver;

            _dbKeeper = new DBKeeper(databaseDriver);
            _dbKeeper.Run();

            //KeepAliveManagement();
            //PlayerStatusUpdate();
            // Setup timer. Every 15 seconds should be sufficient
            // Set connection handling
        }
示例#2
0
 public GPSPServer(string serverName, DatabaseDriver databaseDriver, IPAddress address, int port) : base(serverName, address, port)
 {
     DB        = databaseDriver;
     _dbKeeper = new DBKeeper(databaseDriver);
     _dbKeeper.Run();
 }