CN103220260B - The more method of new data, server, client and system - Google Patents
The more method of new data, server, client and system Download PDFInfo
- Publication number
- CN103220260B CN103220260B CN201210019063.2A CN201210019063A CN103220260B CN 103220260 B CN103220260 B CN 103220260B CN 201210019063 A CN201210019063 A CN 201210019063A CN 103220260 B CN103220260 B CN 103220260B
- Authority
- CN
- China
- Prior art keywords
- data
- communication
- new data
- client
- data packets
- 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.)
- Active
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of method of more new data, server, client and system, belong to the communications field.Method comprises: receive the communication request that client sends, and produces response data according to communication request, and the more new data produced before obtaining communication; Response data and more new data are added in communication data packets in the lump, and communication data packets is sent to client, make client carry out Data Update according to the more new data in communication data packets.The present invention, by will more new data and response data being added in the lump in communication data packets and sending to client, not only reduces the resource taken when sending separately more new data, reduces resource loss, thus the client terminal quantity that increase server can carry; Meanwhile, by any once with the connection of client, more new data is added in communication data packets and sends to the operation of client based on case mechanism, avoid adopting poll and the pressure communication that produces, and then client more new data efficiently in time can be made.
Description
Technical field
The present invention relates to the communications field, particularly a kind of method of more new data, server, client and system.
Background technology
Internet product now mostly adopts server to add the combination of client, server process data, and client is by the data exhibiting of server to user, and visual data is the core of the Internet.In order to ensure the safety of data, data are saved on the server usually, and client needs the data that upgrade in time, keep consistency with the data of server.
In prior art, there is two schemes can realize the renewal of client data.Scheme one adopts long connection mode between client and server, once server generation Data Update, server more will will send to client by new data by long interface channel.Scheme two adopts polling mechanism, and whether client has Data Update by timer polling server.
Realizing in process of the present invention, inventor finds that prior art at least exists following shortcoming:
In scheme one, long connection is higher to client machine equipment requirement, cannot ensure that all networked devices all have long linkage function, some client is caused to carry out Data Update, and server will need more multiple resource consumption for maintaining long connection, reduce the client terminal quantity upper limit that server can carry.If server does not have Data Update in scheme two, will much meaningless data communication be produced, increase server stress, reduce the client terminal quantity that server can carry, and timer time setup times is long, will produce the problem that data cannot upgrade in time.
Summary of the invention
In order to reduce resource consumption, increasing the server client terminal quantity that can carry, making client more new data efficiently in time, embodiments providing a kind of method, equipment and system of more new data.Described technical scheme is as follows:
On the one hand, provide a kind of method of more new data, described method comprises:
Receive the communication request that client sends, produce response data according to described communication request, and the more new data produced before obtaining communication;
Described response data and described more new data are added in communication data packets in the lump, and described communication data packets is sent to described client, make described client carry out Data Update according to the more new data in described communication data packets.
Further, described described response data and described more new data are added in communication data packets in the lump before, also comprise:
The more new data produced before communication is stored in the buffer memory corresponding with described client;
The more new data produced before described acquisition communication, comprising:
The more new data stored is obtained from described buffer memory.
Wherein, described buffer memory comprises data bit and upgrades flag bit, and described data bit is used for buffer update data, and described renewal flag bit is for identifying in described buffer memory whether have more new data;
The described more new data obtaining storage from described buffer memory, comprising:
Judge whether store more new data in described buffer memory according to described renewal flag bit, if so, then from described buffer memory, obtain the more new data stored.
Preferably, described by described response data and described more new data is added in communication data packets in the lump time, also comprise:
Data total length mark and response data length mark is added in described communication data packets, described client is made to judge whether with the addition of more new data in described communication data packets according to the data total length mark in described communication data packets and response data length mark, if so, then Data Update is carried out according to the more new data in described communication data packets.
Alternatively, described by described response data and described more new data is added in communication data packets in the lump time, also comprise:
Add in described communication data packets and upgrade mark, described client is made to judge whether with the addition of more new data in described communication data packets according to the renewal mark added in described communication data packets, if so, then Data Update is carried out according to the more new data in described communication data packets.
On the other hand, additionally provide a kind of server, described server comprises:
Receiver module, for receiving the communication request that client sends;
Respond module, produces response data for the communication request received according to described receiver module;
Acquisition module, for the more new data produced before obtaining communication;
Add module, the more new data got for the response data that described respond module produced and described acquisition module is added in communication data packets in the lump;
Sending module, sends to described client for the communication data packets after described interpolation module being added, makes described client carry out Data Update according to the more new data in described communication data packets.
Further, described server also comprises:
Memory module, for being stored in the buffer memory corresponding with described client by the more new data produced before communication;
Described acquisition module, for obtaining the more new data that described memory module stores from described buffer memory.
Wherein, described buffer memory comprises data bit and upgrades flag bit, and described data bit is used for buffer update data, and described renewal flag bit is for identifying in described buffer memory whether have more new data;
Described acquisition module, for judging whether there is more new data in described buffer memory according to described renewal flag bit, if so, then more new data described in obtaining from described buffer memory.
Preferably, described interpolation module, also for adding data total length mark and response data length mark in described communication data packets, described client is made to judge whether with the addition of more new data in described communication data packets according to the data total length mark in described communication data packets and response data length mark, if so, then Data Update is carried out according to the more new data in described communication data packets.
Alternatively, described interpolation module, also upgrade mark for adding in described communication data packets, described client is made to judge whether with the addition of more new data in described communication data packets according to the renewal mark added in described communication data packets, if so, then Data Update is carried out according to the more new data in described communication data packets.
Again on the one hand, additionally provide a kind of client, described client comprises:
Sending module, for sending communication request to server;
Receiver module, for receiving the communication data packets that with the addition of response data and more new data that described server sends, described response data is the communication response data that described server produces according to the communication request that described sending module sends, and described more new data is the more new data that described server produces before communication;
Update module, carries out Data Update for the more new data added in the communication data packets that receives according to described receiver module.
Preferably, also added data total length mark and response data length mark in described communication data packets;
Described update module, judge whether with the addition of more new data in described communication data packets for the data total length mark of adding in the communication data packets that receives according to described receiver module and response data length mark, if so, then Data Update is carried out according to the more new data in described communication data packets.
Alternatively, also added renewal mark in described communication data packets;
Described update module, judges whether with the addition of more new data in described communication data packets for the renewal mark added in the communication data packets that receives according to described receiver module, if so, then carries out Data Update according to the more new data in described communication data packets.
Another aspect, additionally provide a kind of system of more new data, described system comprises: server as above, and client as above.
The beneficial effect of the technical scheme that the embodiment of the present invention provides is:
Client is sent to by the response data produced when the more new data produced before communication and communication being added in communication data packets in the lump, not only reduce the resource taken when sending separately more new data, also can reduce resource loss, thus the client terminal quantity that increase server can carry; Meanwhile, by any once with the connection of client, more new data is added in communication data packets and sends to the operation of client based on case mechanism, avoid adopting poll and the pressure communication that produces, and then client more new data efficiently in time can be made.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of a kind of more new data that the embodiment of the present invention one provides;
Fig. 2 is the method flow diagram of a kind of more new data that the embodiment of the present invention two provides;
Fig. 3 is the structural representation of a kind of server that the embodiment of the present invention three provides;
Fig. 4 is the structural representation of the another kind of server that the embodiment of the present invention three provides;
Fig. 5 is the structural representation of a kind of client that the embodiment of the present invention four provides;
Fig. 6 is a kind of structural representation upgrading data system that the embodiment of the present invention five provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
See Fig. 1, present embodiments provide a kind of method of more new data, the method flow process is specific as follows:
101: receive the communication request that client sends, produce response data according to communication request, and the more new data produced before obtaining communication.
102: response data and more new data are added in communication data packets in the lump, and communication data packets is sent to client, make client carry out Data Update according to the more new data in communication data packets.
Further, by response data and before more new data is added in communication data packets in the lump, also comprise:
The more new data produced before communication is stored in the buffer memory corresponding with client;
The more new data produced before obtaining communication, comprising:
The more new data stored is obtained from buffer memory.
Wherein, buffer memory comprises data bit and upgrades flag bit, and data bit is used for buffer update data, upgrades flag bit for identifying in buffer memory whether have more new data;
From buffer memory, obtain the more new data stored, comprising:
Judge whether store more new data in buffer memory according to renewal flag bit, if so, then from buffer memory, obtain the more new data stored.
Preferably, by response data with when more new data is added in communication data packets in the lump, also comprise:
Data total length mark and response data length mark is added in communication data packets, client is made to judge whether with the addition of more new data in communication data packets according to the data total length mark in communication data packets and response data length mark, if so, then Data Update is carried out according to the more new data in communication data packets.
Alternatively, by response data with when more new data is added in communication data packets in the lump, also comprise:
Add in communication data packets and upgrade mark, make client judge whether with the addition of more new data in communication data packets according to the renewal mark added in communication data packets, if so, then carry out Data Update according to the more new data in communication data packets.
The method that the present embodiment provides, client is sent to by the response data produced when the more new data produced before communication and communication being added in communication data packets in the lump, not only reduce the resource taken when sending separately more new data, also can reduce resource loss, thus the client terminal quantity that increase server can carry; Meanwhile, by any once with the connection of client, more new data is added in communication data packets and sends to the operation of client based on case mechanism, avoid adopting poll and the pressure communication that produces, and then client more new data efficiently in time can be made.
Embodiment two
Present embodiments provide a kind of method of more new data, the more new data at every turn produced is stored in the buffer memory corresponding with client by server by the method, and when carrying out communication with client, to more be added in communication data packets and be pushed to client by new data, thus while minimizing resource consumption, enable client efficient more new data in time.Wherein, the buffer memory corresponding with client is the buffer memory of server, and for convenience of explanation, the present embodiment comprises data bit for buffer memory and upgrades flag bit, is described in detail to the method that the present embodiment provides.See Fig. 2, the method flow process is specific as follows:
201: server produces more new data, and judge whether there is the more new data deposited in the buffer memory corresponding with client, if so, perform 202, otherwise perform 203.
Particularly, the present embodiment does not limit the concrete more new data that server produces, in practical application, user end to server proposes application requests, in program operation process, server can the available data of algorithm to client corresponding to the operation of client process, and after process, the data of gained are more new data.
Such as, in game, A player and B player compete, and server processes the existing data of client (as vital values, equipment etc.) according to playing conditions, and after process, the data of gained are more new data.
Wherein, buffer memory is the region of the data that server will send for temporary server.Server is that each client sets up corresponding buffer memory, deposits the more new data that will send to corresponding client.Server also identifies the buffer memory corresponding with client according to the Unique ID of client.
Wherein, buffer memory comprises data bit and upgrades flag bit, and data bit is used for the more new data that produces according to the operation of client of caching server, and renewal flag bit is for identifying in buffer memory with or without more new data.Such as, renewal flag bit is set to sky, more new data is not had for identifying in buffer memory, renewal flag bit is set to non-NULL, more new data is had for identifying in buffer memory, or the value upgrading flag bit is set to 0, more new data is not had for identifying in buffer memory, the value upgrading flag bit is set to 1, more new data is had for identifying in buffer memory, or adopt other modes by upgrading in flag bit mark buffer memory whether have more new data, whether the present embodiment does not have the mode of more new data to limit in renewal flag bit mark buffer memory.
Because the processing speed of server to data is different, therefore, before once short connection, server may carry out once secondary data at the most and upgrade.Server by this more new data stored in buffer memory before, server need judge whether there is the more new data deposited in buffer memory.During concrete judgement, can judge whether store more new data in buffer memory according to the renewal flag bit of buffer memory, the more new data deposited if having in buffer memory, then perform step 202; If the more new data endlessly deposited in buffer memory, then perform step 203.
202: by this more new data be stored in the data bit in buffer memory, perform 204.
For this step, owing to there being the more new data deposited in buffer memory, then the renewal flag bit now in buffer memory has identified in buffer memory more new data, therefore, the more new data deposited in this more new data and buffer memory only merges by server, and without the need to changing renewal flag bit again.
In addition, because method data be stored in buffer memory in prior art is very ripe, the embodiment of the present invention repeats no more by the mode that more new data is stored in buffer memory.
203: by this more new data be stored in the data bit in buffer memory, change upgrade flag bit.
For this step, due to the more new data endlessly deposited in buffer memory, renewal flag bit then now in buffer memory identifies in buffer memory without more new data, therefore, server is after by this, more new data is stored in the data bit in buffer memory, need change to upgrade flag bit, have more new data to be identified in buffer memory by this renewal flag bit.
204: the communication request that server receives client sends, produce response data according to this communication request, and the more new data produced obtain communication from buffer memory before.
Particularly, when server and client carry out communication, server can produce the response data of this communication, and this response data can be that user end to server sends communication request, and server processes the response data of rear generation to this communication request.Resource more shared by new data is sent separately in order to save server, server is by first stored in buffer memory for the more new data produced before communication, therefore, when server receives the communication request of client transmission, except producing response data according to communication request, the more new data produced before also can obtaining communication from buffer memory, can be added on more new data in communication data packets so that follow-up and send to client together with response data.
205: response data and more new data are added in communication data packets by server in the lump, and this communication data packets is sent to client.
Wherein, by response data and more new data is added in communication data packets time, can by response data and the data bit upgrading data sequence write communication data packets, certainly, can also adopt other addition manners, the present embodiment does not limit by response data and mode that more new data is added in communication data packets.
Further, clearly more new data whether is with the addition of in this communication data packets in order to make client, server by response data and more new data is added in communication data packets time, data total length mark and response data length mark can also be added in communication data packets, make client judge whether with the addition of more new data in communication data packets according to data total length mark and response data length mark.In addition, also can add more new logo in this communication data packets, client is judged in communication data packets with or without more new data according to this renewal mark.And upgrade mark mark communication data packets in whether with the addition of more new data time, multiple identification means can be had, such as, if the renewal added in communication data packets is masked as sky, then identify in this communication data packets and do not add more new data, if the renewal added in communication data packets is masked as non-NULL, then identify in this communication data packets and with the addition of more new data, or, if the renewal added in communication data packets is masked as 1, then identify in communication data packets and with the addition of more new data, if the renewal added in communication data packets is masked as 0, then identify in communication data packets and do not add more new data.Certainly, can also adopt other modes, the present embodiment does not limit upgrading the mode that whether with the addition of more new data in mark mark communication data packets.
No matter adopt which kind of mode to identify in communication data packets whether with the addition of more new data, when server is by response data with after more new data is added in communication data packets in the lump, client can be sent it to by the mode setting up short connection.Short connection refers to that communication two party has during data interaction and sets up a connection, and data are sent completely rear disconnection, and this connects, and namely each connection only completes the transmission of a business.Then after server and client set up short connection, packaged communication data packets is sent to client by associated transport agreement by server, disconnects after communication data packets transmission completes, and can reduce the resource sent separately more shared by new data thus.
206: client judges whether there is more new data in communication data packets, if perform 207, otherwise perform 208.
For this step, if in above-mentioned steps 205, server with the addition of data total length mark and response data length mark in communication data packets, the response data length that then the client data total length that the data total length in communication data packets can be identified and response data length mark identify compares, if data total length equals response data length, then identify in this communication data packets and do not add more new data, if data total length is greater than response data length, then identifies in this communication data packets and with the addition of more new data.
If in above-mentioned steps 205, server with the addition of and upgrades mark in communication data packets, then client can judge whether there is more new data in communication data packets according to the renewal mark in communication data packets.
207: client extracts the more new data in communication data packets, the more new data according to extracting carries out Data Update.
Particularly, the present embodiment does not limit the mode that client carries out Data Update according to the more new data extracted, after client extracts the more new data in the communication data packets of server transmission, the more new data extracted can be sent to update process function by client, is carried out the process of Data Update by update process function.
Wherein, update process function is the function processing more new data in client.More new data according to the data type of carrying in message, is sent in the database of corresponding types, upgrades, for client call legacy data in database after receiving the more new data that client sends by update process function respectively.
208: client extracts the response data in communication data packets, sends to original call function to process this response data.
For this step, although client can be judged not add more new data in the communication data packets that server sends in above-mentioned steps 206, but the response data produced when still can carry communication in this communication data packets, therefore, client can extract the response data in communication data packets, and this response data is sent to original call function, by original call function, the response data in communication data packets is processed.The present embodiment does not limit concrete original call function, does not limit equally to the mode of the response data in original call function process communication data packets.
The method that the present embodiment provides, by server the response data produced when the more new data produced before communication and communication is added in communication data packets in the lump and sends to client, not only reduce the resource taken when sending separately more new data, also can reduce resource loss, thus the client terminal quantity that increase server can carry; Meanwhile, by any once with the connection of client, more new data is added in communication data packets and sends to the operation of client based on case mechanism, avoid adopting poll and the pressure communication that produces, and then client more new data efficiently in time can be made.
Embodiment three
See Fig. 3, present embodiments provide a kind of server, the method for more new data of this server for performing above-described embodiment one and embodiment two and providing, this server comprises:
Receiver module 301, for receiving the communication request that client sends;
Respond module 302, produces response data for the communication request received according to receiver module 301;
Acquisition module 303, for the more new data produced before obtaining communication;
Add module 304, the more new data got for the response data that respond module 302 produced and acquisition module 303 is added in communication data packets in the lump;
Sending module 305, sends to client for the communication data packets after interpolation module 304 being added, makes client carry out Data Update according to the more new data in communication data packets.
Further, see Fig. 4, this server also comprises:
Memory module 306, for being stored in the buffer memory corresponding with client by the more new data produced before communication;
Acquisition module 303, also for obtaining the more new data that memory module 306 stores from buffer memory.
Wherein, buffer memory comprises data bit and upgrades flag bit, and data bit is used for buffer update data, upgrades flag bit for identifying in buffer memory whether have more new data;
Acquisition module 303, also for judging whether there is more new data in buffer memory according to renewal flag bit, if so, then obtains more new data from buffer memory.
Preferably, add module 304, also for adding data total length mark and response data length mark in communication data packets, client is made to judge whether with the addition of more new data in communication data packets according to the data total length mark in communication data packets and response data length mark, if so, then Data Update is carried out according to the more new data in communication data packets.
Alternatively, add module 304, also upgrading mark for adding in communication data packets, making client judge whether with the addition of more new data in communication data packets according to the renewal mark added in communication data packets, if so, then Data Update is carried out according to the more new data in communication data packets.
The server that the present embodiment provides, client is sent to by the response data produced when the more new data produced before communication and communication being added in communication data packets in the lump, not only reduce the resource taken when sending separately more new data, also can reduce resource loss, thus the client terminal quantity that increase server can carry; Meanwhile, by any once with the connection of client, more new data is added in communication data packets and sends to the operation of client based on case mechanism, avoid adopting poll and the pressure communication that produces, and then client more new data efficiently in time can be made.
Embodiment four
See Fig. 5, present embodiments provide a kind of client, the method for more new data of this client for performing above-described embodiment one and embodiment two and providing, this client comprises:
Sending module 501, for sending communication request to server;
Receiver module 502, for the communication data packets that with the addition of response data and more new data that reception server sends, communication response data is the communication response data that server produces according to the communication request that sending module 501 sends, and more new data is the more new data that server produces before communication;
Update module 503, carries out Data Update for the more new data added in the communication data packets that receives according to receiver module 502.
Preferably, also added data total length mark and response data length mark in communication data packets;
Update module 503, also judge whether with the addition of more new data in communication data packets for the data total length mark of adding in the communication data packets that receives according to receiver module 502 and response data length mark, if so, then Data Update is carried out according to the more new data in communication data packets.
Alternatively, also added renewal mark in communication data packets;
Update module 503, the renewal mark also for adding in the communication data packets that receives according to receiver module 502 judges whether with the addition of more new data in communication data packets, if so, then carries out Data Update according to the more new data in communication data packets.
The client that the present embodiment provides, by the communication data packets that with the addition of response data and more new data that reception server sends, and carry out Data Update according to the more new data in communication data packets, not only reduce the resource taken when server sends separately more new data, also can reduce resource loss, thus the client terminal quantity that increase server can carry; Meanwhile, by any once with the connection of server, the operation that with the addition of the communication data packets of more new data that reception server sends, based on case mechanism, is avoided adopting poll and the pressure communication that produces, and then can more new data efficiently in time.
Embodiment five
See Fig. 6, present embodiments provide a kind of system of more new data, this system comprises: server 601 and client 602;
Wherein, server 601 server that can provide for above-described embodiment three;
The client that client 602 can provide for above-described embodiment four.
The system that the present embodiment provides, by server the response data produced when the more new data produced before communication and communication is added in communication data packets in the lump and sends to client, not only reduce the resource taken when sending separately more new data, also can reduce resource loss, thus the client terminal quantity that increase server can carry; Meanwhile, by any once with the connection of client, more new data is added in communication data packets and sends to the operation of client based on case mechanism, avoid adopting poll and the pressure communication that produces, and then client more new data efficiently in time can be made.
It should be noted that: the server that above-described embodiment provides and client are when carrying out Data Update, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by server and client side is divided into different functional modules, to complete all or part of function described above.In addition, the system of the server that above-described embodiment provides, client, more new data belongs to same design with the embodiment of the method for more new data, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
All or part of step in the embodiment of the present invention, can utilize software simulating, and corresponding software program can be stored in the storage medium that can read, as CD or hard disk etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (14)
1. a method for more new data, it is characterized in that, described method comprises:
Receive the communication request that client sends, produce response data according to described communication request, and the more new data produced before obtaining communication;
Described response data and described more new data are added in communication data packets in the lump, and described communication data packets is sent to described client, make described client carry out Data Update according to the more new data in described communication data packets.
2. method according to claim 1, is characterized in that, described described response data and described more new data are added in communication data packets in the lump before, also comprise:
The more new data produced before communication is stored in the buffer memory corresponding with described client;
The more new data produced before described acquisition communication, comprising:
The more new data stored is obtained from described buffer memory.
3. method according to claim 2, is characterized in that, described buffer memory comprises data bit and upgrades flag bit, and described data bit is used for buffer update data, and described renewal flag bit is for identifying in described buffer memory whether have more new data;
The described more new data obtaining storage from described buffer memory, comprising:
Judge whether store more new data in described buffer memory according to described renewal flag bit, if so, then from described buffer memory, obtain the more new data stored.
4. method according to claim 1, is characterized in that, described by described response data and described more new data is added in communication data packets in the lump time, also comprise:
Data total length mark and response data length mark is added in described communication data packets, described client is made to judge whether with the addition of more new data in described communication data packets according to the data total length mark in described communication data packets and response data length mark, if so, then Data Update is carried out according to the more new data in described communication data packets.
5. method according to claim 1, is characterized in that, described by described response data and described more new data is added in communication data packets in the lump time, also comprise:
Add in described communication data packets and upgrade mark, described client is made to judge whether with the addition of more new data in described communication data packets according to the renewal mark added in described communication data packets, if so, then Data Update is carried out according to the more new data in described communication data packets.
6. a server, is characterized in that, described server comprises:
Receiver module, for receiving the communication request that client sends;
Respond module, produces response data for the communication request received according to described receiver module;
Acquisition module, for the more new data produced before obtaining communication;
Add module, the more new data got for the response data that described respond module produced and described acquisition module is added in communication data packets in the lump;
Sending module, sends to described client for the communication data packets after described interpolation module being added, makes described client carry out Data Update according to the more new data in described communication data packets.
7. server according to claim 6, is characterized in that, described server also comprises:
Memory module, for being stored in the buffer memory corresponding with described client by the more new data produced before communication;
Described acquisition module, for obtaining the more new data that described memory module stores from described buffer memory.
8. server according to claim 7, is characterized in that, described buffer memory comprises data bit and upgrades flag bit, and described data bit is used for buffer update data, and described renewal flag bit is for identifying in described buffer memory whether have more new data;
Described acquisition module, for judging whether there is more new data in described buffer memory according to described renewal flag bit, if so, then more new data described in obtaining from described buffer memory.
9. server according to claim 6, it is characterized in that, described interpolation module, also for adding data total length mark and response data length mark in described communication data packets, described client is made to judge whether with the addition of more new data in described communication data packets according to the data total length mark in described communication data packets and response data length mark, if so, then Data Update is carried out according to the more new data in described communication data packets.
10. server according to claim 6, it is characterized in that, described interpolation module, also upgrade mark for adding in described communication data packets, described client is made to judge whether with the addition of more new data in described communication data packets according to the renewal mark added in described communication data packets, if so, then Data Update is carried out according to the more new data in described communication data packets.
11. 1 kinds of clients, is characterized in that, described client comprises:
Sending module, for sending communication request to server;
Receiver module, for receiving the communication data packets that with the addition of response data and more new data that described server sends, described response data is the communication response data that described server produces according to the communication request that described sending module sends, and described more new data is the more new data that described server produces before communication;
Update module, carries out Data Update for the more new data added in the communication data packets that receives according to described receiver module.
12. clients according to claim 11, is characterized in that, also added data total length mark and response data length mark in described communication data packets;
Described update module, judge whether with the addition of more new data in described communication data packets for the data total length mark of adding in the communication data packets that receives according to described receiver module and response data length mark, if so, then Data Update is carried out according to the more new data in described communication data packets.
13. clients according to claim 11, is characterized in that, also added and upgrade mark in described communication data packets;
Described update module, judges whether with the addition of more new data in described communication data packets for the renewal mark added in the communication data packets that receives according to described receiver module, if so, then carries out Data Update according to the more new data in described communication data packets.
The system of 14. 1 kinds of more new datas, it is characterized in that, described system comprises: the server according to any one of claim 6-10, and the client according to any one of claim 11-13.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210019063.2A CN103220260B (en) | 2012-01-20 | 2012-01-20 | The more method of new data, server, client and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210019063.2A CN103220260B (en) | 2012-01-20 | 2012-01-20 | The more method of new data, server, client and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103220260A CN103220260A (en) | 2013-07-24 |
CN103220260B true CN103220260B (en) | 2016-04-27 |
Family
ID=48817729
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210019063.2A Active CN103220260B (en) | 2012-01-20 | 2012-01-20 | The more method of new data, server, client and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103220260B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105515936A (en) * | 2014-09-23 | 2016-04-20 | 中国电信股份有限公司 | Method, server and system for message communication |
CN106612301B (en) * | 2015-10-22 | 2019-11-15 | 招商局国际信息技术有限公司 | The method for pushing and device of more new data |
CN106657292B (en) * | 2016-12-05 | 2020-02-18 | 腾讯科技(深圳)有限公司 | Data processing method and device |
CN109718552B (en) * | 2017-10-30 | 2022-11-04 | 腾讯科技(成都)有限公司 | Life value control method based on simulation object and client |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001075785A (en) * | 1999-09-09 | 2001-03-23 | Nec Corp | Data updating system |
JP2009048386A (en) * | 2007-08-20 | 2009-03-05 | Chepro:Kk | Communication system, communication method, communication control program, and recording medium with the program stored therein |
US8147327B2 (en) * | 2007-09-14 | 2012-04-03 | Sony Ericsson Mobile Communications Ab | Method for updating a multiplayer game session on a mobile device |
CN101453410A (en) * | 2007-12-07 | 2009-06-10 | 北京闻言科技有限公司 | Method for enhancing file downloading speed through application cache |
CN101674261B (en) * | 2008-09-10 | 2011-09-28 | 鈊象电子股份有限公司 | System and method for playing online game or webpage game through real-time communication software |
JP2010231570A (en) * | 2009-03-27 | 2010-10-14 | Nec Corp | Network system and method for reducing communication traffic |
-
2012
- 2012-01-20 CN CN201210019063.2A patent/CN103220260B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN103220260A (en) | 2013-07-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105159781B (en) | Adjust the method, apparatus and intelligent terminal of intelligent terminal application network speed | |
US20150312296A1 (en) | Method and device for pushing multimedia resource and display terminal | |
CN105406974A (en) | Method and system for increasing popularity value in chat room | |
CN100556004C (en) | In a kind of instant communicating system to the method to set up of group message receiving mode | |
CA2931525C (en) | Data stream identifying method and device | |
CN105516080A (en) | Processing method, apparatus, and system for TCP connection | |
CN102594876B (en) | The mixing accelerating system of game real time data and more new data | |
CN103139326A (en) | Method, device and system for tracing internet protocol (IP) | |
CN103139137B (en) | Network service provider method and device | |
CN103220260B (en) | The more method of new data, server, client and system | |
CN104283926A (en) | Data synchronization method, device and server | |
CN102355501A (en) | Data processing method, access review equipment and system | |
CN103532784A (en) | Method and system for transmitting heartbeat messages, terminal and network equipment | |
CN106571942A (en) | Configuration data updating method, client side and server | |
CN103516788A (en) | Data pushing method and Flash client terminal and server thereof | |
CN103577469B (en) | Database connection multiplexing method and apparatus | |
CN100464536C (en) | Method and device for recomposing fragmented data | |
CN103051738B (en) | A kind of dhcp address distribution method and system | |
CN109600423A (en) | Method of data synchronization, device, electronic equipment and storage medium | |
CN106850770A (en) | High-efficiency transmission method and device based on cloud computing service | |
CN107454456B (en) | Management control method and system for floating layer elements | |
CN103068052A (en) | Dynamic configuration method and system of resources and portal server | |
CN102075584A (en) | Distributed file system and access method thereof | |
CN110417875B (en) | Method, system, equipment and storage medium for docking between cloud servers | |
CN103138871A (en) | Server data processing system and method of application program of mobile communication system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |