CN104506613B - The sharing method and system of application data - Google Patents
The sharing method and system of application data Download PDFInfo
- Publication number
- CN104506613B CN104506613B CN201410802365.6A CN201410802365A CN104506613B CN 104506613 B CN104506613 B CN 104506613B CN 201410802365 A CN201410802365 A CN 201410802365A CN 104506613 B CN104506613 B CN 104506613B
- Authority
- CN
- China
- Prior art keywords
- browser
- application
- gateway
- identification information
- information
- 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
- 238000000034 method Methods 0.000 title claims abstract description 54
- 230000005540 biological transmission Effects 0.000 claims abstract description 29
- 238000005516 engineering process Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003806 hair structure Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a kind of sharing method of application data and system, wherein, methods described includes:The application that first browser is established with gateway according to the link position information of application identification information and distribution connects;Wherein, the application identification information using logic with having corresponding relation;The link position information includes the information of the gateway and the identification information of first browser;After first browser receives the announcement information of reaching the standard grade of the second browser transmission, unpaired message is sent to second browser, is connected with establishing first browser with the pairing of second browser;After first browser receives the application data that second browser is sent, logic is applied according to application data execution is corresponding with the application identification information.Technical solution of the present invention realizes sharing for the application data between PC ends and mobile terminal.
Description
Technical field
The present invention relates to field of computer technology, more particularly to the sharing method and system of a kind of application data.
Background technology
With the development of internet, interacting also more and more frequently between client and server, data volume is also increasingly
Greatly, the interactive mode between common client and server is between the application program on the browser and server on PC ends
Interaction.
Along with the popularization of mobile terminal, the application program accessed on mobile terminals on server is more and more convenient.But
Be, the interaction data between the application program on browser and server on traditional PC ends can only PC ends and server it
Between transmit, can not share with the browser on mobile terminal, similarly, the application journey on the browser and server on mobile terminal
Interaction data between sequence can only transmit between the mobile terminal and the server, can not share with the browser on PC ends.
The content of the invention
In view of can not realize PC ends with the application data of mobile terminal the problem of sharing at present, it is proposed that the present invention so as to
A kind of sharing method and system of the application data for overcoming above mentioned problem or solving the above problems at least in part are provided.
According to one aspect of the present invention, there is provided a kind of sharing method of application data, including:
The application that first browser is established with gateway according to the link position information of application identification information and distribution connects;Its
In, the application identification information using logic with having corresponding relation;The link position information includes the information of the gateway
With the identification information of first browser;
After first browser receives the announcement information of reaching the standard grade of the second browser transmission, unpaired message is sent to described
Second browser, it is connected with establishing first browser with the pairing of second browser;
After first browser receives the application data that second browser is sent, held according to the application data
Row is corresponding with the application identification information to apply logic.
According to another aspect of the present invention, there is provided a kind of share system of application data, including:Browser, gateway and
Using logic, wherein, the browser includes:First browser and the second browser;
First browser, for according to application identification information and the link position information foundation of distribution and answering for gateway
With connection;Wherein, the application identification information using logic with having corresponding relation;The link position information includes the net
The identification information of the information of pass and first browser;
First browser, it is additionally operable to after receiving the announcement information of reaching the standard grade that second browser is sent, transmission is matched somebody with somebody
To information to second browser, it is connected with establishing first browser with the pairing of second browser;
First browser, it is additionally operable to after receiving the application data that second browser is sent, is answered according to described
Logic is applied with data execution is corresponding with the application identification information.
Application according to the present invention data share scheme, after the first browser and gateway establish application connection, the
One browser receives the notice of reaching the standard grade of the second browser, and the pairing for establishing the first browser with the second browser is connected, when first
After browser receives the application data of the second browser transmission, it can be performed according to application data and apply logic accordingly.Its
In, the first browser and the second browser establish application connection with identical gateway, and connection is identical application logic.The
One browser receives the notice of reaching the standard grade of the second browser, represents that the first browser and the second browser are established to apply and connected into
Work(;The purpose that first browser and the second browser establish pairing connection is can be between the first browser and the second browser
Sharing for application data is realized, either party browser can utilize the application data shared to perform and apply logic accordingly,
Realize sharing for the application data between PC ends and mobile terminal.
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 a kind of step flow chart of the sharing method of according to embodiments of the present invention one application data;
Fig. 2 is a kind of step flow chart of the sharing method of according to embodiments of the present invention two application data;
Fig. 3 is a kind of structured flowchart of the share system of according to embodiments of the present invention three application data;
Fig. 4 is a kind of structured flowchart of the share system of according to embodiments of the present invention four application data;
Fig. 5 is a kind of structured flowchart of the share system of according to embodiments of the present invention five application data.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Completely it is communicated to those skilled in the art.
Embodiment one
A kind of application data sharing method in the embodiment of the present invention is discussed in detail.
Reference picture 1, show a kind of step flow chart of application data sharing method in the embodiment of the present invention.
Step 100, the first browser is according to application identification information and the link position information foundation of distribution and answering for gateway
With connection.
Wherein, the application identification information using logic with having corresponding relation;The link position information includes described
The identification information of the information of gateway and first browser.
First browser can be PC ends browser, and the application identification information can be that first browser is given birth to
Into application identification information, can determine corresponding to apply logic using the application identification information.
The information that it is first browser assignment in advance that the link position information, which can be, can be according to described first
The positional information of browser itself, such as IP address distribute link position information for it.
Generally, the information and the positional information phase of first browser itself of the gateway in the link position information
Closely, and the identification information of first browser has uniqueness.
The step 100 can be:First browser is corresponding with application identification information by the gateway that is distributed for it
Application logic establish application connection.
Step 102, after first browser receives the announcement information of reaching the standard grade of the second browser transmission, pairing letter is sent
Breath is connected to second browser with establishing first browser with the pairing of second browser.
Wherein, second browser can be the browser of mobile terminal, and second browser can be with described first
The gateway of browser connection is attached, and the upper limit information of second browser can pass through connected net
Close and send to first browser.
That is, first browser is attached with second browser with same gateway.
First browser is sent unpaired message to second browser by connected gateway.
Step 104, after first browser receives the application data that second browser is sent, answered according to described
Logic is applied with data execution is corresponding with the application identification information.
Second browser can send application data to first browser by connected gateway.Its
In, the application data be to application identification information corresponding to using the related data of logic.
In summary, the technical scheme in the embodiment of the present invention, after the first browser and gateway establish application connection,
First browser receives the notice of reaching the standard grade of the second browser, and the pairing for establishing the first browser with the second browser is connected, when
After one browser receives the application data of the second browser transmission, it can be performed according to application data and apply logic accordingly.
Wherein, the first browser and the second browser establish application connection with identical gateway, and connection is identical application logic.
First browser receives the notice of reaching the standard grade of the second browser, represents that the first browser and the second browser are established using connection
Success;The purpose that first browser and the second browser establish pairing connection is can between the first browser and the second browser
To realize sharing for application data, either party browser can utilize the application data shared to perform application accordingly and patrol
Volume, realize sharing for the application data between PC ends and mobile terminal.
Embodiment two
A kind of application data sharing method in the embodiment of the present invention is discussed in detail.
Reference picture 2, show a kind of step flow chart of application data sharing method in the embodiment of the present invention.
Step 200, gateway distributor is the first browser assignment link position information.
Wherein, the effect of the gateway distributor (Dispacther) is by interacting between browser, to browse
Device distributes gateway and browser mark.
The link position information can include the information of the gateway and the identification information of first browser.It is described
First browser can be PC ends browser.
Preferably, the step 200 can include:
Sub-step 2001, the gateway distributor receive the application connectivity request message that first browser is sent.
First browser actively interacts with gateway distributor, sends to gateway distributor and believes using connection request
Breath, described apply in connectivity request message can include application identification information.
Sub-step 2002, the gateway distributor are first browser assignment according to the application connectivity request message
The identification information of the information of the gateway and first browser.
First browser interacts with gateway distributor, and notification gateway distributor is intended to be answered using logic with certain
It is that the first browser assignment is used to establish the gateway of application connection and the identification information of the first browser with connection gateway distributor.
Preferably, the gateway distributor is according to the application connectivity request message is first browser assignment
After the identification information of the information of gateway and first browser, the gateway distributor also preserves first browser
Link position information.
I.e. described gateway distributor records first browser and is attached with which gateway, and the first browser
Identification information.
Step 202, the application identification information that gateway is sent according to first browser, will be with the application identification information
Corresponding application logic is sent to first browser.
The application identification information that the gateway can be sent according to first browser, search are believed with the application identities
Logic is applied corresponding to breath, then sends this to first browser using logic.
Step 204, first browser is according to link position information foundation of the application identification information with distribution and gateway
Application connection.
Wherein, the application identification information using logic with having corresponding relation.
The application identification information can be the application identification information of first browser generation, can utilize described answer
Determined corresponding to apply logic with identification information.
The information that it is first browser assignment in advance that the link position information, which can be, can be according to described first
The positional information of browser itself, such as IP address distribute link position information for it.
Generally, the information and the positional information phase of first browser itself of the gateway in the link position information
Closely, and the identification information of first browser has uniqueness.
The step 204 can be:First browser is corresponding with application identification information by the gateway that is distributed for it
Application logic establish application connection.
Step 206, the gateway distributor is the second browser point according to the link position information of first browser
Identification information with second browser.
Wherein, second browser can be the browser of mobile terminal.
The gateway distributor is second browser according to the link position information of first browser of preservation
The identification information of second browser is distributed, the identification information of second browser can be used for and first browser
Matched, can be also used for identifying browser identity in gateway and application logic.
Step 208, second browser is according to the application identification information and link position information of first browser
The application with the gateway is established to connect.
The gateway that second browser can be connected with first browser is attached.The reality of the step 208
Existing process is referred to the implementation process of above-mentioned steps 204, will not be repeated here.
Step 210, the notice of reaching the standard grade sent corresponding to the application identification information using logic to second browser
Information is identified, and recognition result is sent to first browser by the gateway.
The identification information of second browser can be included in the announcement information of reaching the standard grade that second browser is sent.
The announcement information progress of reaching the standard grade sent corresponding to the application identification information using logic to second browser
Identification, identify whether second browser is corresponding with the application identification information and apply logic successful connection, if connecting into
Work(, and second browser is online, then can determine that second browser is reached the standard grade, to described in first browser transmission
The notice of reaching the standard grade of second browser.
Step 212, after first browser receives the announcement information of reaching the standard grade of the second browser transmission, pairing letter is sent
Breath is connected to second browser with establishing first browser with the pairing of second browser.
Wherein, and the upper limit information of second browser can be sent to described by connected gateway
First browser.
That is, first browser is attached with second browser with same gateway.
First browser is sent unpaired message to second browser by connected gateway.
If first browser and the second browser successful matching, first browser can be with described the
Share application data between two browsers.
Moreover, first browser can also send upper limit to second browser, second browser
Unpaired message is sent to first browser, is connected with establishing first browser with the pairing of second browser.
Step 214, the application data sent corresponding to the application identification information using logic to second browser
It is identified, and recognition result is sent to first browser by the gateway.
Second browser sends application data to connected application logic, and application data is passed through after identification,
Sent by the gateway being connected with the second browser to the first browser, realize the application data of second browser with it is described
First browser is shared.
Moreover, first browser can also send application data to the second browser, sharing for application data is carried out.
Step 216, after first browser receives the application data that second browser is sent, answered according to described
Logic is applied with data execution is corresponding with the application identification information.
Second browser can send application data to first browser by connected gateway.Its
In, the application data be to application identification information corresponding to using the related data of logic.
Preferably, second browser can also receive the application data of first browser, according to application data
Execution is corresponding with the application identification information to apply logic.
Preferably, the gateway can receive the application number that first browser and/or second browser are sent
According to, and forward as applying logic corresponding to the application identification information.
First browser can send application data to the gateway, and extremely logic is applied by the gateway forwards;Institute
Application data can also be sent to the gateway by stating the second browser, and extremely logic is applied by the gateway forwards;Described first is clear
Look at device and second browser can send application data jointly to the gateway, by the gateway forwards to applying logic.
Preferably, the gateway can receive the application data that application logic corresponding to the application identification information is sent,
And it is forwarded to first browser and/or second browser.
Application data can also be sent to the gateway using logic corresponding to the application identification information, by the gateway
Application data is forwarded to objective browser, if objective browser is the first browser, is forwarded to the first browser;If target
Browser is the second browser, then is forwarded to the second browser;If objective browser is the first browser and the second browser,
It is forwarded to the first browser and the second browser.
In summary, the technical scheme in the embodiment of the present invention, after the first browser and gateway establish application connection,
First browser receives the notice of reaching the standard grade of the second browser, and the pairing for establishing the first browser with the second browser is connected, when
After one browser receives the application data of the second browser transmission, it can be performed according to application data and apply logic accordingly.
Wherein, the first browser and the second browser establish application connection with identical gateway, and connection is identical application logic.
First browser receives the notice of reaching the standard grade of the second browser, represents that the first browser and the second browser are established using connection
Success;The purpose that first browser and the second browser establish pairing connection is can between the first browser and the second browser
To realize sharing for application data, either party browser can utilize the application data shared to perform application accordingly and patrol
Volume, realize sharing for the application data between PC ends and mobile terminal.
Embodiment three
A kind of application data share system in the embodiment of the present invention is discussed in detail.
Reference picture 3, show a kind of structured flowchart of application data share system in the embodiment of the present invention.
The system can include Dispacther, the first browser (Browser1), the second browser (Browser2),
3rd browser (Browser3), gateway 1 (Gateway1), gateway 2 (Gateway2), using logic 1 (Logic1), using patrolling
Collect 2 (Logic2).
Wherein, the Browser1 can be located at PC ends, and the Browser2 and the Browser3 can be located at movement
End, the Gateway1 and Gateway2 can use C++ to coordinate a kind of libuv (storehouse of encapsulation) exploitations, and realization is based on HTTP
The WebSocket of (Hypertext Transfer Protocol, HTTP) (a kind of communication protocol, is realized clear
Look at the full-duplex communication of device and server) server and a kind of LongPoll (technology of service end push) server support.
Browser1 interacts with Dispatcher first, Dispatcher will be Browser1 distribute Gateway1 and
Browser1 identification information (ID1), Dispatcher and the link position information for recording Browser1, including Gateway1 and
ID1。
Browser1 and then the positional information according to distribution, the application that Logic1 is established by WebSocket are connected to
Gateway1。
Browser1 waits Browser2 notice of reaching the standard grade, after the notice of reaching the standard grade for receiving Browser2, Browser1 and
Browser2 establishes pairing connection, and waits Browser2 application data;Browser1 receives answering for Browser2 transmissions
Operation is performed with carry out Logic1 after data.
Browser2 can include ID1 and Dispatcher in Quick Response Code by scanning the Quick Response Codes of Browser1 generations
Interact, the Gateway1 that Dispatcher is connected using ID1 acquisitions Browser1, and ID2 is distributed for Browser2.
Then application that Browser2 establishes Logic1 by WebSocket is connected to Gateway1, if Browser2 is not
WebSocket is supported, then the application that Logic1 is established by LongPoll is connected to Gateway1.
After Browser2 and Logic1 application connection is established, Browser2 can be sent by Gateway1 to Logic1
Reach the standard grade notice, to notify Browser1Browser2 to reach the standard grade.
Browser2 monitors the touch event of mobile terminal, and assembles application data, is sent by Logic1 to Browser1
Application data.
Gateway1 receives the connection request of browser, and according to the application identification information provided in connection request, will be with
Logic1 corresponding to application identification information is sent to browser.
The various application datas switching that browser is sent is issued Logic1 by Gateway1, is answered what Logic1 was sent
With data, corresponding browser is sent to.
Logic1 can identify the announcement information of reaching the standard grade that Browser2 is sent, and the upper of Browser2 is sent by Gateway1
Line announcement information gives target Browser1.
The application data that Logic1 identifications Browser2 is sent, number is applied by what Gateway1 transmissions Browser2 was sent
According to giving target Browser1.
Wherein, the position where Browser1, Browser2, Browser3 (PC ends or mobile terminal) can be according to actual feelings
Condition determines that Gateway is identical with Gateway2 effect, and UDP (User can be used between Gateway and Logic
Datagram Protocol, UDP) communicated.
In summary, the technical scheme in the embodiment of the present invention, first, application connection is established in the first browser and gateway
Afterwards, the first browser receives the notice of reaching the standard grade of the second browser, and the pairing for establishing the first browser with the second browser is connected,
After the first browser receives the application data of the second browser transmission, application accordingly can be performed according to application data and is patrolled
Volume.Wherein, the first browser and the second browser establish application connection with identical gateway, and connection is that identical application is patrolled
Volume.First browser receives the notice of reaching the standard grade of the second browser, represents that the first browser and the second browser establish application
Successful connection;The purpose that first browser and the second browser establish pairing connection be the first browser and the second browser it
Between can realize sharing for application data, either party browser can utilize the application data shared to perform corresponding application
Logic, realize sharing for the application data between PC ends and mobile terminal.
Secondly, Gateway bearer connections Logic carries out the execution using logic, and both Gateway and Logic are separated,
" hot restart " can be realized, while shielding the risk that may bring of Logic changes to a certain extent (causes Gateway to collapse
Burst).
Again, Logic is developed using JavaScript, has been practiced the difficulty of development and application logic, has been improved development and application
The efficiency of logic, moreover, Logic need not handle the connection between Browser.
Also, Gateway coordinates libuv exploitations using C++, and resources occupation rate is low, more Browser can be carried and connected
Connect, alleviate the resource occupation of service end.
Finally, Gateway support two kinds of connecting interfaces of WebSocket and LongPoll, can the compatible overwhelming majority browse
Device (browser for including mobile terminal).
Example IV
A kind of application data share system in the embodiment of the present invention is discussed in detail.
Reference picture 4, show a kind of structured flowchart of application data share system in the embodiment of the present invention.
The system can include:Browser 400, gateway 402 and application logic 404;Wherein, the browser 400 can
With including:First browser 4001 and the second browser 4002.
First browser 4001, for according to link position information foundation of the application identification information with distribution and gateway
402 application connection;Wherein, the application identification information using logic with having corresponding relation;The link position packet
Include the information of the gateway 402 and the identification information of first browser 4001.
First browser 4001, it is additionally operable to receive the announcement information of reaching the standard grade that second browser 4002 is sent
Afterwards, unpaired message is sent to second browser 4002, to establish first browser 4001 and second browser
4002 pairing connection.
First browser 4001, it is additionally operable to after receiving the application data that second browser 4002 is sent, root
Logic 404 is applied according to application data execution is corresponding with the application identification information.
In summary, the technical scheme in the embodiment of the present invention, after the first browser and gateway establish application connection,
First browser receives the notice of reaching the standard grade of the second browser, and the pairing for establishing the first browser with the second browser is connected, when
After one browser receives the application data of the second browser transmission, it can be performed according to application data and apply logic accordingly.
Wherein, the first browser and the second browser establish application connection with identical gateway, and connection is identical application logic.
First browser receives the notice of reaching the standard grade of the second browser, represents that the first browser and the second browser are established using connection
Success;The purpose that first browser and the second browser establish pairing connection is can between the first browser and the second browser
To realize sharing for application data, either party browser can utilize the application data shared to perform application accordingly and patrol
Volume, realize sharing for the application data between PC ends and mobile terminal.
Embodiment five
A kind of application data share system in the embodiment of the present invention is discussed in detail.
Reference picture 5, show a kind of structured flowchart of application data share system in the embodiment of the present invention.
The system can include:Browser 500, gateway 502, using logic 504 and gateway distributor 506;Wherein, institute
Stating browser 500 can include:First browser 5001 and the second browser 5002.
First browser 5001, for according to link position information foundation of the application identification information with distribution and gateway
502 application connection;Wherein, the application identification information using logic with having corresponding relation;The link position packet
Include the information of the gateway 502 and the identification information of first browser 5001.
First browser 5001, it is additionally operable to receive the announcement information of reaching the standard grade that second browser 5002 is sent
Afterwards, unpaired message is sent to second browser 5002, to establish first browser 4001 and second browser
5002 pairing connection.
First browser 5001, it is additionally operable to after receiving the application data that second browser 5002 is sent, root
Logic 504 is applied according to application data execution is corresponding with the application identification information.
Preferably, second browser 5002, browsed for receiving described second in first browser 5001
Before the announcement information of reaching the standard grade that device 5002 is sent, according to the application identification information and connection position confidence of first browser 5001
The application that breath establishes with the gateway 502 connects.
Preferably, the gateway 502, for first browser 5001 according to application identification information with distribution company
Connect positional information to establish before the application connection with gateway 502, the application identities sent according to first browser 5001 are believed
Breath, corresponding with the application identification information will send to first browser 5001 using logic 504.
Preferably, the gateway 502, for receiving first browser 5001 and/or second browser 5002
The application data of transmission, and forward as applying logic 504 corresponding to the application identification information.
The gateway 502, for receiving the application data sent corresponding to the application identification information using logic 504,
And it is forwarded to first browser 5001 and/or second browser 5002.
Preferably, logic 504 is applied corresponding to the application identification information, for being received in first browser 5001
Before the announcement information of reaching the standard grade sent to the second browser 5002, to the announcement information of reaching the standard grade of second browser 5002 transmission
It is identified, and recognition result is sent to first browser 5001 by the gateway 502.
Preferably, logic 504 is applied corresponding to the application identification information, for being received in first browser 5001
Before the application data sent to second browser 5002, the application data that second browser 5002 is sent is carried out
Identification, and recognition result is sent to first browser 5001 by the gateway 502.
Preferably, the gateway distributor 506, please for receiving the application connection that first browser 5001 is sent
Seek information;And according to it is described using connectivity request message be first browser 5001 distribute the gateway 502 information and
The identification information of first browser 5001.
Preferably, the gateway distributor 506, it is additionally operable to be described first clear according to the application connectivity request message
Device 5001 of looking at is distributed after the information of the gateway 502 and the identification information of first browser 5001, preserves described first
The link position information of browser 5001.
Preferably, the gateway distributor 506, it is additionally operable in second browser 5002 according to first browser
5001 application identification information and link position information is established before the application connection with the gateway 502, according to described first
The link position information of browser 5001 is the identification information that second browser 5002 distributes second browser 5002.
In summary, the technical scheme in the embodiment of the present invention, after the first browser and gateway establish application connection,
First browser receives the notice of reaching the standard grade of the second browser, and the pairing for establishing the first browser with the second browser is connected, when
After one browser receives the application data of the second browser transmission, it can be performed according to application data and apply logic accordingly.
Wherein, the first browser and the second browser establish application connection with identical gateway, and connection is identical application logic.
First browser receives the notice of reaching the standard grade of the second browser, represents that the first browser and the second browser are established using connection
Success;The purpose that first browser and the second browser establish pairing connection is can between the first browser and the second browser
To realize sharing for application data, either party browser can utilize the application data shared to perform application accordingly and patrol
Volume, realize sharing for the application data between PC ends and mobile terminal.
The scheme of sharing of application data is not consolidated with any certain computer, virtual system or miscellaneous equipment provided herein
There is correlation.Various general-purpose systems can also be used together with teaching based on this.As described above, construction has this hair
Structure required by the system of bright scheme is obvious.In addition, the present invention is not also directed to any certain programmed language.Should
Understand, the content of invention described herein can be realized using various programming languages, and language-specific is done above
Description is to disclose the preferred forms of the present invention.
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.More precisely, such as right
As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool
Thus claims of body embodiment are expressly incorporated in the embodiment, wherein the conduct of each claim in itself
The separate embodiments of 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 disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit requires, 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 detail in the claims, embodiment claimed it is one of any
Mode it 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.It will be understood by those of skill in the art that it can use in practice
Microprocessor or digital signal processor (DSP) realize the sharing in scheme of application data according to embodiments of the present invention
The some or all functions of some or all parts.The present invention is also implemented as being used to perform method as described herein
Some or all equipment or program of device (for example, computer program and computer program product).Such reality
The program of the existing present invention can store on a computer-readable medium, or can have the form of one or more signal.
Such signal can be downloaded from internet website and obtained, and either be provided or in the form of any other on carrier signal
There is provided.
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.
The embodiment of the invention discloses A1, a kind of sharing method of application data, including:
The application that first browser is established with gateway according to the link position information of application identification information and distribution connects;Its
In, the application identification information using logic with having corresponding relation;The link position information includes the information of the gateway
With the identification information of first browser;
After first browser receives the announcement information of reaching the standard grade of the second browser transmission, unpaired message is sent to described
Second browser, it is connected with establishing first browser with the pairing of second browser;
After first browser receives the application data that second browser is sent, held according to the application data
Row is corresponding with the application identification information to apply logic.
A2, the method according to A1, wherein, first browser receives reaching the standard grade for the second browser transmission
Before announcement information, methods described also includes:
Second browser is established according to the application identification information and link position information of first browser and institute
State the application connection of gateway.
A3, the method according to A1, wherein, the link position information is distributed in the following manner:
Gateway distributor receives the application connectivity request message that first browser is sent;
The gateway distributor according to it is described using connectivity request message be first browser assignment described in gateway
The identification information of information and first browser.
A4, the method according to A3, wherein, the gateway distributor is described according to the application connectivity request message
After the identification information of the information of gateway described in first browser assignment and first browser, methods described also includes:
The gateway distributor preserves the link position information of first browser.
A5, the method according to A3, wherein, second browser is believed according to the application identities of first browser
Breath and link position information are established before the application connection with the gateway, and methods described also includes:
The gateway distributor is the second browser assignment institute according to the link position information of first browser
State the identification information of the second browser.
A6, the method according to A1, wherein, first browser is according to application identification information and the connection position of distribution
Confidence breath is established before the application connection with gateway, and methods described also includes:
The application identification information that the gateway is sent according to first browser, will be corresponding with the application identification information
Application logic send to first browser.
A7, the method according to A1, wherein, methods described also includes:
The gateway receives the application data that first browser and/or second browser are sent, and is forwarded to
In applying logic corresponding to the application identification information;
The gateway receives the application data that application logic corresponding to the application identification information is sent, and is forwarded to described
First browser and/or second browser.
A8, the method according to A1, wherein, first browser receives the notice of reaching the standard grade of the second browser transmission
Before information, methods described also includes:
The announcement information progress of reaching the standard grade sent corresponding to the application identification information using logic to second browser
Identification, and recognition result is sent to first browser by the gateway.
A9, the method according to A1, wherein, first browser receives the application that second browser is sent
Before data, methods described also includes:
The application data sent corresponding to the application identification information using logic to second browser is identified,
And recognition result is sent to first browser by the gateway.
The embodiment of the invention also discloses B10, a kind of share system of application data, including:Browser, gateway and application
Logic, wherein, the browser includes:First browser and the second browser;
First browser, for according to application identification information and the link position information foundation of distribution and answering for gateway
With connection;Wherein, the application identification information using logic with having corresponding relation;The link position information includes the net
The identification information of the information of pass and first browser;
First browser, it is additionally operable to after receiving the announcement information of reaching the standard grade that second browser is sent, transmission is matched somebody with somebody
To information to second browser, it is connected with establishing first browser with the pairing of second browser;
First browser, it is additionally operable to after receiving the application data that second browser is sent, is answered according to described
Logic is applied with data execution is corresponding with the application identification information.
B11, the system according to B10, wherein,
Second browser, for receiving the notice of reaching the standard grade of the second browser transmission in first browser
Before information, connected according to the application that the application identification information of first browser and link position information are established with the gateway
Connect.
B12, the system according to B10, wherein, the system also includes:Gateway distributor;
The gateway distributor, the application connectivity request message sent for receiving first browser;And according to
Described using connectivity request message is the information of gateway described in first browser assignment and the mark of first browser
Information.
B13, the system according to B12, wherein,
The gateway distributor, it is additionally operable to be the first browser assignment institute according to the application connectivity request message
After stating the information of gateway and the identification information of first browser, the link position information of first browser is preserved.
B14, the system according to B12, wherein,
The gateway distributor, it is additionally operable to the application identification information according to first browser in second browser
Before establishing the application connection with the gateway with link position information, the link position information according to first browser is
The identification information of second browser described in second browser assignment.
B15, the system according to B10, wherein,
The gateway, for being established in first browser according to application identification information and the link position information of distribution
Before the application connection of gateway, according to the application identification information of first browser transmission, it will believe with the application identities
Sent corresponding to breath using logic to first browser.
B16, the system according to B10, wherein,
The gateway, the application data sent for receiving first browser and/or second browser, and turn
It is sent in applying logic corresponding to the application identification information;
The gateway, for receiving the application data sent corresponding to the application identification information using logic, and forward
To first browser and/or second browser.
B17, the system according to B10, wherein,
Logic is applied corresponding to the application identification information, for receiving the second browser hair in first browser
Before the announcement information of reaching the standard grade sent, the announcement information of reaching the standard grade sent to second browser is identified, and by recognition result
Sent by the gateway to first browser.
B18, the system according to B10, wherein,
Logic is applied corresponding to the application identification information, is browsed for receiving described second in first browser
Before the application data that device is sent, the application data sent to second browser is identified, and recognition result is passed through
The gateway is sent to first browser.
Claims (18)
1. a kind of sharing method of application data, including:
The application that first browser is established with gateway according to the link position information of application identification information and distribution connects;Wherein,
The application identification information using logic with having corresponding relation;The link position information includes information and the institute of the gateway
The identification information of the first browser is stated, announcement information of reaching the standard grade can be identified for the application logic, can also send application
Data;
After first browser receives the announcement information of reaching the standard grade of the second browser transmission, unpaired message is sent to described second
Browser, it is connected with establishing first browser with the pairing of second browser, wherein, first browser is PC
The browser at end, second browser are the browser of mobile terminal;
After first browser receives the application data that second browser is sent, according to the application data perform with
Logic is applied corresponding to the application identification information.
2. according to the method for claim 1, wherein, first browser receives the upper of the second browser transmission
Before line announcement information, methods described also includes:
Second browser is established and the net according to the application identification information and link position information of first browser
The application connection of pass.
3. according to the method for claim 1, wherein, the link position information is distributed in the following manner:
Gateway distributor receives the application connectivity request message that first browser is sent;
The gateway distributor is according to the information using connectivity request message for gateway described in first browser assignment
With the identification information of first browser.
4. according to the method for claim 3, wherein, the gateway distributor is institute according to the application connectivity request message
After the identification information for stating the information of gateway described in the first browser assignment and first browser, methods described also includes:
The gateway distributor preserves the link position information of first browser.
5. according to the method for claim 3, wherein, second browser is according to the application identities of first browser
Information and link position information are established before the application connection with the gateway, and methods described also includes:
The gateway distributor is the according to the link position information of first browser is second browser assignment
The identification information of two browsers.
6. according to the method for claim 1, wherein, first browser is according to application identification information and the connection of distribution
Positional information is established before the application connection with gateway, and methods described also includes:
The application identification information that the gateway is sent according to first browser, corresponding with the application identification information it will answer
Sent with logic to first browser.
7. according to the method for claim 1, wherein, methods described also includes:
The gateway receives the application data that first browser and/or second browser are sent, and forwards as institute
State and apply logic corresponding to application identification information;
The gateway receives the application data that application logic corresponding to the application identification information is sent, and is forwarded to described first
Browser and/or second browser.
8. according to the method for claim 1, wherein, it is logical that first browser receives reaching the standard grade for the second browser transmission
Before knowing information, methods described also includes:
The announcement information of reaching the standard grade sent corresponding to the application identification information using logic to second browser is identified,
And recognition result is sent to first browser by the gateway.
9. according to the method for claim 1, wherein, first browser receives answering for the second browser transmission
Before data, methods described also includes:
The application data sent corresponding to the application identification information using logic to second browser is identified, and will
Recognition result is sent to first browser by the gateway.
10. a kind of share system of application data, including:Browser, gateway and using logic, wherein, the browser includes:
First browser and the second browser;
First browser, the application for being established according to the link position information of application identification information and distribution with gateway connect
Connect;Wherein, the application identification information using logic with having corresponding relation;The link position information includes the gateway
Announcement information of reaching the standard grade can be identified for the identification information of information and first browser, the application logic, can also
Send application data;
First browser, it is additionally operable to after receiving the announcement information of reaching the standard grade that second browser is sent, sends pairing letter
Breath is connected with establishing first browser with the pairing of second browser to second browser, wherein, described the
One browser is the browser at PC ends, and second browser is the browser of mobile terminal;
First browser, it is additionally operable to after receiving the application data that second browser is sent, according to the application number
Logic is applied according to execution is corresponding with the application identification information.
11. system according to claim 10, wherein,
Second browser, for receiving the announcement information of reaching the standard grade of the second browser transmission in first browser
Before, the application established according to the application identification information of first browser and link position information with the gateway connects.
12. system according to claim 10, wherein, the system also includes:Gateway distributor;
The gateway distributor, the application connectivity request message sent for receiving first browser;And according to described
It is the identification information of the information of gateway and first browser described in first browser assignment using connectivity request message.
13. system according to claim 12, wherein,
The gateway distributor, it is additionally operable to be net described in first browser assignment according to the application connectivity request message
After the identification information of the information of pass and first browser, the link position information of first browser is preserved.
14. system according to claim 12, wherein,
The gateway distributor, it is additionally operable in application identification information of second browser according to first browser and company
Connect positional information to establish before the application connection with the gateway, the link position information according to first browser is described
The identification information of second browser described in second browser assignment.
15. system according to claim 10, wherein,
The gateway, for first browser according to application identification information with distribution link position information establish and net
, will be with the application identification information pair according to the application identification information of first browser transmission before the application connection of pass
The application logic answered is sent to first browser.
16. system according to claim 10, wherein,
The gateway, the application data sent for receiving first browser and/or second browser, and be forwarded to
In applying logic corresponding to the application identification information;
The gateway, for receiving the application data sent corresponding to the application identification information using logic, and it is forwarded to institute
State the first browser and/or second browser.
17. system according to claim 10, wherein,
Logic is applied corresponding to the application identification information, for receiving the transmission of the second browser in first browser
Reach the standard grade before announcement information, the announcement information of reaching the standard grade sent to second browser is identified, and recognition result is passed through
The gateway is sent to first browser.
18. system according to claim 10, wherein,
Logic is applied corresponding to the application identification information, for receiving the second browser hair in first browser
Before the application data sent, the application data sent to second browser is identified, and recognition result is passed through described
Gateway is sent to first browser.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410802365.6A CN104506613B (en) | 2014-12-19 | 2014-12-19 | The sharing method and system of application data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410802365.6A CN104506613B (en) | 2014-12-19 | 2014-12-19 | The sharing method and system of application data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104506613A CN104506613A (en) | 2015-04-08 |
CN104506613B true CN104506613B (en) | 2018-01-19 |
Family
ID=52948328
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410802365.6A Active CN104506613B (en) | 2014-12-19 | 2014-12-19 | The sharing method and system of application data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104506613B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007105838A1 (en) * | 2006-03-14 | 2007-09-20 | Korea Institute Of Science And Technology | A intelligent computing device agent system for automatic recognition of multi user computing environment and information sharing setup |
CN104092715A (en) * | 2013-11-28 | 2014-10-08 | 腾讯科技(深圳)有限公司 | Synchronization application program method, server and system |
-
2014
- 2014-12-19 CN CN201410802365.6A patent/CN104506613B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007105838A1 (en) * | 2006-03-14 | 2007-09-20 | Korea Institute Of Science And Technology | A intelligent computing device agent system for automatic recognition of multi user computing environment and information sharing setup |
CN104092715A (en) * | 2013-11-28 | 2014-10-08 | 腾讯科技(深圳)有限公司 | Synchronization application program method, server and system |
Also Published As
Publication number | Publication date |
---|---|
CN104506613A (en) | 2015-04-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109445968A (en) | Service request processing method, device, equipment and the storage medium of different agreement | |
KR101821511B1 (en) | Data processing method based on instant messaging or social applications, and device thereof | |
US8738700B2 (en) | Method and system for providing network services | |
US11016716B2 (en) | Picture interface display method and apparatus according to jump protocol | |
CN105939313B (en) | Status code reorientation method and device | |
CN105812315B (en) | Multiple terminals method for message transmission and device based on user's login account | |
CN102904959B (en) | Network accelerating method and gateway | |
CN110191031A (en) | Network resource access method, device, electronic equipment | |
CN104022945B (en) | Method and device for realizing instant communication in client end | |
CN103747010B (en) | A kind of method, system and device by mobile terminal control PC | |
CN102474432A (en) | Social network virtual private network | |
US10863312B2 (en) | Moving track sharing method and apparatus, and storage medium | |
CN104869143A (en) | Data sharing method and device, client and server | |
CN106130990A (en) | The control method of container access and device | |
CN105227673B (en) | Data download method, client, server and the system of anti-abduction | |
CN108124007A (en) | The method and apparatus of message data real-time Transmission | |
CN106953842A (en) | A kind of message treatment method and device of live platform | |
CN104767614B (en) | A kind of information authentication method and device | |
CN105099769B (en) | Abnormal operation processing method, equipment and the system of business platform | |
CN108549586B (en) | Information processing method and device | |
CN110324437A (en) | A kind of original address transmission method, system, storage medium and processor | |
CN110413329A (en) | IOT equipment remote debugging method, apparatus and system | |
CN105095220B (en) | A kind of browser implementation method, terminal and virtualization agent device | |
CN103595759A (en) | Desktop presenting method based on cloud | |
US20190370293A1 (en) | Method and apparatus for processing information |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220714 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |
|
TR01 | Transfer of patent right |