Summary of the invention
In view of this, the embodiment of the present invention provides a kind of mthods, systems and devices upgrading business server information on client, to solve the problem that cannot upgrade business server information on client in prior art economically and timely.
The embodiment of the present invention is achieved in that
Upgrade a method for business server information on client, when configuration server obtains service server current information, and after generating service server list configuration file according to described current information, comprise step:
Client downloads business server information, described business server information is all or part of of described service server list configuration file;
Client utilizes the described business server information downloaded to upgrade local service server info.
Upgrade a method for business server information on client, comprising:
Client initiates business server information inquiry request to configuration server end, makes configuration server end obtain service server current information according to described inquiry request, and generates service server list configuration file;
Business server information described in client downloads, described business server information is all or part of of described service server list configuration file;
Client utilizes the described business server information downloaded to upgrade local service server info.
Upgrade a system for business server information on client, comprise configuration server, client, wherein,
Configuration server, for obtaining service server current information, and generates service server list configuration file according to described service server current information;
Client, for downloading described business server information, described business server information is all or part of of described service server list configuration file; And,
Local service server info is upgraded for utilizing the described business server information of download.
Upgrade a system for business server information on client, comprise client, configuration server, wherein,
Client, for initiating business server information inquiry request to configuration server, making configuration server obtain service server current information according to described inquiry request, and generating service server list configuration file; And,
For downloading described business server information, described business server information is all or part of of described service server list configuration file; And,
Local service server info is upgraded for utilizing the described business server information of download;
Configuration server, for obtaining service server current information according to described inquiry request, and generates service server list configuration file according to described service server current information.
A kind of configuration server, comprising:
Acquiring unit, for obtaining service server current information;
Configuration file generation unit, for according to the described service server current information obtained, generates service server list configuration file.
A kind of configuration server, comprising:
Receiving element, for receiving the business server information inquiry request that client sends;
Acquiring unit, for according to described inquiry request, obtains service server current information;
Configuration file generation unit, for according to the described service server current information obtained, generates service server list configuration file.
A kind of client, comprising:
Download unit, for from configuration server downloading service server info;
Updating block, upgrades local service server info for utilizing the described business server information of download.
A kind of client, comprising:
Transmitting element, for sending business server information inquiry request to configuration server;
Download unit, for from configuration server downloading service server info;
Updating block, upgrades local service server info for utilizing the described business server information of download.
Compared with prior art, the technical scheme that the embodiment of the present invention provides has the following advantages and feature: the embodiment of the present invention is by service server current information in configuration server acquisition system, and generate service server list configuration file according to this information, client can, according to actual conditions needs, utilize the relevant information of the service server list configuration file generated to upgrade local service server info at any time.And without the need to upgrading when bag is issued and just can carry out the renewal of business server information carrying out client, thus client can be realized upgrade local service server info economically and timely.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of method upgrading business server information on client, when configuration server end obtains service server current information, and after generating service server list configuration file according to obtained service server current information, the relevant information in this service server list configuration file can be utilized to carry out the renewal of business server information on client, wherein, in order to improve accuracy and the promptness of service server list configuration information, a time interval can be set, configuration server carries out the acquisition of service server current information in real time according to the set time interval, to realize the object of Real-time Obtaining business server information.When upgrading business server information on client, need following steps be performed:
Step 101: client downloads business server information, this business server information is all or part of of service server list configuration file.
In a step 101, client downloads business server information can comprise following two kinds of situations: business server information can be service server list configuration file, service server list information and service server state information is contained in this file, this service server configuration file can directly be downloaded by client, and utilizes this configuration file to upgrade local service server info.
But, for the system having multiple service server, under normal circumstances, the change frequency of the running status of service server will far away higher than the change frequency of service server number in system, that is, after the state of service server has carried out repeatedly changing, just there is an additions and deletions situation in the service server perhaps in system.And if each client is all downloaded by whole service server list configuration file, the huge waste of Internet resources can be caused undoubtedly, therefore, mode service server list information and service server state information being generated respectively corresponding document can be adopted to solve the problems referred to above.
After generation service server list. information file and service server status information file, because the service server listing file of service server list in expression system is relatively large, therefore its time generated is also longer, if client carries out the download of service server listing file at this moment, to likely download to the stolen goods data write, thus affect the accuracy of business server information renewal.
For this situation, can take as under type is avoided:
Service server configuration file can comprise service server status information file and service server list. information file, simultaneously, for service server list. information file is equipped with an identification document, this identification document and service server list. information file are one-to-one relationship, but be far smaller than service server list. information file, such as by combination of numbers, the check codes of monogram or service server list. information file etc. are as the mark of this file, like this, client is when carrying out the download of business server information, without the need to all downloading, in the following ways: the identification document of client first corresponding to downloading service server list message file, and the identification document of this file and local service server list message file is contrasted, if consistent, then illustrate that service server list. information file upgrades, service server status information file only need carry out downloading by client, if and comparing result is inconsistent, then illustrate that service server list. information file upgrades, client needs service server status information file and service server list. information file all to download.
Step 102: client utilizes the business server information downloaded to upgrade local service server info.
In a step 102, client can upgrade local service server info by utilizing the business server information downloaded to cover the modes such as local service server info.
In the embodiment of the present invention, configuration server end is by service server current information in acquisition system, and generate service server list configuration file according to this information, client can, according to actual conditions needs, utilize the service server list configuration file generated to carry out the renewal of business server information at any time.And without the need to upgrading when bag is issued and could realize the renewal of business server information carrying out client, thus client can be realized upgrade business server information economically and timely.
The embodiment of the present invention additionally provides a kind of method upgrading business server information on client, concrete steps as shown in Figure 2:
Step 201: client initiates business server information inquiry request to configuration server, makes configuration server obtain service server current information according to described inquiry request, and generates service server list configuration file.
In step 201, user is after login client, first can initiate service server list configuration information inquiring request to configuration server, configuration server is after receiving this inquiry request, obtain service server current information according to this inquiry request, and generate service server list configuration file.
Step 202: client downloads business server information, this business server information is all or part of of service server list configuration file.
In step 202., client downloads business server information can comprise following two kinds of situations: business server information can be service server list configuration file, service server list information and service server state information is contained in this file, this service server configuration file can directly be downloaded by client, and utilizes this configuration file to upgrade local service server info.
But, for the system having multiple service server, under normal circumstances, the change frequency of the running status of service server will far away higher than the change frequency of service server number in system, that is, after the state of service server has carried out repeatedly changing, just there is an additions and deletions situation in the service server perhaps in system.And if each client is all downloaded by whole service server list configuration file, the huge waste of Internet resources can be caused undoubtedly, therefore, mode service server list information and service server state information being generated respectively corresponding document can be adopted to solve the problems referred to above.
After generation service server list. information file and service server status information file, because the service server listing file of service server list in expression system is relatively large, therefore its time generated is also longer, if client carries out the download of service server listing file at this moment, to likely download to the stolen goods data write, thus affect the accuracy of business server information renewal.
For this situation, can take as under type is avoided:
Service server configuration file can comprise service server status information file and service server list. information file, simultaneously, for service server list. information file is equipped with an identification document, this identification document and service server list. information file are one-to-one relationship, but be far smaller than service server list. information file, such as by combination of numbers, the check codes of monogram or service server list. information file etc. are as the mark of this file, like this, client is when carrying out the download of business server information, without the need to all downloading, in the following ways: the identification document of client first corresponding to downloading service server list message file, and the identification document of this file and local service server list message file is contrasted, if consistent, then illustrate that service server list. information file upgrades, service server status information file only need carry out downloading by client, if and comparing result is inconsistent, then illustrate that service server list. information file upgrades, client needs service server status information file and service server list. information file all to download.
Step 203: client utilizes the server info downloaded to upgrade local service server info.
In step 203, client can upgrade local service server info by utilizing the business server information downloaded to cover the modes such as local service server info.
In the embodiment of the present invention, client can send business server information inquiry request to configuration server as required, configuration server is by service server current information in acquisition system, and generating service server list configuration file according to this information, client utilizes the service server list configuration file generated to carry out the renewal of business server information.And without the need to upgrading when bag is issued and could realize the renewal of business server information carrying out client, thus client can be realized upgrade business server information economically and timely.
Correspondingly, the embodiment of the present invention additionally provides a kind of system upgrading business server information on client, and as shown in Figure 3, this system comprises:
Configuration server 301, for obtaining service server current information, and generates service server list configuration file according to this service server current information;
Client 302, for downloading service server info, wherein, business server information is all or part of of service server list configuration file; And,
Local service server info is upgraded for utilizing the business server information of download.
The embodiment of the present invention additionally provides the another kind of system upgrading business server information on client, and as shown in Figure 4, this system comprises:
Client 401, for initiating business service information inquiring request to configuration server, making configuration server obtain service server current information according to this inquiry request, and generating service server list configuration file; And,
For downloading service server info, this business server information is all or part of of service server list configuration file; And,
Local service server info is upgraded for utilizing the business server information of download;
Configuration server 402, for obtaining service server current information according to inquiry request, and generates service server list configuration file according to the service server current information obtained.
Meanwhile, present invention also offers a kind of configuration server, as shown in Figure 5, this configuration server comprises:
Acquiring unit 501, for obtaining service server current information;
Configuration file generation unit 502, for according to the service server current information obtained, generates service server list configuration file.
Present invention also offers another kind of configuration server, as shown in Figure 6, this configuration server comprises:
Receiving element 601, for receiving the business server information inquiry request that client sends;
Acquiring unit 602, for according to the inquiry request received, obtains service server current information;
Configuration file generation unit 603, for according to the service server current information obtained, generates service server list configuration file.
Finally, present invention also offers a kind of client, as shown in Figure 7, this client comprises:
Download unit 701, for from configuration server downloading service server info;
Updating block 702, upgrades local service server info for utilizing the business server information of download.
Present invention also offers another kind of client, as shown in Figure 8, this client comprises:
Transmitting element 801, for sending business server information inquiry request to configuration server;
Download unit 802, for from configuration server downloading service server info;
Updating block 803, upgrades local service server info for utilizing the business server information of download.
In conjunction with above method and embody rule scene, be described further below to technical scheme involved in the present invention, as shown in Figure 9, this figure is the technical scheme provided by the present invention flow chart that server info upgrades when being applied to large-scale online games.Wherein, game server can think service server, and configuration server comprises global server and update server.
Step 901: the state information obtaining current all game servers, generates game server list configuration file.
In step 901, global server obtains the current information of all game servers, and generate game server list configuration file, this wherein, special network game operation management system can be adopted to realize the generation of game server list configuration file, the online game operational system etc. of such as Kingsoft Co.'s independent development, also manually can configure the generation realizing game server list configuration file.
It should be noted that, due to the existing game server list information of the information comprised in game server list configuration file, this information is used for telling user which game server current is in normal operation, also comprise state information, this information is for telling the running status of each game server involved in user list information.Under normal conditions, the change frequency of state information will be far longer than the change frequency of game server list information, and again because game server list configuration file is usually larger, upgrade the required time long, reading the stolen goods data write in order to prevent game client, game server list configuration file can be divided into state information and game server list information two files to operate.In addition, in view of game server list. information file is comparatively large and the update cycle is longer, can while this file of generation, CRC (the CyclicRedundancyCheck of this less comparatively speaking file is provided, CRC) file, check whether game server list information upgrades for game client, then determine the need of download games server list message file.
Step 902: generated game server configuration file is uploaded to update server assigned address.
Wherein, the renewal of update server game server information in the client of playing.The game server list configuration file generated can be uploaded in update server by Internet network, downloads for game client.It should be noted that, herein, can think that configuration server comprises global server and update server, on the configuration server, achieve the generation of game server list configuration file, and support that client therefrom downloads this game server list configuration file.
In order to the relevant information enabling game client know game server in time, game server list configuration file is needed to carry out real-time update, therefore can arrange one and upgrade interval time, often upgrade interval time through one, just repeat step 901 and a step 902, under normal circumstances, this time can be determined according to relevant informations such as the quantity of the status transmission of network or game user, to realize upgrading in time of game server information.
Step 903: the status information file in client downloads game server list configuration file and the CRC check file of game server list. information file.
In step 903, client can pass through file transfer protocol (FTP) (FTP) or HTML (Hypertext Markup Language) (HTTP) download status information file in game server list configuration file and game server list. information file CRC check file from update server.
Step 904-step 905: the CRC check file of the CRC check file of the game server list. information file downloaded to and local game server list message file contrasts by client, whether both judgements are identical, if different, represent that game server list information has done to upgrade, enter step 906; Otherwise, represent that game server list information does not do and upgrade, enter step 907.
In this step, local game server list message file refers to the game server list. information file that client downloaded to from update server last time, the CRC check file of the CRC check file of the game server list. information file this downloaded to and the game server list. information file of last downloaded contrasts, if consistent, then illustrate that game server list information does not do to upgrade, if inconsistent, then illustrate that game server list information has done and upgrade.
Step 906: client downloads game server list. information file from update server, enters step 907.
Step 907: client, according to current game server list. information file and status information file, selects the game server that will connect, to start game.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.