CN103473376B - Data processing method and client - Google Patents
Data processing method and client Download PDFInfo
- Publication number
- CN103473376B CN103473376B CN201310456472.3A CN201310456472A CN103473376B CN 103473376 B CN103473376 B CN 103473376B CN 201310456472 A CN201310456472 A CN 201310456472A CN 103473376 B CN103473376 B CN 103473376B
- Authority
- CN
- China
- Prior art keywords
- link
- client
- network address
- address table
- website links
- 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.)
- Expired - Fee Related
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of data processing method and client.The data processing method is used for the data that the first client run in the first client is handled in the second client, comprises the following steps:The packet that the first client is transmitted is received, the data in the first client are included in the packet;Packet is parsed, obtains the link included in packet;Query link whether there is in the link network address table run in the second client;The operation according to corresponding to Query Result performs link.Using the data processing method and client of the technical program, flow and problem of resource waste caused by repeating are avoided, improves the operational efficiency of client, and improve Consumer's Experience.
Description
Technical field
The present invention relates to internet, and in particular to a kind of data processing method and client.
Background technology
With the development of mobile Internet, user's using terminal species is more and more.In addition to traditional PC,
The use of mobile phone, tablet personal computer and other intelligent terminals gradually increases.
User is using more station terminals in some cases, it is necessary to continue before this another in the client that present terminal is run
Task in the client of one terminal operating, or the number of the client to being run in terminal is needed during different user using terminal
According to being exchanged.But the data sharing degree of different clients is inadequate in the prior art.For example, user wants to transport in mobile phone
The webpage browsed before this in the client of PC or picture are opened in capable client, it is necessary to re-enter network address or figure
The download address of piece, very big inconvenience is so brought to user.
Therefore, the data of different clients can not interact in the prior art, cause data sharing insufficient, have a strong impact on
The experience of user.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on
State the client of problem and corresponding data processing method.
According to one aspect of the present invention, there is provided a kind of data processing method.This data processing method is used for the
The data in the first client are handled in two clients, are comprised the following steps:The packet that the first client is transmitted is received, should
The data in the first client are included in packet;Packet is parsed, obtains the link included in packet;Whether query link
It is present in the link network address table of the second client;Performed according to Query Result and link corresponding operation with above-mentioned.
Alternatively, performing operation corresponding with linking according to Query Result includes:If Query Result is not present in for link
Link in network address table, link is inserted in link network address table, and according to the type operation operation corresponding with linking of link;If look into
It is that link is present in link network address table to ask result, the time corresponding with linking in more new url network address table, and according to being linked at
Link the state operation operation corresponding with linking in network address table.
Alternatively, link includes image link, and operation corresponding to the image link includes scheming corresponding to download pictures link
Piece file.
Alternatively, it is above-mentioned to include according to the type operation operation corresponding with linking of link:Judge the figure of the second client
Whether downloading task corresponding to image link is included in piece download list, if it is not, starting to perform download corresponding with image link
Task and after the download is complete picture corresponding to opening;If so, continue downloading task corresponding to image link and completed downloading
Picture corresponding to opening afterwards.
Alternatively, included according to the state operation operation corresponding with linking being linked in link network address table:Obtain picture
The download path of link;Judge whether to have preserved picture corresponding to download path;If it is not, corresponding to downloading according to download path
Picture and after the download is complete picture corresponding to opening;If so, open the corresponding picture.
Alternatively, link includes website links, and operation, which is included in the second client, corresponding to the website links opens net
Webpage corresponding to the link of location.
Alternatively, linked according to the step of operation corresponding to the type operation link of link or according to being linked in network address table
State operation it is corresponding with linking operate the step of include:Travel through the webpage opened in the second client;Judge whether to deposit
It is corresponding with website links in the network address for the webpage opened;If so, by the windows exchange of the second client to website links pair
The webpage answered;If being not present, the new window in the second client, and net corresponding with website links is opened in new window
Page.
According to another aspect of the present invention, there is provided a kind of client.The client is used to handle in another client
Data, the client include:Receiver, the packet transmitted for receiving another client, include in the packet
Data in another client;Resolver, for parsing packet, obtain the link included in packet;Enquiry module, it is used for
Query link whether there is in the link network address table of client;Actuator, it is corresponding with linking for being performed according to Query Result
Operation.
Further, above-mentioned actuator is additionally configured to:It is not present in linking in network address table if Query Result is link, by chain
Patch in link network address table, and according to the type operation operation corresponding with linking of link;If Query Result exists for link
In linking in network address table, the time corresponding with linking in more new url network address table, and according to the shape being linked in link network address table
State operation operation corresponding with linking.
Further, the link included in packet includes image link or website links, is operated corresponding to image link
Including picture file corresponding to download pictures link, operation corresponding to website links includes opening website links pair in the client
The webpage answered.
According to technical solution of the present invention, client is when handling the data of other client transmissions, by inquiring about packet
In the link that includes whether be present in the link network address table of this client, this client performs link pair according to Query Result
The operation answered, so as to by inquiry, draw the current service data of client, avoid repeat caused by flow and
Problem of resource waste, improves the operational efficiency of client, and improves Consumer's Experience.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area
Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 is the system schematic of transmission data between client according to an embodiment of the invention;
Fig. 2 is the block diagram of client according to an embodiment of the invention;
Fig. 3 is the schematic diagram of data processing method according to an embodiment of the invention;And
Fig. 4 is the preferred flow charts of client data processing according to an embodiment of the invention.
Embodiment
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system
Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various
Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
Fig. 1 shows the system according to an embodiment of the invention for transmitting data among clients by long connection,
In Fig. 1, operation has the first client in first terminal 11, and being run in second terminal 12 has the second client, first terminal 11
Client data of the long connection to transmit mutually, specific data transfer are established by long connection server 13 with second terminal 12
Direction can be:First terminal 11 by long connection server 13 to second terminal 12 send the first client data, with
Corresponding operating is performed in second client;Or second terminal 12 sends second by long connection server 13 to first terminal 11
The data of client, to perform corresponding operating in the first client.Above first terminal 11 and second terminal 12 can be to appoint
Anticipate a kind of internet terminal, such as mobile phone, tablet personal computer, personal computer, and first terminal 11 and second terminal 12
Type can be the same or different, such as can be that personal computer sends data to mobile phone, or mobile phone is to individual
Computer sends data, is also not necessarily limited to mobile phone and sends data or a personal computer to another individual calculus to another mobile phone
Machine sends data.In general, first terminal 11 and second terminal 12 respectively as transmission data side and receive data side.
Above client can be browser, that is, the first client is the first browser, and the second client is second
Browser, so as to which above transmission packet includes the browser data run in terminal, such as first terminal 11 is to second terminal 12
The data of the first browser are sent, to perform corresponding operating in the second browser, such as second terminal 12 is to first terminal 11
The data of the second browser are sent, to perform corresponding operating in the first browser.By transmitting browser data mutually, realize
The browser data interaction of different terminals, for example, after user establishes long connection with long connection server respectively using mobile phone and PC,
The browser run in mobile phone connects mutual transmission packet with the browser run in PC equipment by long.
Long connection communication agreement based on cell-phone customer terminal and pc client, can be according to number after packet is received
Data type is drawn according to the specific fields can in bag, the corresponding operating of client is then directly performed according to data type,
Such as open network address, download pictures etc..
In system above, the equipment such as PC server, long connection distribution server can also be included, PC server is as network
Node, data and information in storage, processing network, for receiving the access request of the first client and the second client,
And respective service is provided, long connection distribution server is used for the connection that the long connection of different clients is distributed for long connection server
Request.
In the present embodiment, the data of the first client are received with the second client, and are entered in case of being handled
Row is introduced.
Based on pre-defined long connection protocol, the data packet format of transmission can select JSON forms, and JSON forms are
A kind of data interchange format of lightweight.Its a subset based on JavaScript, using the text for being totally independent of language
Form, but also using the custom similar to C language family.These characteristics make JSON turn into preferable data interchange language,
It is easy to people to read and write, while is also easy to machine parsing and generation.JSON will can be represented in JavaScript object one
Group data are converted to character string, and then can easily transmits this character string between function.So as to by predetermined
The type field just would know that the link type included in packet.Conventional link type includes:Website links, image link
Deng.Second client currently runs shape after the data of the client of the above first are received, by handling with reference to the second client
State performs corresponding operation.
Fig. 2 is the block diagram of client according to an embodiment of the invention, as illustrated, the client is another for handling
Data in client, for the ease of distinguishing, the sender's client for transmitting data is referred to as Terminal Server Client, recipient below
Client is local client.Above local client specifically includes:Receiver 121, for receiving transmitted packet, number
According to the data included in bag in Terminal Server Client;Resolver 122, for parsing packet, obtain the link included in packet;
Enquiry module 123, it whether there is for query link in the link network address table of local client;Actuator 124, for basis
Query Result is performed and operated corresponding to link.
Data receiver of the above-mentioned local client equivalent to more than in long connection data transmission system, Terminal Server Client phase
Sender in the long connection data transmission system more than.The data of the first client are still received with the second client below,
And in the second client be introduced in case of data processing.Second client is established with long connection server 13
Long connection, and pass through the data of long connection server 13 the first client of reception.
124 specific function of actuator in second client is configurable to:If Query Result is not present in for link
In the link network address table of second client, will link insert the link network address table in, and according to link type in the second client
Operation corresponding with linking is run in end;It is present in if Query Result is link in link network address table, in more new url network address table
Time corresponding with linking, and according to be linked at link network address table in state run in the second client it is corresponding with linking
Operation.Actuator 124 accordingly controls the second client according to the analysis result of resolver 122 according to the output of enquiry module 123
Perform operation.
The link type included in the packet that resolver 122 parses can include:Image link or website links, its
In, operation corresponding to image link includes picture file corresponding to download pictures link, and operation corresponding to website links is included in
The client of local runtime(Second client)Webpage corresponding to middle opening website links.
For image link, the chained list of the second client is not present for image link for the Query Result of enquiry module 123
In, actuator 124 performs following steps:Whether judge in the picture download list of the second client comprising corresponding to image link
Downloading task, if it is not, starting to perform downloading task corresponding to image link and after the download is complete picture corresponding to opening;If
It is to continue downloading task corresponding to image link and after the download is complete picture corresponding to opening.
In addition, the Query Result in enquiry module 123 is present in the chained list of the second client for image link, perform
Device 124 performs following steps:Obtain the download path of image link;Judge whether to have preserved picture corresponding to download path;
If it is not, according to download path download corresponding to picture and after the download is complete in the second client open corresponding to picture;If
It is that the corresponding picture is directly opened in the second client.
It is the net that website links are not present in the second client in the Query Result of enquiry module 123 for website links
In location link network address table, actuator 124 performs following steps:The webpage that the second client has been opened is traveled through, is judged whether
The network address for the webpage opened is corresponding with the website links;If so, by the windows exchange of the second client to and website links
Corresponding webpage;If it is not, the new window in the second client, and net corresponding with website links is opened in new window
Page.Above network address is corresponding with the website links to have two kinds of situations, one is in the network address and packet of the webpage opened
The website links parsed are consistent, the second is the original link address for the webpage opened and the network address chain parsed in packet
Connect consistent.Second situation is because the mark of different clients is different, exists when opening link and redirects.
In addition, the Query Result in enquiry module 123 is present in the website links network address of the second client for website links
In the case of in table, actuator 124 performs following steps:The webpage that the second client has been opened is traveled through, is judged whether
The network address of the webpage of opening is corresponding with the website links;If so, by the windows exchange of the second client to website links pair
The webpage answered;If it is not, the new window in the second client, and webpage corresponding with website links is opened in new window.
So as to, for website links, the second client to link network address table handle after, open webpage the step of be identical.
User uses the client of above example introduction, is handling the client data that sends over of other clients
When, it can avoid repeating to operate, improve experience, another aspect client also saves flow, reduces system resource
Use.
Client in above example can be specially the Client browse program of Web service, i.e. browser program.
The data processing method of the embodiment of the present invention is introduced below, the data processing method can be implemented more than
The client executing introduced in example, the data of other clients are received and correspondingly to the data of reception applied to by long connect
In the case of being operated.The data of the first client are still received with the second client below, and the data are operated
It is introduced exemplified by the data processing method of the present embodiment.
Fig. 3 is the schematic diagram of data processing method according to an embodiment of the invention, as illustrated, the data processing side
Method includes:
Step S31, receives the packet that the first client is transmitted, and the packet is that the first client is taken by long connection
Business device is sent, and includes the data of the first client.
Step S33, packet is parsed, obtains the link included in packet;Resolving according to agreement communication protocol and
Data format is completed.
Step S35, query link whether there is in the link network address table of the second client;
Step S37, the operation according to corresponding to Query Result performs link.
The data that the client of the above first is sent can be preferably the various link data of first client.
The wherein specific flows of step S37 can include:If Query Result is not present in the chain of the second client for link
Connect in network address table, link is inserted in link network address table, and according to the type operation operation corresponding with linking of link;If inquiry
As a result it is present in for link in link network address table, the time corresponding with linking in more new url network address table, and according to being linked at chain
Connect the state operation operation corresponding with linking in network address table.
For different link types, above step S37 idiographic flow slightly difference.The type wherein linked includes figure
Piece links or website links, and operation corresponding to the image link includes picture file corresponding to download pictures link, website links
Corresponding operation, which is included in the second client, opens webpage corresponding to website links.
For image link, when image link is not present in the second client image link table, according to chain in step S37
The type operation operation corresponding with linking connect can specifically include:Judge whether wrapped in the picture download list of the second client
Containing downloading task corresponding to image link, if it is not, starting to perform corresponding with image link downloading task and after the download is complete
Picture corresponding to opening;If so, continue downloading task corresponding to image link and after the download is complete picture corresponding to opening.
When image link is present in the second client image link table, basis is linked at link network address table in step S37
In state operation link corresponding to operation can specifically include:Obtain the download path of image link;Judge whether to have preserved
There is picture corresponding to download path;If it is not, according to download path download corresponding to picture and after the download is complete open corresponding to
Picture;If so, open the corresponding picture.
For website links, when website links are not present in the link network address table of the second client, in step S37 according to
The type operation operation corresponding with linking of link can specifically include:The webpage that the second client has been opened is traveled through, judgement is
The no network address in the presence of the webpage opened is corresponding with the website links;If so, by the windows exchange of the second client to net
Webpage corresponding to the link of location;If it is not, the new window in the second client, and opening is corresponding with website links in new window
Webpage.Above network address is corresponding with the website links to refer to two kinds of situations:One is the network address and data of the webpage opened
The website links parsed in bag are consistent, the second is the original link address for the webpage opened and the net parsed in packet
Location link is consistent.Second situation is because the mark of different clients is different, there may be and redirects when opening link.
When website links are present in the link network address table of the second client, basis is linked at link network address in step S37
State operation operation corresponding with linking in table includes:The webpage that the second client has been opened is traveled through, is judged whether
The network address of the webpage of opening is corresponding with the website links;If so, by the windows exchange of the second client to website links pair
The webpage answered;If it is not, the new window in the second client, and webpage corresponding with website links is opened in new window.
Fig. 4 is the preferred flow charts of second client data processing according to embodiments of the present invention, with reference to below Fig. 4 to the
After two clients receive the packet comprising the first client data, the system that is parsed, judged, inquired about, calculated, performed
Row process is described in detail.Second client receives the packet comprising the first client data and performs below scheme:
Step S401 is first carried out, the second client parses to the packet received, obtains including in packet
Link, then perform step S403;
Step S403, judge that image link whether there is in the link network address table of the second client, if it is judged that
It is no, performs step S405;If it is judged that being yes, step S407 is performed;
Step S405, the link parsed is inserted to the chained list of the second client, then performs step S411;
Step S407, renewal are linked at the modification time in the link network address table of the second client, then perform step
S431;
Step S411, judge to include image link or website links in link;If comprising image link, step is performed
S413, if comprising website links, perform step S421;
Step S413, judge whether appoint in the picture download list of the second client comprising download corresponding to image link
Business, if it is judged that being yes, perform step S415;If it is judged that being no, step S417 is performed;
Step S415, continue downloading task corresponding to image link, and opened after the download is complete in the second client
Download the picture completed;
Step S417, start to perform downloading task corresponding to image link, and after the download is complete in the second client
Open the picture downloaded and completed;
Step S421, the webpage that the second client of traversal has been opened, then performs step S423;
Step S423, judge whether that the network address of webpage opened is corresponding with the website links, that is, judges whether
The original link address of network address or network address in the presence of the webpage opened and website links identical situation, if it is judged that
It is yes, performs step S425;If it is judged that being no, step S427 is performed;
Step S425, by the windows exchange of the second client to corresponding webpage;
Step S427, the new window in the second client, and opened in new window corresponding to above-mentioned website links
Webpage;
Step S431, judge to include image link or website links in link;If comprising image link, step is performed
S433, if comprising website links, perform step S421;
Step S433, the picture download path in image link is obtained, then perform step S425;
Step S435, judge picture corresponding to download path whether has been preserved in the second client, if it is judged that
It is yes, performs step S437;If it is judged that being no, step S439 is performed;
Step S437, according to download path download corresponding to picture, and open the picture after the download is complete;
Step S439, terminate the downloading task of image link, and open the picture preserved.
The reason for being needed in above step S423 and judging two kinds of situations of network address or network address original link address is:Due to not
The browser mark of the client of same type(UA is identified)Difference, thus when opening link, it may appear that situation about redirecting, therefore
Need to record original website links when the link for opening each network address, such as in original website links are all buffered in
In depositing, otherwise before opened identical network address and identical link can be can not find when being redirected, and can repeat to open this
Link, causes to waste.
Client in above example can be specially the Client browse program of Web service, i.e. browser program.Under
Face proposes the example that a specific mobile phone browser receives the browser data of PC, further to data above processing
Illustrate.
PC sends long connection packet using JSON forms to mobile phone:Data link network address database after parsing
Field and its implication are as follows:
Title representative pictures(Webpage)Title.
Url representative pictures(Webpage)Link.
Type represents link type, and wherein type=1 represents implication as web page interlinkage;Type=2 represent implication as picture chain
Connect.
Date represents last modification time.
Two datas and the browser in the link network address table for the browser that cell-phone customer terminal is currently run be present
Two webpages of www.ccc.com and www.ddd.com are had already turned on, table 1 shows original link network address table.
Table 1
title | url | type | date |
AA | www.aaa.com | 1 | 2013-8-12 |
BB | www.bbb.com | 2 | 2013-8-12 |
Assuming that in August in 2013 16 days, four packets that mobile phone browser is sequentially received, it is followed successively by json data
A, json packet B, json packet C, json packet D are wrapped, wherein, the data content difference of four packets of the above is as follows
It is shown:
A={"title":"AA","url":"www.aaa.com","type":1}
B={"title":"BB","url":"www.bbb.com","type":2}
C={"title":"CC","url":"www.ccc.com","type":1}
D={"title":"DD","url":"www.ddd.com","type":2}
Herein below shows the update status of the link network address table after receiving packet every time, and is that mobile phone browses
Operated corresponding to device.
First, the data that mobile phone browser receives are json data A, parse json data A, and it is AA to obtain title,
Url is www.aaa.com, type 1, query link network address table, finds the webpage that existing url is www.aaa.com, obtains
Current time in system, the date fields of the record are updated, it is as shown in table 2 that network address table is linked after renewal:
Table 2
Title | url | type | date |
AA | www.aaa.com | 1 | 2013-8-16 |
BB | www.bbb.com | 2 | 2013-8-12 |
In this case, according to type=1, it is determined that this is linked as type of webpage, then travel through what mobile phone browser had been opened
Webpage, it is found that www.aaa.com webpage is now not turned on, then allow mobile phone browser new window, and beaten in new window
Open www.aaa.com webpage.
Then, the data that mobile phone browser receives again are json data B, parse json data B, and it is BB to obtain title,
Url is www.bbb.com, type 2, query link network address table, finds the picture network address that existing url is www.bbb.com,
The current time in system is obtained, updates the date fields of the record, it is as shown in table 3 that network address table is linked after renewal:
Table 3
title | url | type | date |
AA | www.aaa.com | 1 | 2013-8-16 |
BB | www.bbb.com | 2 | 2013-8-16 |
According to type=2, it is determined that this is recorded as picture/mb-type, acquiescence download path/mnt/sdcard/ of picture is obtained
Browser/, check under the path whether have this pictures of BB, if existing, abandon downloading, conversely, downloading the picture simultaneously
Open the picture.
Then, the data that mobile phone browser receives again are json data C, parse json data C, and it is CC to obtain title,
Url is www.ccc.com, and type 1, query link network address table, it is not present the network address that url is www.ccc.com, inserts this
Link network address table is recorded, the link network address table after insertion is as shown in table 4:
Table 4
title | url | type | date |
AA | www.aaa.com | 1 | 2013-8-16 |
BB | www.bbb.com | 2 | 2013-8-16 |
CC | www.ccc.com | 1 | 2013-8-16 |
According to type=1, it is determined that this is recorded as type of webpage, the webpage that browser has been opened then is traveled through, is found
Www.ccc.com browsers have now been opened, then allow mobile phone browser to be switched to the www.ccc.com page.
Then, the data that mobile phone browser receives again are json data D, parse json data D, and it is DD to obtain title,
Url is www.ddd.com, and type 2, query link network address table, it is not present the picture network address that url is www.ddd.com, obtained
The current time in system is taken, updates the date fields of the record, the link network address table after renewal is as shown in table 5:
Table 5
title | url | type | date |
AA | www.aaa.com | 1 | 2013-8-16 |
BB | www.bbb.com | 2 | 2013-8-16 |
CC | www.ccc.com | 1 | 2013-8-16 |
DD | www.ddd.com | 2 | 2013-8-16 |
According to type=2, it is determined that this is recorded as picture/mb-type, acquiescence download path/mnt/sdcard/ of picture is obtained
Browser/, check under the path whether have this pictures of DD, if existing, abandon downloading, conversely, downloading the picture.
Using the client and its data processing method of above example introduction, preferably solve to exist in long connection and disappear
Replication problem is ceased, saves flow, and improve Consumer's Experience.It may occur to persons skilled in the art that client described above
End is not limited to browser, can apply to the suitable client of any required interaction data among clients.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect,
Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself
Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any
Combination is to this specification(Including adjoint claim, summary and accompanying drawing)Disclosed in all features and so disclosed appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification(Including adjoint power
Profit requirement, summary and accompanying drawing)Disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation
Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be realized with hardware, or to be run on one or more processor
Software module realize, or realized with combinations thereof.The present invention is also implemented as being used to perform side as described herein
Some or all equipment or program of device of method(For example, computer program and computer program product).It is such
Realizing the program of the present invention can store on a computer-readable medium, or can have the shape of one or more signal
Formula.Such signal can be downloaded from internet website and obtained, and either be provided or with any other shape on carrier signal
Formula provides.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real
It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.
Claims (6)
1. a kind of data processing method, for handling the data in the first client in the second client, including:
The packet that first client is transmitted is received, the data in first client are included in the packet;
The packet is parsed, obtains the link included in the packet;
The link is inquired about to whether there is in the link network address table of second client;
If the Query Result is not present in the link network address table for the link, the link net is inserted into the link
In the table of location, and corresponding operation is linked with described according to the type operation of the link;
If the Query Result for it is described link be present in it is described link network address table in, update it is described link network address table in it is described
Time corresponding to link, and corresponding behaviour is linked with described according to the state operation being linked in the link network address table
Make,
The link includes website links, and operation corresponding to the website links is included in second client described in opening
Webpage corresponding to website links, and according to the link type operation with it is described link it is corresponding operate the step of or according to
The state operation being linked in the link network address table includes with described the step of linking corresponding operation:
Travel through the webpage opened in second client;
Judge whether that the network address of webpage opened is corresponding with the website links;
If so, by the windows exchange of second client to webpage corresponding with the website links;
If it is not, the new window in second client, and net corresponding with the website links is opened in new window
Page.
2. according to the method for claim 1, wherein, described link also includes image link, corresponding to the image link
Operation includes downloading picture file corresponding to the image link.
3. according to the method for claim 2, link corresponding operate with described according to the type operation of the link and also wrap
Include:
Judge whether include downloading task corresponding to the image link in the picture download list of second client,
If it is not, start to perform downloading task corresponding with the image link and after the download is complete picture corresponding to opening;
If so, continue downloading task corresponding to the image link and after the download is complete picture corresponding to opening.
4. according to the method in claim 2 or 3, wherein, transported according to the state being linked in the link network address table
Row with it is described link it is corresponding operate include:
Obtain the download path of the image link;
Judge whether to have preserved picture corresponding to the download path;
If it is not, according to the download path download corresponding to picture and after the download is complete opening corresponding to picture;
If so, open the corresponding picture.
5. a kind of client, for handling the data in another client, the client includes:
Receiver, the packet transmitted for receiving another client, another client is included in the packet
Data in end;
Resolver, for parsing the packet, obtain the link included in the packet;
Enquiry module, it whether there is for inquiring about the link in the link network address table of the client;
Actuator, it is configured to:If, will in the case that the Query Result is not present in the link network address table for the link
In the link insertion link network address table, and corresponding operation is linked with described according to the type operation of the link;If
The Query Result for it is described link be present in it is described link network address table in the case of, update it is described link network address table in institute
The time corresponding to link is stated, and corresponding behaviour is linked with described according to the state operation being linked in the link network address table
To make, the link includes website links, and operation corresponding to the website links includes opening webpage corresponding to the website links,
And it is linked at described link according to the type operation of the link with described the step of linking corresponding operation or according to described
State operation in network address table includes with described the step of linking corresponding operation:
Travel through the webpage opened;
Judge whether that the network address of webpage opened is corresponding with the website links;
If so, by the windows exchange of the client to webpage corresponding with the website links;
If it is not, the new window in the client, and webpage corresponding with the website links is opened in new window.
6. client according to claim 5, wherein, the link included in the packet includes image link or network address
Link, operation corresponding to the image link include downloading picture file corresponding to the image link, the website links pair
The operation answered, which is included in the client, opens webpage corresponding with the website links.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310456472.3A CN103473376B (en) | 2013-09-29 | 2013-09-29 | Data processing method and client |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310456472.3A CN103473376B (en) | 2013-09-29 | 2013-09-29 | Data processing method and client |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103473376A CN103473376A (en) | 2013-12-25 |
CN103473376B true CN103473376B (en) | 2017-12-29 |
Family
ID=49798224
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310456472.3A Expired - Fee Related CN103473376B (en) | 2013-09-29 | 2013-09-29 | Data processing method and client |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103473376B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105634925B (en) * | 2016-01-20 | 2018-11-09 | 北京乐动卓越科技有限公司 | Expansible communication means and system between a kind of user |
CN105933780A (en) * | 2016-04-14 | 2016-09-07 | 乐视控股(北京)有限公司 | Focus picture processing method and device |
EP3499918B1 (en) * | 2016-09-06 | 2022-02-23 | Huawei Technologies Co., Ltd. | Data sharing method and terminal |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101847150A (en) * | 2009-03-26 | 2010-09-29 | 北京搜狗科技发展有限公司 | Browser status synchronization method and device |
CN102413436A (en) * | 2011-09-14 | 2012-04-11 | 华为技术有限公司 | Method and system for transmitting information, and browser on mobile terminal |
CN103024062A (en) * | 2012-12-24 | 2013-04-03 | 腾讯科技(深圳)有限公司 | Data sharing method, clients and data sharing system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040049673A1 (en) * | 2002-09-05 | 2004-03-11 | Docomo Communications Laboratories Usa, Inc. | Apparatus and method for a personal cookie repository service for cookie management among multiple devices |
-
2013
- 2013-09-29 CN CN201310456472.3A patent/CN103473376B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101847150A (en) * | 2009-03-26 | 2010-09-29 | 北京搜狗科技发展有限公司 | Browser status synchronization method and device |
CN102413436A (en) * | 2011-09-14 | 2012-04-11 | 华为技术有限公司 | Method and system for transmitting information, and browser on mobile terminal |
CN103024062A (en) * | 2012-12-24 | 2013-04-03 | 腾讯科技(深圳)有限公司 | Data sharing method, clients and data sharing system |
Non-Patent Citations (2)
Title |
---|
SDWebImage 笔记;uxyheaven;《http://blog.csdn.net/uxyheaven/article/details/7909373》;20120826;第1页第21-31行,第2页第19-45行 * |
如何高效使用和管理Bitmap--图片缓存管理模块的设计与实现;innovation;《http://blog.csdn.net/creativemobile/article/details/9361383》;20130717;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN103473376A (en) | 2013-12-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104699612B (en) | For processing method, equipment and the system in software test | |
CN105359487B (en) | The method for going reference monitoring NAT behavior by the URI in web browser | |
CN102474432B (en) | Social network virtual private network | |
CN104301436B (en) | Content to be displayed push, subscription, update method and its corresponding device | |
CN102647462B (en) | Application acquisition and sending method and device | |
CN104038528B (en) | Relay, system and method | |
CN104283723B (en) | Network access log processing method and processing device | |
CN103778236B (en) | Web data distribution processing method and device and auto-building html files treating method and apparatus | |
CN104468774B (en) | Method for exhibiting data and cloud disk client applied to cloud disk client | |
CN109543121A (en) | A kind of exterior chain url resource transfer method and device | |
CN107844324A (en) | Customer terminal webpage redirects treating method and apparatus | |
CN101546309A (en) | Method and equipment for constructing indexes to resource content in computer network | |
CN108259598A (en) | A kind of awareness apparatus unified access method based on isomery fusion and cloud analytic technique | |
CN107809383A (en) | A kind of map paths method and device based on MVC | |
CN107463453A (en) | Method, apparatus, equipment and the storage medium to be communicated between same terminal different application | |
CN105939313A (en) | State code redirecting method and device | |
CN103473376B (en) | Data processing method and client | |
CN108932238A (en) | A kind of cross-domain communication method and device | |
CN101551888A (en) | Advertisement information publishing system and corresponding advertisement publishing control method | |
CN103207877B (en) | Coding/decoding method and device | |
CN105260421A (en) | Webpage loading method and apparatus | |
CN104361004B (en) | The processing method and browser of browser collection folder data | |
CN105119944B (en) | Application starting method and related device | |
CN103684977B (en) | Method for sending information and device, method for information display and device | |
CN108920642A (en) | Campus information delivery 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171229 Termination date: 20210929 |