Moving method, device, terminal, server and the storage medium of utility cession
Technical field
The present invention relates to Internet technical field more particularly to a kind of moving method of utility cession, device, terminals, clothes
Business device and storage medium.
Background technique
The rise of mobile Internet, different internet terminal equipments may have certain identical functions, such as watch movie,
Video calling, but people are also felt when using these smart machines and isolate very much between different product.For example, user exists
On the way home with some program is seen on mobile phone to half, come back home when opening smart television and wanting turning next to same program, just
It is switched on TV and opens corresponding application, search again for relevant program, then the progress interrupted before being fast-forward to manually.It can see
User needs to pass through very cumbersome operation out, uses an application before can restoring in a terminal in other terminals
State.
In order to reduce migration of the user in the product using the same application in different terminals, some applications are live by it
For information preservation to cloud, using in new terminal should be in application, from cloud downloading and restoring scene information.In itself interiors of products reality
Migration of the current some site of deployment relevant informations in family in different terminals and shared.
In existing application migration scheme, user needs to click relevant operations such as " preservation " " synchronizations " manually, realizes session
The session status of application of the data in each preservation using in corresponding server, different terminals is difficult to accomplish same in real time
Step.Meanwhile each application requires to build the cloud server of oneself, and realizes the upload, preservation, downloading of session data
Using etc. functions, implement cost and cost it is big.
Summary of the invention
The present invention provides moving method, device, terminal, server and the storage medium of a kind of utility cession, may be implemented
The conversation shift applied between the real-time synchronization of the utility cession state of different terminals, and the different terminals of low cost.
In a first aspect, the embodiment of the invention provides a kind of moving methods of utility cession, which comprises
Monitor the more new state of the corresponding field data of target application on present terminal;
According to the more new state, updated field data is sent to server, it will be described by the server
Field data be transmitted to include the target application any terminal, so that any terminal is extensive according to the field data
The scene of the multiple target application.
Further, updated field data is sent to server, is transmitted the field data by server
To any terminal for including the target application, comprising:
According to preset concatenate rule, the first transmission channel of present terminal Yu the server is established, or by described
Server establishes the second transmission channel of present terminal with any terminal for including the target application;
Based on first transmission channel, the updated field data is sent to server, it will by server
The updated field data be transmitted to include the target application any terminal;Or
Based on second transmission channel, updated field data is sent to include the target application any
Terminal.
Further, restore the scene of the target application according to the field data so as to any terminal, comprising:
So that any terminal starts the target application according to preset application setup rule;
The scene that the field data restores the target application is loaded by the target application.
Further, the field data includes User ID, Termination ID, application ID, version number and/or timestamp.
Further, the method also includes:
Heartbeat packet periodically is sent to the server, so that the present terminal persistently keeps connecting with the server.
Second aspect, the embodiment of the invention also provides a kind of moving methods of utility cession, are applied to server, described
Method includes:
Acquisition includes the field data of the target application in any terminal of target application;
The more new state of the corresponding field data of the target application is monitored, and is determined according to the more new state and shape occurs
The target terminal that state updates;
By the corresponding updated field data of the target terminal be sent to it is described include target application any end
End, so that any terminal restores according to the field data scene of the target application.
Further, the corresponding updated field data of the target terminal is sent to described includes target application
Any terminal, comprising:
According to preset concatenate rule, the first transmission channel with any terminal is established, or establishes the target end
Second transmission channel at end and any terminal;
Based on first transmission channel, the updated field data is transmitted to any terminal;Wherein, institute
It states the second transmission channel and updated field data is transmitted to any terminal for the target terminal.
Further, after the more new state for monitoring the corresponding field data of the target application, the method also includes:
According to the more new state of the field data to it is described include the target application any terminal send described in
The corresponding report status data of target application;
The target application is showed according to what the report status data inputted in response to user in any terminal
Field recovery request, is transmitted to any terminal for the corresponding field data of the target application.
Further, the field data includes User ID, Termination ID, application ID, version number and/or timestamp.
Further, according to preset concatenate rule, the second transmission of the target terminal and any terminal is established
Channel, comprising:
Obtain and include the target application any terminal on target application use state;
In response to the data connection request with any terminal that the target terminal is sent, according to the use state
Establish the target terminal and second transmission channel for belonging to any terminal.
Further, described device further include:
Heartbeat packet periodically is sent to any terminal, persistently to keep connecting with any terminal.
The third aspect, the embodiment of the invention also provides a kind of moving apparatus of utility cession, described device includes:
Data update monitoring module, for monitoring the more new state of the corresponding field data of target application on present terminal;
Data transmission blocks are updated, for according to the more new state, updated field data to be sent to server,
The field data is transmitted to by server include the target application any terminal, so as to any terminal root
Restore the scene of the target application according to the field data.
Fourth aspect, the embodiment of the invention also provides a kind of moving apparatus of utility cession, described device includes:
Field data obtains module, includes showing for the target application in any terminal of target application for obtaining
Field data;
Field data monitoring module, for monitoring the more new state of the corresponding field data of the target application, and according to
The more new state determines the target terminal that generating state updates;
Field data sending module, for the corresponding updated field data of the target terminal to be sent to the packet
Any terminal containing target application, so that any terminal restores showing for the target application according to the field data
?.
5th aspect, the embodiment of the invention also provides a kind of terminal, the terminal includes:
One or more processors;
Memory device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes the moving method of the utility cession applied to terminal as described in any embodiment of that present invention.
6th aspect, the embodiment of the invention also provides a kind of server, the server includes:
One or more processors;
Memory device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes the moving method of the utility cession applied to server as described in any embodiment of that present invention.
7th aspect, it is described the embodiment of the invention also provides a kind of storage medium comprising computer executable instructions
Computer executable instructions are applied to as described in any embodiment of that present invention when being executed as computer processor for executing
The moving method of the utility cession of terminal.
Eighth aspect, it is described the embodiment of the invention also provides a kind of storage medium comprising computer executable instructions
Computer executable instructions are applied to as described in any embodiment of that present invention when being executed as computer processor for executing
The moving method of the utility cession of server.
The embodiment of the present invention passes through the more new state of the corresponding field data of target application on monitoring present terminal, according to institute
More new state is stated, updated field data is sent to server, is transmitted to the field data by the server
It include any terminal of the target application, so that any terminal restores the target application according to the field data
Scene.Solve the problems, such as that the session status of the application in different terminals in the prior art is difficult to accomplish real-time synchronization.Pass through
It monitors the field data of target application in real time, realizes the synchronization of field data between different terminals, and then user can exist in real time
Conveniently it is rapidly performed by the in-situ FTIR spectroelectrochemitry of target application on different terminals, i.e., what realization cross-terminal conversated quick seamless moves
It moves.Meanwhile different target applications can save field data in the server, realize the upload of session data, preservation, under
The functions such as application are carried, implements cost and cost is small.
Detailed description of the invention
Fig. 1 is the flow chart of the moving method of one of the embodiment of the present invention one utility cession.
Fig. 2 is the flow chart of the moving method of one of the embodiment of the present invention two utility cession.
Fig. 3 is the flow chart of the moving method of one of the embodiment of the present invention three utility cession.
Fig. 4 is the flow chart of the moving method of one of the embodiment of the present invention four utility cession.
Fig. 5 is the structural schematic diagram of the moving apparatus of one of the embodiment of the present invention five utility cession.
Fig. 6 is the structural schematic diagram of the moving apparatus of one of the embodiment of the present invention six utility cession.
Fig. 7 is the structural schematic diagram of one of the embodiment of the present invention seven terminal.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart of the moving method for utility cession that the embodiment of the present invention one provides, and the present embodiment can fit
The case where migrating for utility cession between terminal, this method can be applied to terminal, by a kind of moving apparatus of utility cession
It executes, which can be realized by the way of software and/or hardware, and be configurable in the terminal.This method is specific
Include the following steps:
The more new state of the corresponding field data of target application on S110, monitoring present terminal.
Wherein, present terminal can be any with network communicating function, can install and run one or more application
The equipment such as the electronic equipment of program, such as smart phone, personal computer, tablet computer and smart television.In general, user can
To install multiple applications with different function in the terminal of oneself according to the actual needs of oneself, such as video playing is answered
With, music application, chat application etc..Target application can be any application installed on present terminal, if user couple
Some application has the needs of conversation shift, can be as target application.
Field data can be it is corresponding some using or operation during the record data that generate and store
File.By taking chat application as an example, scene can be the interface or process that user is chatting with some good friend, corresponding scene number
According to may include contact head image, the information etc. of buffering and the picture and logon account downloaded.By taking Video Applications as an example, scene
It can be the scene that Video Applications play some video, corresponding field data may include user when watching some video
The data relevant to the video generated, the playback progress data including video.The target in present terminal can be monitored in real time
Whether the field data of application is updated.If user has viewed new video, corresponding new live number can be generated
According to that is, field data can update.
S120, updated field data is sent to server, the field data is transmitted to by packet by server
Any terminal containing the target application, so that any terminal restores the target application according to the field data
Scene.
It wherein, include that any terminal of the target application can be any terminal for being mounted with the target application.
Illustratively, described includes that any terminal of the target application can be times for belonging to same user with the present terminal
One terminal.Due to the rise of mobile Internet, smart phone has become the main online amusement of people, browses the flat of news
Platform.But other than smart phone, user's stickiness of traditional PC or tablet computer is still very strong, PC or people's routine office work
Absolutely main force, while being also the Important Platform of game, video entertainment.Therefore, user can generally possess for convenience of oneself use
Multiple terminals.Target application can be installed on simultaneously in all terminals of user, to be easy to use target to answer in any terminal
With, and realize the migration of utility cession.
The updated field data is sent to server, server these field datas can be sent to
The present terminal belongs to any terminal of same user.Any terminal can be corresponding according to the target application got
Updated field data restores or the scene of reduction target application corresponding with the field data.
Illustratively, user is divided X seconds with the Video Applications viewing A video program installed on mobile phone to X on the way home,
It comes back home and wants to continue then last viewing A video, smart television or tablet computer after opening smart television or tablet computer
After getting the newest field data of corresponding Video Applications, that is, realize the migration of the field data of target application, migrate to
In smart television or tablet computer, the Video Applications in smart television or tablet computer can be restored to upper one according to field data
Secondary viewing A video divides X seconds progresses to X, and video is then watched in the continuation that user can be convenient, and user does not need in smart television
Or same program is scanned in tablet computer, then progress bar is drawn to troublesome operation at the time of last time viewing, is mentioned
High user experience.
Optionally, the scene for restoring the target application according to the field data so as to any terminal, packet
It includes: so that any terminal starts the target application according to preset application setup rule;Added by the target application
Carry the scene that the field data restores the target application.
Wherein, preset to can be the preset target application for being used to start in any terminal simultaneously using setup rule
Restore the condition or rule of the site of deployment in other terminals.Specifically, user can be according to oneself use to target application
Situation or requirement are arranged in the terminal.Illustratively, setup rule can be start-up operation or end of the user to target application
Hold the rule of the automatic starting target application executed according to field data situation.For example it can be starting of the user to target application
Operation, such as click directly on the corresponding icon of target application;It can also set when including in the updated data of target application
When certain type of data, by taking Video Applications as an example, if in updated status data including the video counts for not watching completion
According to when, then can start Video Applications automatically.Specifically, can have the module of a monitoring objective application state data in terminal
Resident running background starts target application, just when some setup rules for finding target application meet so that user conveniently makes
With.After target application starting, it can be loaded directly into corresponding updated field data, restore the target application
Scene.
Optionally, the field data includes User ID, Termination ID, application ID, version number and/or timestamp.Wherein, it uses
Family ID can be the account identification for user, in the identical situation of User ID, then correspond to the different terminals of the same User ID
It can be considered as belonging to the terminal of same user.A corresponding User ID, Termination ID can be setting for terminal electronic device
Standby number, for being identified to terminal itself.Application ID can be the mark for distinguishing different application.Phase in different terminals
The same application ID can be used in same application.Timestamp can be intended to indicate that the time that corresponding field data generates.Version
This number mark that can be used as Different field data, for distinguishing different field datas.Field data may include it is above not
One of same mark is a variety of.
Optionally, on the basis of the above embodiments, the method also includes: periodically to the server send heartbeat
Packet, so that the present terminal persistently keeps connecting with the server.
Wherein, heartbeat packet can be periodically notifies one of other side oneself state oneself definition between terminal and server
Command word can be sent according to certain time interval, for example just be sent every 30 seconds, allowed other side to know oneself " online ", avoided
The connection that connection identification growth time does not use is automatically closed for operator, effective with ensure to connect between server
Property.
The technical solution of the present embodiment realizes live number between different terminals by the field data of real time monitoring application
According to synchronization, and then user can conveniently be rapidly performed by the in-situ FTIR spectroelectrochemitry of target application on different terminals in real time, that is, realize
The quick seamless migration of the session of cross-terminal.Meanwhile different target applications can save field data in the server, it is real
The functions such as upload, preservation, the downloading application of existing session data, implement cost and cost are small.
Embodiment two
Fig. 2 is a kind of flow chart of the moving method of utility cession provided by Embodiment 2 of the present invention, optionally, this implementation
Example has done further optimization to this method on the basis of the various embodiments described above, as shown in Fig. 2, this method specifically includes:
The more new state of the corresponding field data of target application on S210, monitoring present terminal.
S220, according to preset concatenate rule, establish the first transmission channel of present terminal Yu the server, or pass through
The server establishes the second transmission channel of present terminal with any terminal for including the target application.
S230, it is based on first transmission channel, the updated field data is sent to server, passes through service
The updated field data is transmitted to any terminal by device;Or it is based on second transmission channel, it will be updated
Field data be sent to any terminal, so that any terminal restores the target application according to the field data
Scene.
Wherein, preset concatenate rule can be the preset scene which kind of mode to carry out at least one application by
The acquisition of data, for example be to be sent by server or sent by other terminals.Specifically, mandatory services device can be set
The different modes such as terminal is direct-connected, preferential terminal is direct-connected are forced in forwarding.Illustratively, no matter the forwarding of mandatory services device can indicate
What situation, terminal must obtain the field data of the target application from server, that is, establish present terminal and server
The first transmission channel, such as long connection message push channel.Correspondingly, the present terminal can be based on the described first long company
It connects message push channel and the updated field data is sent to server, in order to belong to any terminal of same user
The field data can also be obtained from server, and restores the scene of target application according to the field data, improve user
Experience.
No matter forcing, terminal is direct-connected can to indicate any situation, and present terminal directly passes the updated field data
The second transmission channel can be established between two terminals by server in such cases by transporting to other described terminals, such as
Two terminals pass through server exchange when carrying out UDP (User Datagram Protocol, User Datagram Protocol) connection
Their IP and port information establish the straight interface channel between terminal.Correspondingly, present terminal can use the second transmission channel
By the updated field data, it is transmitted to other terminals.The direct-connected mode of terminal can fast implement the biography of larger data
It is defeated, transit server is needed not move through, the speed of conversation shift is accelerated.
The direct-connected preferentially progress terminal that can be of preferential terminal is direct-connected, establishes the second transmission channel;If terminal it is direct-connected not at
Function then can further connect server, establish the first transmission channel.User can take into account stability and performance requirement, selection
Different connection types.
The technical solution of the present embodiment, by establishing present terminal and the server according to preset concatenate rule
First transmission channel, or establish the second of present terminal and any terminal for belonging to same user by the server and pass
Defeated channel provides the transmission mode of various field data, can take into account the performance of terminal and server, realizes between different terminals
The synchronization of field data, meanwhile, transmission speed is very fast between terminal, and there is no need to server end ginsengs after transmission channel foundation
With the quick seamless migration of the session of cross-terminal may be implemented.In addition, field data can be stored in by different target applications
In server, realizes the functions such as the upload, preservation, downloading application of session data, implement cost and cost is small.
Embodiment three
Fig. 3 is a kind of flow chart of the moving method for utility cession that the embodiment of the present invention three provides, and the present embodiment can fit
The case where migrating for utility cession between terminal, this method can be applied to server, be filled by a kind of migration of utility cession
It sets to execute, which can be realized by the way of software and/or hardware, and is configured in the server.This method
Specifically comprise the following steps:
S310, acquisition include the field data of the target application in any terminal of target application.
The more new state of S320, the corresponding field data of the monitoring target application, and determined according to the more new state
The target terminal that generating state updates.
Wherein, the corresponding updated field data of target application in getting any terminal for belonging to same user
Meanwhile it can be with the more new state of monitoring site data.For example, belonging to the live number of the target application in the terminal 1 of same user
When according to being sent to server, if the field data at this moment is become relative to the field data that previous moment is got
Change, it may be considered that the field data has update, it is also possible to determine the target that corresponding target application generating state updates
Terminal, i.e. terminal 1.Wherein, the field data that previous moment is got can be any terminal transmission for belonging to same user.
S330, to be sent to the corresponding updated field data of the target terminal described include appointing for target application
One terminal, so that any terminal restores according to the field data scene of the target application.
Wherein, any terminal can restore the corresponding scene of target application according to the updated field data, i.e., in fact
Migration of the corresponding live number of target application between different terminals is showed.It is specifically that the target terminal is corresponding updated
Field data is sent to any terminal, can be transmitted to any terminal by transit server, can also be by establishing two
Updated field data is directly transferred to any terminal by the connection between a terminal, target terminal.
Optionally, after the more new state for monitoring the corresponding field data of the target application, the method also includes:
According to the more new state of the field data to it is described include the target application any terminal send described in
The corresponding report status data of target application;
The target application is showed according to what the report status data inputted in response to user in any terminal
Field recovery request, is transmitted to any terminal for the corresponding field data of the target application.
Wherein, report status data can be used for reflecting the field data situation of change of application or the subject information of variation,
Such as report status data can be some video observing in the Video Applications in terminal 1 and see the site of deployment message such as half.
Specifically, the field data that user can subscribe to the target application in terminal according to the actual needs of oneself changes, if setting
It subscribes to, then the associated field data report of subscribed target application can in real time or be regularly sent to the different terminals of user
In.User can report that the operation performed the next step, such as the terminal 1 of user receive according to the field data of target application
Data report be in terminal 2 Video Applications viewing B program to the 3rd collection, if user wants to continue receiving in terminal 1
It sees the 4th collection, then can carry out clicking the in-situ FTIR spectroelectrochemitry request that corresponding operation issues target application, for example click operation video is answered
With 1, then the field data can be transmitted to terminal 1 by server, or is established interface channel for terminal 1 and terminal 2 and made
The field data can be sent to terminal 1 by obtaining terminal 2, and then terminal 1 can restore the scene of target application, for user
It continues to use.
Optionally, the field data includes User ID, Termination ID, application ID, version number and timestamp.
Optionally, the method also includes: periodically to any terminal send heartbeat packet, so as to any terminal
It is lasting to keep connection.
Servicing implement body can also include:
Application database server, for save the corresponding login password of a user, Termination ID, application, using starting
The information such as rule.
Application database server, for saving the utility cession using " user-Termination ID-application ID " as inquiry key
Data.
Using span terminal called server, following service is provided for application cross-terminal communication:
1) login of record application, whether the states etc. such as monitored data connection;
2) direct-connected data channel is established for two terminal rooms and support is provided, such as two terminals are needed when carrying out UDP connection
To pass through their IP of the same server exchange and port information.
Long connection message push server, for safeguarding the channel with the agent application module in each terminal.
State synchronized server is modified for application state and issues (post&subscribe), is generally assisted using mqtt
View is to realize.
Wherein, explanation of nouns involved in the present embodiment, method are implemented and corresponding effect and function etc. specifically can be with
Referring to the above embodiment of the present invention, details are not described herein.
The technical solution of the present embodiment belongs to the scene of the target application of any terminal transmission of same user by obtaining
Data monitor the more new state of the corresponding field data of the target application, and determine generating state according to the more new state
The target terminal of update realizes the synchronization of updated field data between different terminals, realizes the quick of the session of cross-terminal
Seamless migration.Meanwhile different target applications can by field data save in the server, realize session data upload,
It saves, download the functions such as application, implement cost and cost is small.
Example IV
Fig. 4 is a kind of flow chart of the moving method for utility cession that the embodiment of the present invention four provides, optionally, this implementation
Example has done further optimization to this method on the basis of the various embodiments described above, as shown in figure 4, this method specifically includes:
The field data for the target application that any terminal that S310, acquisition belong to same user is sent.
The more new state of S320, the corresponding field data of the monitoring target application, and determined according to the more new state
The target terminal that generating state updates.
S330, according to preset concatenate rule, establish the first transmission channel with any terminal, or establish the mesh
Mark the second transmission channel of terminal and any terminal.
S340, it is based on first transmission channel, the updated field data is transmitted to any terminal;Its
In, updated field data is transmitted to any terminal for the target terminal by second transmission channel, so as to
Restore the scene of the target application according to the field data in any terminal.
Wherein, explanation of nouns involved in the present embodiment, method are implemented and corresponding effect and function etc. specifically can be with
Referring to above-described embodiment, details are not described herein.
Optionally, it according to preset concatenate rule, establishes the target terminal and belongs to the of same user's any terminal
Two transmission channels, comprising:
Obtain the use state with target application in any terminal described in the target terminal;
In response to the data connection request with any terminal that the target terminal is sent, according to the use state
Establish the second transmission channel of other terminals of the target terminal and any terminal for belonging to same user.
Wherein, whether the terminal that the use state of target application can be where referring to target application can carry out and other ends
Whether whether the state of the connection at end, specifically can online by target application or log in judge, if online, then it represents that eventually
The field data that target application generates in end can be transmitted to server or other terminals, at the same can also from server or other
Terminal obtains field data to restore the scene of target application.Illustratively, if server gets following information: user thinks
Restore in present terminal 1 application 1 scene, have sent the data connection request of terminal, and in terminal 2 application 1 be
Linear state, then server can establish the second transmission channel for terminal 1 and terminal 2, realize the biography of field data in terminal 1 and 2
It is defeated.It is fast compared to the speed by transit server meanwhile when carrying out the transmission of larger data between the terminals, improve user
Experience.
Server is established direct-connected between terminal according to the use state of target application, realizes more reasonable connection type
Carry out the transmission of field data, it can realize quick seamless migration of the utility cession between different terminals.Certainly, server
It is direct-connected can to judge whether different terminals can carry out according to the use state of target application, it is only necessary to which user's sendaisle is established
Request can establish the second transmission channel with other appropriate terminals then with the terminal to issue data connection request.
The technical solution of the present embodiment, by establishing present terminal and the server according to preset concatenate rule
First transmission channel, or establish the second of present terminal and any terminal for belonging to same user by the server and pass
Defeated channel provides the transmission mode of various field data, can take into account the performance of terminal and server, realizes between different terminals
The synchronization of updated field data between different terminals is realized in the synchronization of field data, realizes the quick nothing of cross-terminal session
Seam migration, improves user experience.Meanwhile different target applications can save field data in the server, realize session
The functions such as upload, preservation, the downloading application of data, implement cost and cost are small.
Embodiment five
Fig. 5 is a kind of structural schematic diagram of the moving apparatus for utility cession that the embodiment of the present invention five provides, the present embodiment
It is applicable between terminal the case where utility cession migrates, which can realize by the way of software and/or hardware, can be with
It is configured at terminal, as shown in figure 5, the device specifically includes:
Data update monitoring module 510, for monitoring the update shape of the corresponding field data of target application on present terminal
State;
Data transmission blocks 520 are updated, for according to the more new state, updated field data to be sent to service
Device, the field data is transmitted to by server include the target application any terminal, so as to any end
Restore the scene of the target application according to the field data in end.
Optionally, the update data transmission blocks 520, comprising:
Path Setup unit, for according to preset concatenate rule, establish present terminal and the server first to be passed
Defeated channel, or establish by the server the second transmission channel of present terminal Yu any terminal;
The updated field data is sent to clothes for being based on first transmission channel by data transmission unit
The updated field data, is transmitted to and any terminal by business device by server;Or
Based on second transmission channel, updated field data is sent to and any terminal.
Optionally, the update data transmission blocks 520, specifically for updated field data is sent to service
Device, the field data is transmitted to by server include the target application any terminal, so as to any end
End starts the target application according to preset application setup rule;And it is extensive by the target application load field data
The scene of the multiple target application.
Optionally, the field data includes User ID, Termination ID, application ID, version number and/or timestamp.
Optionally, described device further include: heartbeat packet sending module, for periodically sending heartbeat packet to the server,
So that the present terminal persistently keeps connecting with the server.
The moving apparatus of utility cession provided by the embodiment of the present invention can be performed provided by any embodiment of the invention
The moving method of utility cession applied to terminal has the corresponding functional module of execution method and beneficial effect.Not in this reality
The technical detail of detailed description in example is applied, reference can be made to the utility cession applied to terminal that any embodiment of that present invention provides moves
Shifting method.
Embodiment six
Fig. 6 is a kind of structural schematic diagram of the moving apparatus for utility cession that the embodiment of the present invention six provides, the present embodiment
It is applicable between terminal the case where utility cession migrates, which can realize by the way of software and/or hardware, can be with
It is configured at server, as shown in fig. 6, the device specifically includes:
Field data obtains module 610, includes the target application in any terminal of target application for obtaining
Field data;
Field data monitoring module 620, for monitoring the more new state of the corresponding field data of the target application, and root
The target terminal that generating state updates is determined according to the more new state;
Field data sending module 630, for the corresponding updated field data of the target terminal to be sent to institute
State include target application any terminal, so that any terminal restores the target application according to the field data
Scene.
Optionally, the field data sending module 630, comprising:
Path Setup unit, for establishing the first transmission channel with any terminal according to preset concatenate rule,
Or establish the second transmission channel of the target terminal Yu any terminal;
The updated field data is transmitted to institute for being based on first transmission channel by data transmission unit
State any terminal;Wherein, updated field data is transmitted to described by second transmission channel for the target terminal
Any terminal.
Optionally, described device further include:
State report sending module, for after the more new state for monitoring the corresponding field data of the target application,
The corresponding report status data of the target application is sent to any terminal according to the more new state of the field data;
The target application is showed according to what the report status data inputted in response to user in any terminal
Field recovery request, is transmitted to any terminal for the corresponding field data of the target application.
Optionally, the field data includes User ID, Termination ID, application ID, version number and/or timestamp.
Optionally, the Path Setup unit, is specifically also used to,
It include the use state of the target application in any terminal of the target application described in acquisition;
In response to the data connection request with any terminal that the target terminal is sent, according to the use state
Establish the second transmission channel of the target terminal Yu any terminal.
Optionally, described device further include: heartbeat packet sending module, for periodically sending heartbeat to any terminal
Packet, persistently to keep connecting with any terminal.
The moving apparatus of utility cession provided by the embodiment of the present invention can be performed provided by any embodiment of the invention
The moving method of utility cession applied to server has the corresponding functional module of execution method and beneficial effect.Not at this
The technical detail of detailed description in embodiment, reference can be made to the utility cession applied to server that any embodiment of that present invention provides
Moving method.
Embodiment seven
Referring to Fig. 7, a kind of terminal 700 is present embodiments provided comprising: one or more processors 720;Storage device
710, for storing one or more programs, when one or more of programs are executed by one or more of processors 720,
So that one or more of processors 720 are realized provided by the embodiment of the present invention applied to a kind of utility cession of terminal
Moving method, comprising:
Monitor the more new state of the corresponding field data of target application on present terminal;
According to the more new state, updated field data is sent to server, it will be described by the server
Field data be transmitted to include the target application any terminal, so that any terminal is extensive according to the field data
The scene of the multiple target application.Certainly, it will be understood by those skilled in the art that processor 720 can also realize that the present invention appoints
Technical solution provided by embodiment of anticipating applied to a kind of moving method of utility cession of terminal.
The terminal 700 that Fig. 7 is shown is only an example, should not function to the embodiment of the present invention and use scope bring
Any restrictions.
As shown in fig. 7, terminal 700 is showed in the form of universal computing device.The component of terminal 700 may include but unlimited
In one or more processor 720, storage device 710, different system components (including storage device 710 and processor are connected
720) bus 750.
Bus 750 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts
For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)
Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Terminal 700 typically comprises a variety of computer system readable media.These media can be it is any can be by terminal
The usable medium of 700 access, including volatile and non-volatile media, moveable and immovable medium.
Storage device 710 may include the computer system readable media of form of volatile memory, such as arbitrary access
Memory (RAM) 711 and/or cache memory 712.Terminal 700 may further include other removable/nonremovable
, volatile/non-volatile computer system storage medium.Only as an example, storage system 713 can be used for reading and writing not removable
Dynamic, non-volatile magnetic media (Fig. 7 do not show, commonly referred to as " hard disk drive ").Although being not shown in Fig. 7, can provide
Disc driver for being read and write to removable non-volatile magnetic disk (such as " floppy disk "), and to removable anonvolatile optical disk
The CD drive of (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver can
To be connected by one or more data media interfaces with bus 750.It may include that at least one program produces that storage, which fills 710,
Product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform of the invention each
The function of embodiment.
Program/utility 714 with one group of (at least one) program module 715 can store in such as storage dress
It sets in 710, such program module 715 includes but is not limited to operating system, one or more application program, other program moulds
It may include the realization of network environment in block and program data, each of these examples or certain combination.Program module
715 usually execute function and/or method in any embodiment described in the invention.
Terminal 700 can also be logical with one or more external equipments 760 (such as keyboard, sensing equipment, display 770 etc.)
Letter, can also be enabled a user to one or more equipment interact with the terminal 700 communicate, and/or with make the terminal 700
Any equipment (such as network interface card, modem etc.) that can be communicated with one or more of the other calculating equipment communicates.This
Kind communication can be carried out by input/output (I/O) interface 730.Also, terminal 700 can also by network adapter 740 with
One or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication.Such as
Shown in Fig. 7, network adapter 740 is communicated by bus 750 with other modules of terminal 700.It should be understood that although not showing in figure
Out, other hardware and/or software module can be used in conjunction with terminal 700, including but not limited to: microcode, device driver, superfluous
Remaining processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
The program that processor 720 is stored in storage device 710 by operation, thereby executing various function application and number
According to processing, such as realize the moving method provided by the embodiment of the present invention applied to a kind of utility cession of terminal.
Present invention implementation additionally provides a kind of server comprising: one or more processors;Storage device, for depositing
One or more programs are stored up, when one or more of programs are executed by one or more of processors, so that one
Or multiple processors realize the moving method provided by the embodiment of the present invention applied to a kind of utility cession of server, packet
It includes:
Acquisition includes the field data of the target application in any terminal of target application;
The more new state of the corresponding field data of the target application is monitored, and is determined according to the more new state and shape occurs
The target terminal that state updates;
By the corresponding updated field data of the target terminal be sent to it is described include target application any end
End, so that any terminal restores according to the field data scene of the target application.
Certainly, it will be understood by those skilled in the art that processor can also realize it is provided by any embodiment of the invention
A kind of technical solution of the moving method of utility cession applied to server.
Specifically, the hardware configuration of the terminal may refer to Fig. 7 described in the present embodiment and relevant explanation, herein no longer
It repeats.
Embodiment eight
The embodiment of the present invention eight provides a kind of storage medium comprising computer executable instructions, and the computer is executable
It instructs when being executed as computer processor for executing a kind of application meeting for being applied to terminal provided by the embodiment of the present invention
The moving method of words, comprising:
Monitor the more new state of the corresponding field data of target application on present terminal;
According to the more new state, updated field data is sent to server, it will be described by the server
Field data be transmitted to include the target application any terminal, so that any terminal is extensive according to the field data
The scene of the multiple target application.Certainly, a kind of storage comprising computer executable instructions provided by the embodiment of the present invention
Medium, the method operation that computer executable instructions are not limited to the described above, can also be performed any embodiment of that present invention institute
Relevant operation in a kind of moving method of the utility cession applied to terminal provided.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media
Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable
Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or
Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool
There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires
(ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-
ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage
Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device
Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.?
Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or
Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service
It is connected for quotient by internet).
The embodiment of the present invention eight also provides another storage medium comprising computer executable instructions, and the computer can
It executes instruction when being executed as computer processor for executing the one kind for being applied to server provided by the embodiment of the present invention
The moving method of utility cession, comprising:
Acquisition includes the field data of the target application in any terminal of target application;
The more new state of the corresponding field data of the target application is monitored, and is determined according to the more new state and shape occurs
The target terminal that state updates;
By the corresponding updated field data of the target terminal be sent to it is described include target application any end
End, so that any terminal restores according to the field data scene of the target application.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention
The method operation that executable instruction is not limited to the described above can also be performed provided by any embodiment of the invention applied to clothes
Relevant operation in a kind of moving method of utility cession of business device.
The computer storage medium of the embodiment of the present invention is specifically introduced and explanation may refer to the embodiment of the present invention eight,
This is repeated no more.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.