CN106161413A - User end inserting method and system - Google Patents

User end inserting method and system Download PDF

Info

Publication number
CN106161413A
CN106161413A CN201510206041.0A CN201510206041A CN106161413A CN 106161413 A CN106161413 A CN 106161413A CN 201510206041 A CN201510206041 A CN 201510206041A CN 106161413 A CN106161413 A CN 106161413A
Authority
CN
China
Prior art keywords
server end
allocation list
xml
response message
domain name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510206041.0A
Other languages
Chinese (zh)
Inventor
韦思昌
胡道庭
魏民强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Burson Marsteller Network Game Development (shenzhen) Co Ltd
Original Assignee
Burson Marsteller Network Game Development (shenzhen) Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Burson Marsteller Network Game Development (shenzhen) Co Ltd filed Critical Burson Marsteller Network Game Development (shenzhen) Co Ltd
Priority to CN201510206041.0A priority Critical patent/CN106161413A/en
Publication of CN106161413A publication Critical patent/CN106161413A/en
Pending legal-status Critical Current

Links

Abstract

The present invention relates to a kind of user end inserting method and system, its method includes: reading XML allocation list, described XML allocation list records at least one server end domain name;At least one server end domain name in XML allocation list described in poll, initiates HTTP request;Judge whether to receive the response message from server end, the most then set up the connection with this server end.The present invention can solve client maintenance high cost, operation inconvenience, update problem not in time.

Description

User end inserting method and system
Technical field
The present invention relates to the technical field that client request server accesses, particularly relate to a kind of client's termination Enter method and system.
Background technology
In prior art, for the mobile APP client data by domain name request service end, the most in the industry Universal processing mode is directly to write a fixing domain name in the client released, this kind of process Drawback following points:
First, if currently used domain name is expired, that is for all the most issued visitor using this domain name Family end subscriber will be unable to successful request server, it is necessary to user updates client;
Second, the machine if current server is delayed, we will feel simply helpless, because domain name is the most fixing, not have Way enables standby server;
3rd, issue new client and enable new domain name, owing to DNS exists caching, domain name comes into force needs Regular hour, so being still required for safeguarding multiple client release without domain name in the regular hour.
Visible, prior art can cause updating client because of reasons such as domain name is expired, renewals when server End or client such as cannot access at the situation, can cause that maintenance cost is too high for this situation, operation inconvenience, Update problem not in time.
Summary of the invention
Based on this, it is necessary to for problems of the prior art, it is provided that a kind of user end inserting method and System, it can solve client maintenance high cost, operation inconvenience, update problem not in time.
A kind of user end inserting method, comprising:
Reading XML allocation list, described XML allocation list records at least one server end domain name;
At least one server end domain name in XML allocation list described in poll, initiates HTTP request;
Judge whether to receive the response message from server end,
The most then set up the connection with this server end.
Wherein in an embodiment, before the step of described reading XML allocation list, also include:
Judge that the network of client connects whether fault, if it is not, then perform the step of described reading XML allocation list Suddenly.
Wherein in an embodiment, before the step of described reading XML allocation list, also include:
Initiate HTTP request, obtain conditional code;
Judge whether HTTP request asks successfully according to described conditional code, if it is not, then perform described judgement visitor The network of family end connects the step of whether fault;The most then judge the attribute of described conditional code, according to described The attribute of conditional code updates the XML allocation list that client is locally stored.
Wherein in an embodiment, described reading XML allocation list is from the locally downloading storage of server end XML allocation list.
Wherein in an embodiment, it is locally stored that the described attribute according to described conditional code updates client The step of XML allocation list includes:
Extract the mark of the XML allocation list of server end;
Judge the XML allocation list of server end and locally stored XML allocation list identify whether consistent;
If it is not, then with the XML allocation list of the server end extracted, update the XML that client is locally stored Allocation list.
Wherein in an embodiment, in described method, when not receiving the response message from server end Time, described method is further comprising the steps of:
Acquisition current time is stabbed;
Judge that current time is whether in the time range of information of the withdrawing indication described in XML allocation list;
The information of withdrawing described in XML allocation list that the most then reads is in order to show.
Wherein in an embodiment, the mark of described XML allocation list includes the version number of XML allocation list Or renewal timestamp.
At least one server end territory wherein in an embodiment, in XML allocation list described in described poll Name is initiated HTTP request and judges whether that the step receiving the response message from server end includes:
In the complete described XML allocation list of poll after the Servers-all end domain name of record, judge whether described in execution Receive the step of the response message from server end, if there is the response message from server end, then From the multiple response message received, randomly choose a server end corresponding to response message and set up therewith Connect, or from the multiple response message received order select server end corresponding to response message, And set up connection therewith, or select to meet from the server end that the multiple response message received are corresponding to preset The server end of condition also sets up connection therewith;Or,
In XML allocation list, the server end of a server end domain name indication of record initiates HTTP request After, judge whether to receive the step of the response message from server end described in execution once, should if existing Answer message, then corresponding with this response message server end is communicatively coupled, if not receiving response message, From XML allocation list, then select another server end domain name, and it is described to XML allocation list to return execution The server end of one server end domain name indication of middle record initiates the step of HTTP request, until receiving To response message, and the server end corresponding with this response message is set up and is connected.
A kind of client access system, comprising:
Data obtaining module, is used for reading XML allocation list, and described XML allocation list records at least one Server end domain name;
Polling request module, at least one the server end domain name in XML allocation list described in poll, send out Play HTTP request;And
Judge module, for judging whether to receive the response message from server end, the most then sets up Connection with this server end.
Wherein in an embodiment, also include in described system:
Request initiation module, is used for initiating HTTP request, obtains conditional code;Judge according to described conditional code Whether HTTP request asks successfully, if it is not, then perform the described network judging client to connect whether fault Step;The most then judge the attribute of described conditional code, update client originally according to the attribute of described conditional code The XML allocation list of ground storage.
The present invention, without changing client or updating client, gets final product the request domain name of intelligence switching server, Reduce maintenance cost;The server of more new domain name can be automatically accessed without user operation, improve operation Convenience;User without waiting for update client can automatically access server, reduce renewal not in time and Cannot with the problem of server attended operation, improve user experience.Further, according to HTTP The conditional codes such as the error code that request returns, it is determined that type of error also downloads xml configuration file parsing new domain name Mode.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of method in one of them embodiment of the present invention;
Fig. 2 is the schematic flow sheet of method in one of them embodiment of the present invention;
Fig. 3 is the schematic flow sheet of method in one of them embodiment of the present invention;
Fig. 4 is the schematic flow sheet of method in one of them embodiment of the present invention;
Fig. 5 is the schematic flow sheet of method in one of them embodiment of the present invention;
Fig. 6 is the schematic flow sheet of method in one of them embodiment of the present invention;
Fig. 7 is the structural representation of system in one of them embodiment of the present invention.
Detailed description of the invention
Access technology based on client and server, the present invention autopolling mechanism by domain name, real Now without change client can intelligence switching server request domain name technology, thus reduce maintenance cost, Shorten renewal and the turn-on time of server, improve user experience.Describe in detail below in conjunction with accompanying drawing Each specific embodiment of the present invention.
As it is shown in figure 1, provide a kind of user end inserting method in one embodiment of the invention.The party Method can automatically access new service in time primarily to realize client when server end generation address change The mode of device end.This user end inserting method comprises the following steps S100 to step S300.
In the step s 100, client reads XML allocation list, and this XML allocation list records at least one Individual server end domain name.The hereinbefore domain name mentioned refer to main frame (host), subdomain (sub domain) and The Internet address (address) that the form in territory (domain) represents, the IP address (IP address) represented with numeral Relatively.The most first attribute civil aviaton of domain name addresses, restriction domain name (full qualified domain name). After generally computer keys in domain name inside Web address field, domain name addresses is translated as this domain name by existing dns server Behind corresponding IP address, could normal linking objective server.
In one embodiment of the invention, XML allocation list can be only fitted to client this locality, it is also possible to is It is arranged on server end.If being arranged on server end, when needs read XML allocation list, client Can first from server end download XML allocation list to this locality, read XML allocation list the most again.
Additionally, in order to ensure that the XML allocation list of local preservation keeps consistent with server side content, then exist In one of them embodiment of the present invention, when server end domain name has variation, server side can update XML Allocation list, and after client is successfully connected server end every time, all download XML configuration from server end Table is to local.Therefore, in another embodiment of the present invention, as in figure 2 it is shown, before step S100 Further comprising the steps of:
Step S110, downloads XML allocation list to this locality from server end.
But, first after server end downloads XML allocation list, update the XML configuration that this locality preserves The step of table can be in the following ways.
Such as, when receive from server end feedback update notification or client be successfully connected every time After server end, the XML allocation list recorded on server end can be extracted in order to update local preservation XML allocation list.
Or, as it is shown on figure 3, step S121 is first carried out: extract the XML recorded on server end and join Putting the version number of table or update the marks such as timestamp, this mark can be used as judging the XML configuration of local preservation Table is the most consistent with the XML allocation list that server end preserves, the XML configuration that server end herein preserves Table can be the XML allocation list of recent renewal.
Then, perform step S122: judge on server end the XML allocation list of record version number or Update timestamp etc. and identify whether consistent, the most then with the correlated identities in the local XML allocation list preserved The XML allocation list that different update client this locality preserves, otherwise, then extract the XML recorded on server end Allocation list is in order to update the XML allocation list of local preservation.Then, in above-mentioned steps S100, then change For reading the XML allocation list that this locality preserves.
In another embodiment of the present invention, XML allocation list except recording at least one server end domain name, The version number of XML allocation list can also be recorded, XML allocation list is positioned at content distributing network (CDN, i.e. Content Delivery Network) on storage address the withdraw information corresponding with server end domain name and Storage address or version number corresponding update in timestamp etc. at least one.Above-mentioned with server end domain name pair The information of withdrawing answered at least includes withdrawing time started, the end time of withdrawing, withdrawing the time limit and withdraw bulletin Any one in Deng.The storage address that above-mentioned XML allocation list is positioned on content distributing network can configure many Individual.
In step s 200, at least one the server end domain name in clients poll above-mentioned XML allocation list, Initiate HTTP request.In the present embodiment, according to the server end domain name described in above-mentioned XML allocation list, HTTP request is initiated, in order to realize poll successively to the server end of the server end domain name indication recorded. And the polling sequence of server end domain name can be to randomly choose in XML allocation list in above-mentioned XML allocation list The server end domain name recorded, or select according to order after the renewal time-sequencing of server end domain name, Or order selects the server end domain name described in XML allocation list, or is by traveling through above-mentioned XML The polling sequence selection modes such as the Servers-all end domain name described in allocation list.HTTP referred to herein Request refers to the request message from client to server end, including: the request in message first trip, to resource Method, the identifier of resource and the agreement etc. of use.
In step S300, client judges whether to receive the response message from server end.If existing From the response message of server end, then set up the connection with this server end;Otherwise, then terminate or read The information of withdrawing described in XML allocation list that takes is in order to show.
In one of them embodiment of the present invention, above-mentioned client judges whether to receive from server end Step S300 of response message include:
In step s 200, the Servers-all end territory of record in the complete above-mentioned XML allocation list of clients poll After Ming, perform judge whether to receive step S300 of the response message from server end, if exist from The response message of server end, then can randomly choose a response message from the multiple response message received Corresponding server end also sets up connection therewith;Or order selects one from the multiple response message received Server end that individual response message is corresponding also sets up connection therewith;Or from the multiple response message pair received The server end answered selects meet pre-conditioned server end and set up connection therewith.Certainly, if In the complete above-mentioned XML allocation list of clients poll after the Servers-all end domain name of record, from server end Response message only one of which, then just directly set up connection therewith.If the complete above-mentioned XML allocation list of poll is remembered Do not receive response message yet after the Servers-all end domain name of record, then terminate or read in XML allocation list That records withdraws information.
The present embodiment is mentioned pre-conditioned can be distance the closest (thing on such as network of client Reason distance) server end, the optimum server end of network transmission channels, server end that resource is the abundantest Etc. the server end that relatively optimizes.Network configuration can be optimized, it is to avoid all clients by the present embodiment The most only connect some server end, cause network blockage.
Additionally, in one of them embodiment of the present invention, above-mentioned client judges whether to receive from clothes Step S300 of the response message of business device end includes:
In step s 200, the server end domain name indication that client records in XML allocation list After server end initiates HTTP request, perform once to judge whether that receiving the response from server end disappears Step S300 of breath, if there is response message, server end corresponding with this response message the most immediately leads to Letter connects, if now not receiving response message, then makes client select another to take from XML allocation list Business device end domain name, and return the server end domain name that the above-mentioned client of execution records in XML allocation list The server end of indication initiates the step of HTTP request, until receiving response message, and disappears with this response The server end that breath is corresponding is set up and is connected.If the Servers-all end of record in the complete above-mentioned XML allocation list of poll Do not receive response message after domain name yet, then terminate or read to withdraw information described in XML allocation list.
The present embodiment can simplify access process, shortens the time of access server side.In this embodiment, visitor Family end selects the mode of a server end domain name can be to randomly choose XML configuration from XML allocation list Server end domain name described in table, or according to order choosing after the renewal time-sequencing of server end domain name Select, can also is that order selects the current server end domain name etc. recorded in XML allocation list.
In above-mentioned steps S300, above-mentioned foundation can use in this area with the step of the connection of this server end Conventional connected mode, after usual client initiates HTTP request, if successful connection, then Server end can send response message, otherwise, then the unsuccessful notification message of feedback link or do not feed back appoint What is the need cease.In each embodiment above-mentioned, when not receiving the response message of server feedback, such as Fig. 4 institute Show, in one of them embodiment of the present invention, read in XML allocation list in above-mentioned steps S300 and remember In the step of the information of withdrawing carried or when step S300 does not receives the response message from server end Time also include:
Step S310, obtains current time stamp, it is judged that whether current time is described in XML allocation list Withdraw in the time range of information indication, the most then extract and withdraw information described in above-mentioned XML allocation list It is shown, otherwise, then client processes voluntarily or terminates to connect, or again initiates above-mentioned steps S100 accesses again to the process of step S300.
The present embodiment is withdrawn information indication time range can by the information of withdrawing is withdrawn the time started, Withdrawing end time, the time limit of withdrawing etc. calculates acquisition.
Based on each embodiment above-mentioned, in another embodiment of the present invention, read in above-mentioned steps S100 Before taking the step of XML allocation list, also include:
Judge that the network of client connects whether fault, if it is not, then perform the step of described reading XML allocation list Rapid S100, on the contrary terminate, or perform following step step S131 as shown in Figure 5 to step S134.
In the present embodiment, by by client go ping preset domain name judge client network connect be No there is fault, such as preset domain name can from default domain name table unrestricted choice, preset in domain name table and show Home and abroad domain name, as domestic for Baidu (http://www.baidu.com), is abroad google (http://www.google.com) etc..Gone the corresponding domain name of ping (domestic for Baidu by client (http://www.baidu.com), is abroad google (http://www.google.com)), if can not ping Logical, illustrate that the network of first client is problematic, to Client-Prompt network problem;If can lead to by ping Corresponding domain name, then explanation client network is no problem, it may be possible to domain name or server go wrong.
Based on each embodiment above-mentioned, in another embodiment of the present invention, as it is shown in figure 5, above-mentioned Before step S100 reads the step of XML allocation list, also include:
Step S131, according to a front successful connection or default server domain name, initiates HTTP request, Obtain conditional code;This conditional code refers to system mode code or the mistake returned according to HTTP request by operation layer Code etc., such as the flag value of operation layer feedback.
According to described conditional code, step S132, judges whether HTTP request asks successfully, if it is not, then perform The described network judging client connects step S120 of whether fault.And when judging according to described conditional code When HTTP request is asked successfully, then perform step S133.
Step S133, it is judged that the attribute of described conditional code;
Step S134, updates, according to the attribute of described conditional code, the XML allocation list that client is locally stored.
When generally conditional code is 200, represents and ask successfully;And conditional code be another about definite value time, Ke Yipei Put different processing modes.Such as, when conditional code is the first property value (such as-301), the most now business Layer interface information normally returns, and this state simply tells that webHost of client this time request is general soon Will go out of use, need client to update the XML allocation list that this locality preserves, in order to prevent backstage from artificially joining Put and make mistakes, therefore next time request be polled with up-to-date webHosts, until find one can be with normal request WebHost, if can not find, judge current time in system stamp whether start and end in xml configures Between, if, then show and withdraw public information, if not existing, client does acquiescence close friend's prompting.Therefore, When conditional code is the first property value (such as-301), step S134a in Fig. 6 can be performed and extract service After the XML allocation list of storage is in order to update locally stored XML allocation list on device, then perform above-mentioned steps S100 comprises above-mentioned steps S100 to step S300 to the process or Fig. 1 to Fig. 5 of step S300 Process.
When described conditional code is the second property value (such as-404), then the server being due up withdraws maintenance, Need to update and the XML allocation list that client is local withdraws the contents such as information, update caching xml herein During allocation list, in order to prevent from frequently writing caching, it is therefore desirable to the version number in the xml configuration downloaded Compare with the version number of local cache, if local xml version number is more than or equal to just having downloaded, the most not Update local cache, local cache to be updated, read up-to-date notice information of withdrawing after renewal and show Client.Therefore when conditional code is the second property value (such as-404), then by step S121 in Fig. 3 Update locally stored XML allocation list to step S122 process, after perform again above-mentioned steps S100 to step The process of rapid S300 or Fig. 1 to Fig. 5 comprise above-mentioned steps S100 to the process of step S300.
Or, as shown in Figure 6, when conditional code is the second property value (such as-404), then below execution Step:
Step S121a: extract the version number of the XML allocation list recorded on server end or update timestamp Deng mark, this mark can be used as judging the XML whether the XML allocation list of local preservation preserves with server end Allocation list is consistent;
Step S122b: judge the version number of the XML allocation list recorded on server end or update timestamp Etc. identifying whether that the correlated identities with the local XML allocation list preserved is consistent, the most do not update client The XML allocation list that end this locality preserves, the information of withdrawing in execution extraction XML allocation list that redirects is shown, Otherwise, then extract the XML allocation list recorded on server end in order to update the XML allocation list of local preservation, The information of withdrawing in execution extraction XML allocation list that redirects the most again is shown.The present embodiment can effectively simplify Part control flow, make that integrated operation is easier, flow performing more rapidly, reduce interaction time.And The phase that can be found in hereinbefore is resolved about extracting the correlation step that in XML allocation list, the information of withdrawing is shown Close explanation.
In the present embodiment, the decision error types such as the error code returned according to HTTP request also determine whether Download xml document is in order to update locally stored XML allocation list, thus is resolved newly by new allocation list Domain name implements poll.
Based on the user end inserting method shown in each embodiment above-mentioned, in another embodiment of the present invention, Additionally provide client access system, as it is shown in fig. 7, described system includes:
Data obtaining module 100, is used for reading, and above-mentioned XML allocation list records at least one server end Domain name;
Polling request module 200, at least one the server end domain name in poll above-mentioned XML allocation list, Initiate HTTP request;And
Judge module 300, for judging whether to receive the response message from server end, the most then builds The vertical connection with this server end.
Above-mentioned data obtaining module 100, polling request module 200 and judge module 300 are mainly respectively used to Perform above-mentioned steps S100, step S200 and step S300, therefore these three module implement process Can be found in the related description hereinbefore about above-mentioned steps S100, step S200 and step S300, at this not Tire out again and state.
Based on each embodiment above-mentioned, in one of them embodiment of the present invention, also wrap in said system Include:
Breakdown judge module, for judging that the network of client connects whether fault, if it is not, then perform above-mentioned Read the step of XML allocation list.Breakdown judge module for step S120 performing in Fig. 4, therefore this The process that implements of individual module can be found in hereinbefore related description about above-mentioned steps S120, at this no longer Tire out and state.
Based on each embodiment above-mentioned, in one of them embodiment of the present invention, also wrap in said system Include:
Request initiation module, is used for initiating HTTP request, obtains conditional code;Judge according to above-mentioned conditional code Whether HTTP request asks successfully, if it is not, then perform the above-mentioned network judging client to connect whether fault Step;The most then judge the attribute of above-mentioned conditional code, update client originally according to the attribute of above-mentioned conditional code The XML allocation list of ground storage.Step S131 that request initiation module is used for performing in Fig. 5 is to step S134 Process, therefore the process that implements of this module can be found in hereinbefore about above-mentioned steps S131 to step The related description of S134, is not repeated at this.
Based on each embodiment above-mentioned, in one of them embodiment of the present invention, above-mentioned request initiation module Also include with lower unit:
Extraction unit, for extracting the mark of the XML allocation list of server end;With
First judging unit, for judging that the XML allocation list of server end configures with locally stored XML Identifying whether of table is consistent;If it is not, then with the XML allocation list of the server end extracted, update client originally The XML allocation list of ground storage.Extraction unit and the first judging unit are for performing the step in above-mentioned Fig. 3 S121 and step S122, therefore the process that implements of this module can be found in hereinbefore about above-mentioned steps S121 and the related description of step S122, be not repeated at this.
Based on each embodiment above-mentioned, in one of them embodiment of the present invention, above-mentioned judge module 300 Also include with lower unit:
Second judging unit, is used for obtaining current time stamp, it is judged that whether current time is in XML allocation list In the time range of information of the withdrawing indication recorded;The most then read and withdraw letter described in XML allocation list Breath is in order to show.This second judging unit is for performing step S310 in Fig. 4, the therefore tool of this module Body realizes process and can be found in hereinbefore related description about above-mentioned steps S310, is not repeated at this.
Based on each embodiment above-mentioned, in one of them embodiment of the present invention, above-mentioned polling request module 200 and judge module 300 also include:
Above-mentioned polling request module 200 Servers-all end of record in the complete above-mentioned XML allocation list of poll After domain name, perform above-mentioned judge module 300, if there is the response message from server end, then from reception Multiple response message randomly choose a server end corresponding to response message and sets up connection therewith, or Person's server end that one response message of order selection is corresponding from the multiple response message received also is built therewith Vertical connection, or select to meet pre-conditioned clothes from the server end that the multiple response message received are corresponding Business device end also sets up connection therewith;Or,
Above-mentioned polling request module 200 is for a server end domain name indication of record in XML allocation list Server end initiate after HTTP request, perform the most above-mentioned judge module 300, if there is response message, Then corresponding with this response message server end is communicatively coupled, if not receiving response message, then from XML Allocation list selects another server end domain name, and return in the above-mentioned polling request module 200 of execution to In XML allocation list, the server end of a server end domain name indication of record initiates the step of HTTP request Suddenly, until receiving response message and corresponding with this response message server end is set up and is connected.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive above-mentioned reality Execute example method to add the mode of required general hardware platform by software and realize, naturally it is also possible to by firmly Part, but a lot of in the case of the former is more preferably embodiment.Based on such understanding, the technical side of the present invention The part that prior art is contributed by case the most in other words can embody with the form of software product, This computer software product be carried on a non-volatile computer readable storage medium (as ROM, magnetic disc, CD, server storage) in, including some instructions with so that a station terminal equipment (can be hands Machine, computer, client, or the network equipment etc.) perform the system knot described in each embodiment of the present invention Structure and method.
It should be noted that in the client access system of above-described embodiment offer, only with above-mentioned functional module Division be illustrated, above-mentioned functions can be distributed by different merits by actual application as desired Module can complete, client access system will be divided into different functional modules, to complete in system above Described all or part of function.And such deformation belongs to same design, still belong to present invention power Technical scheme claimed in profit claim.
Based on each embodiment above-mentioned, the present invention can need not update client i.e. can update visitor dynamically The domain name of the service end of family end request, reduce because move clothes or change backstage human cost that domain name needs and The human cost of client more redaction, can tell user's current server corresponding information in time simultaneously, keep away Exempt from customs examination user cause damage.
Additionally, in the case of situation occurs in server, it is only necessary to configure corresponding information by backstage, i.e. The status information pointing out client server current can be accomplished, allow Consumer's Experience more preferably can reduce customer loss;
Multiple domain name can also be configured, the situation that the domain name in current request goes wrong by server background Lower client can actively be switched to available domain name, it is to avoid user's appearance can not be used because of single domain name cannot The normal situation accessing application;When certain domain name will go out of use in the near future, can dynamically change territory Name, the series of problems caused when preventing from using discarded domain name request in advance.
Each technical characteristic of embodiment described above can combine arbitrarily, for making description succinct, the most right The all possible combination of each technical characteristic in above-described embodiment is all described, but, if these skills There is not contradiction in the combination of art feature, is all considered to be the scope that this specification is recorded.
Embodiment described above only have expressed the several embodiments of the present invention, and it describes more concrete and detailed, But can not therefore be construed as limiting the scope of the patent.It should be pointed out that, for this area For those of ordinary skill, without departing from the inventive concept of the premise, it is also possible to make some deformation and change Entering, these broadly fall into protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be with appended power Profit requires to be as the criterion.

Claims (10)

1. a user end inserting method, it is characterised in that described method includes:
Reading XML allocation list, described XML allocation list records at least one server end domain name;
At least one server end domain name in XML allocation list described in poll, initiates HTTP request;
Judge whether to receive the response message from server end,
The most then set up the connection with this server end.
User end inserting method the most according to claim 1, it is characterised in that at described reading XML Before the step of allocation list, also include:
Judge that the network of client connects whether fault, if it is not, then perform the step of described reading XML allocation list Suddenly.
User end inserting method the most according to claim 2, it is characterised in that at described reading XML Before the step of allocation list, also include:
Initiate HTTP request, obtain conditional code;
Judge whether HTTP request asks successfully according to described conditional code, if it is not, then perform described judgement visitor The network of family end connects the step of whether fault;The most then judge the attribute of described conditional code, according to described The attribute of conditional code updates the XML allocation list that client is locally stored.
User end inserting method the most according to claim 1, it is characterised in that described reading XML Allocation list is the XML allocation list from the locally downloading storage of server end.
User end inserting method the most according to claim 3, it is characterised in that described according to described shape The attribute of state code updates the step of the locally stored XML allocation list of client and includes:
Extract the mark of the XML allocation list of server end;
Judge the XML allocation list of server end and locally stored XML allocation list identify whether consistent;
If it is not, then with the XML allocation list of the server end extracted, update the XML that client is locally stored Allocation list.
User end inserting method the most according to claim 1, it is characterised in that in described method, when When not receiving the response message from server end, described method is further comprising the steps of:
Acquisition current time is stabbed;
Judge that current time is whether in the time range of information of the withdrawing indication described in XML allocation list;
The information of withdrawing described in XML allocation list that the most then reads is in order to show.
User end inserting method the most according to claim 5, it is characterised in that described XML configures The mark of table includes the version number of XML allocation list or updates timestamp.
User end inserting method the most according to claim 1, it is characterised in that described in described poll At least one server end domain name in XML allocation list initiate HTTP request and judging whether receive from The step of the response message of server end includes:
In the complete described XML allocation list of poll after the Servers-all end domain name of record, judge whether described in execution Receive the step of the response message from server end, if there is the response message from server end, then From the multiple response message received, randomly choose a server end corresponding to response message and set up therewith Connect, or from the multiple response message received order select server end corresponding to response message, And set up connection therewith, or select to meet from the server end that the multiple response message received are corresponding to preset The server end of condition also sets up connection therewith;Or,
In XML allocation list, the server end of a server end domain name indication of record initiates HTTP request After, judge whether to receive the step of the response message from server end described in execution once, should if existing Answer message, then corresponding with this response message server end is communicatively coupled, if not receiving response message, From XML allocation list, then select another server end domain name, and it is described to XML allocation list to return execution The server end of one server end domain name indication of middle record initiates the step of HTTP request, until receiving To response message, and the server end corresponding with this response message is set up and is connected.
9. a client access system, it is characterised in that described system includes:
Data obtaining module, is used for reading XML allocation list, and described XML allocation list records at least one Server end domain name;
Polling request module, at least one the server end domain name in XML allocation list described in poll, send out Play HTTP request;And
Judge module, for judging whether to receive the response message from server end, the most then sets up Connection with this server end.
Client access system the most according to claim 9, it is characterised in that in described system also Including:
Request initiation module, is used for initiating HTTP request, obtains conditional code;Judge according to described conditional code Whether HTTP request asks successfully, if it is not, then perform the described network judging client to connect whether fault Step;The most then judge the attribute of described conditional code, update client originally according to the attribute of described conditional code The XML allocation list of ground storage.
CN201510206041.0A 2015-04-27 2015-04-27 User end inserting method and system Pending CN106161413A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510206041.0A CN106161413A (en) 2015-04-27 2015-04-27 User end inserting method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510206041.0A CN106161413A (en) 2015-04-27 2015-04-27 User end inserting method and system

Publications (1)

Publication Number Publication Date
CN106161413A true CN106161413A (en) 2016-11-23

Family

ID=57346933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510206041.0A Pending CN106161413A (en) 2015-04-27 2015-04-27 User end inserting method and system

Country Status (1)

Country Link
CN (1) CN106161413A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108183974A (en) * 2017-11-27 2018-06-19 深圳市丰巢科技有限公司 Domain name dynamic switching method of intelligent terminal application program and intelligent terminal
CN113242172A (en) * 2021-04-26 2021-08-10 福建天泉教育科技有限公司 Message response method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610222A (en) * 2009-07-20 2009-12-23 中兴通讯股份有限公司 Client-based server selection method and device
CN102291381A (en) * 2011-04-11 2011-12-21 深圳市融创天下科技股份有限公司 Method, system and mobile terminal used for a client side to select interconnection address
US20120096128A1 (en) * 2008-12-18 2012-04-19 At&T Intellectual Property I, L.P. Systems and Methods for Determining the Location of a Request on a Content Delivery Network
CN103957283A (en) * 2011-09-29 2014-07-30 北京奇虎科技有限公司 Optimal-application-server selection method and device for domain name system
CN104468852A (en) * 2013-09-18 2015-03-25 腾讯科技(北京)有限公司 Method, device and system for client to select IP link address
CN104836689A (en) * 2015-05-21 2015-08-12 武汉新芯集成电路制造有限公司 Server fault transfer method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120096128A1 (en) * 2008-12-18 2012-04-19 At&T Intellectual Property I, L.P. Systems and Methods for Determining the Location of a Request on a Content Delivery Network
CN101610222A (en) * 2009-07-20 2009-12-23 中兴通讯股份有限公司 Client-based server selection method and device
CN102291381A (en) * 2011-04-11 2011-12-21 深圳市融创天下科技股份有限公司 Method, system and mobile terminal used for a client side to select interconnection address
CN103957283A (en) * 2011-09-29 2014-07-30 北京奇虎科技有限公司 Optimal-application-server selection method and device for domain name system
CN104468852A (en) * 2013-09-18 2015-03-25 腾讯科技(北京)有限公司 Method, device and system for client to select IP link address
CN104836689A (en) * 2015-05-21 2015-08-12 武汉新芯集成电路制造有限公司 Server fault transfer method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108183974A (en) * 2017-11-27 2018-06-19 深圳市丰巢科技有限公司 Domain name dynamic switching method of intelligent terminal application program and intelligent terminal
CN113242172A (en) * 2021-04-26 2021-08-10 福建天泉教育科技有限公司 Message response method and system

Similar Documents

Publication Publication Date Title
US20140025780A1 (en) Across-Application Network Communication Method And Device
CN107770758A (en) The bluetooth of Baffle Box of Bluetooth returns even method, Baffle Box of Bluetooth and storage medium
CN105099988A (en) Method used for supporting gray releasing, access method, devices and system
CN104363247A (en) Flow saving method and device adopting saving-free application
CN102638797A (en) Method and terminal for accessing wireless network, access network node and authentication server
CN101595689B (en) Change of subscriber information in a multi-chassis network access environment
CN102982141A (en) Method and device for realizing distributed database agent
CN103825895A (en) Information processing method and electronic device
CN102387156B (en) Equipment logging treatment method, device and system
EP2863582B1 (en) Scheduling a device batch reconfiguration event in a network
CN102468906B (en) A kind of method that in internet game, interaction logic is fault-tolerant and internet game tolerant system
EP2178252A1 (en) Method for sharing community network service information
CN104601262B (en) A kind of information processing method and mobile device
CN108243265A (en) A kind of dns resolution processing method and processing device
CN101420389A (en) File transferring system and method
CN107276840A (en) The method and relevant device of a kind of monitoring data transmission
CN106161413A (en) User end inserting method and system
CN104426816B (en) A kind of virtual machine communication method and device
CN105897667A (en) Device access history tracking method, apparatus, server and system
KR101600078B1 (en) Identification device and method for device identification
CN103563298A (en) Method and system for managing contact information in universal plug and play home network environment
CN104702647A (en) Information request method and information request system
CN111522650A (en) Service request processing method and device of distributed system and electronic equipment
CN113704647A (en) Method and device for jumping multiple types of pages and electronic equipment
CN107707689A (en) A kind of DHCP message processing method, Dynamic Host Configuration Protocol server and gateway device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161123