Present patent application is filing date November 26, Application No. in 2013
201310612011.0, entitled " a kind of method of offline file transmission, system, terminal unit and
Server " the divisional application of Chinese invention patent application.
Summary of the invention
In view of the above problems, it is proposed that the present invention is to provide one to overcome the problems referred to above or at least partly
Ground solves a kind of method of offline file transmission of the problems referred to above and corresponding a kind of offline file transmission
System, a kind of terminal unit for offline file transmission, a kind of service for offline file transmission
Device.
According to one aspect of the present invention, it is provided that a kind of method of offline file transmission, including:
When first terminal equipment is not detected by the access of the second terminal unit, set at first terminal
File destination resource is sent to first server by standby side by suspension window;
The described file destination resource of described first server return is received at first terminal equipment side
Download address, the download address of described file destination resource is that described first server is according to described mesh
Mark file resource generates;
Information bag is built also according to the download address of described file destination resource at first terminal equipment side
Send to second server.
Alternatively, by suspension window, file destination resource is sent out at first terminal equipment side described
Before delivering to the step in first server, also include:
The assigned operation that detection user initiates for suspension window, described assigned operation includes that user will
File destination resource is drawn the operation of suspension window, and/or, user clicks on the literary composition on suspension window
Part selectes button, selects file destination in the file path selection window that first terminal equipment ejects
The operation in the path of resource;
When described assigned operation being detected, send reminder message and ask the user whether to need off-line to send out
Send file destination resource;
Described first terminal equipment side by suspension window by file destination resource send to first clothes
Step in business device includes:
After receiving the off-line confirmation instruction that user sends, by suspension window by described target literary composition
Part resource sends to first server, and described off-line confirms the instruction confirmation off-line for user's instruction
Send the instruction of described file destination resource.
Alternatively, described first terminal equipment side by suspension window by file destination resource send
Step to first server includes:
First terminal equipment side according to described user for suspension window assigned operation generate file
Send request;
At first terminal equipment side, described file is sent request to send to first server;
The file response message that described first server returns is received at first terminal equipment side;
Described file destination resource is sent according to described file response message at first terminal equipment side
To first server.
Alternatively, described at first terminal equipment side according to described file response message by described target
The step that file resource sends to first server includes:
Enter by described file destination resource according to described file response message at first terminal equipment side
Row encryption;
File destination resource after described encryption is sent to first server.
Alternatively, described file destination resource is the file resource choosing that first terminal side sends according to user
The file resource that fixed instruction obtains;The selected instruction of described file resource is that user is at first terminal equipment
The download instruction to certain file resource selected in the file resource download list that side is shown, or,
Described file resource is selected instruction and is selected in the file resource that first terminal equipment side stores for user
The selected instruction to certain file resource.
Alternatively, described at first terminal equipment side according to the download address of described file destination resource
Structure information bag the step sent to second server include:
The file attribute information of described file destination resource is obtained at first terminal equipment side;
The download address of described file destination resource and described file is built at first terminal equipment side
The information bag of attribute information;
At first terminal equipment side by described packets to second server.
Alternatively, described method also includes:
The validation of information instruction that the 3rd server sends is received at first terminal equipment side;
At first terminal equipment side, the instruction of described validation of information is showed user;
Receive the confirmation that user selects, and described confirmation is sent to second server.
Alternatively, the instruction of described validation of information includes the mark of the second terminal unit, described confirmation
Including the first confirmation and the second confirmation, described first confirmation is to select according to user
Second terminal unit corresponding to the fixed mark confirming described second terminal unit be file reception side and
The information generated;Described second confirmation is not confirm described second terminal according to what user selected
The second terminal unit that the mark of equipment is corresponding is the information that file reception side generates.
Alternatively, described method also includes:
Generating file transmission list at first terminal equipment side, described file transmission list is by described
Suspension window carries out the list that the file destination resource of off-line transmission is organized into.
Alternatively, described file transmission list has file for each file destination resource and send shape
State information, described file send status information include the state that is successfully transmitted, send state, etc.
State to be sent and transmission status of fail.
Alternatively, the file attribute information of described file destination resource also includes the big of file destination resource
Little, the type of file destination resource, the version number of file destination resource, the mark of file destination resource
Know.
Alternatively, the type of described file destination resource includes theme, wallpaper, the tinkle of bells, software, sound
Pleasure, game, video, e-book.
Alternatively, described first server is file server, and described second server is application service
Device, described 3rd server is push server.
According to a further aspect in the invention, it is provided that a kind of method of offline file transmission, including:
The information bag that first terminal equipment side sends is received at second server side joint;
Described second server obtains the mark of described first terminal equipment;
The incidence relation list preset of second server side is searched and described first terminal equipment
Mark there is the mark of the second terminal unit of incidence relation;
Generate file acquisition message in second server side according to the mark of described second terminal unit to send out
Deliver in the 3rd server.
Alternatively, generate file acquisition message in the described mark according to described second terminal unit to send
Before step to the 3rd server, also include:
Validation of information instruction is generated in second server side;
In second server side, the instruction of described validation of information is sent to the 3rd server, by the 3rd clothes
Business device sends to first terminal equipment side;
The confirmation that first terminal equipment returns is received at second server side joint.
Alternatively, the instruction of described validation of information includes the mark of the second terminal unit, described confirmation
Including the first confirmation and the second confirmation, described first confirmation is to select according to user
Second terminal unit corresponding to the fixed mark confirming described second terminal unit be file reception side and
The information generated;Described second confirmation is not confirm described second terminal according to what user selected
The second terminal unit that the mark of equipment is corresponding is the information that file reception side generates;
Described method also includes:
If described confirmation is the first confirmation, then perform described in second server side foundation institute
The mark generation file acquisition message stating the second terminal unit sends the step to the 3rd server;
If described confirmation is the second confirmation, then reacquire second in second server side eventually
The mark of end equipment.
According to a further aspect in the invention, it is provided that a kind of method of offline file transmission, including:
The file acquisition message that second server sends, described file acquisition is received at the 3rd server side joint
Message includes the mark of the second terminal unit;
Detect that in the 3rd server side the second terminal of the mark correspondence of described second terminal unit sets
For time online, described file acquisition message is sent to described second terminal equipment side.
Alternatively, the second terminal unit that the mark of described second terminal unit of described detection is corresponding is online
Step include:
The mark of all terminal units accessed is obtained in the 3rd server side;
Judge in the 3rd server side described all accesses terminal unit mark in whether exist with
The identical terminal unit of mark of described second terminal unit;
The most then judge that the second terminal unit of the mark correspondence of described second terminal unit is online.
Alternatively, described method also includes:
The validation of information instruction that second server sends is received at the 3rd server side joint;At the 3rd server
The instruction of described validation of information is sent to first terminal equipment by side.
According to a further aspect in the invention, it is provided that a kind of method of offline file transmission, including:
The file acquisition message that the 3rd server sends is received in the second terminal equipment side;
From second server, correspondence is obtained according to described file acquisition message in the second terminal equipment side
Information bag, described information bag includes the download address of file destination resource;
In the second terminal equipment side according to the download address of described file destination resource from first server
The middle file destination resource downloading correspondence.
Alternatively, described information bag includes that file attribute information, described file attribute information include target
The type of file resource, the type of described file destination resource includes theme, wallpaper, the tinkle of bells, soft
Part, music, game, video, e-book, described method also includes:
If the type of described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, electronics
Book, then be stored in the second terminal equipment side by described file destination resource;
If the type of described file destination resource is software and/or game, then it is mounted directly described target
File resource.
Alternatively, disappear at the described file acquisition sent at the second terminal equipment side reception the 3rd server
Before the step of breath, also include:
Monitoring network state in the second terminal equipment side, described network state includes that current network can be used;
If current network can be used, then connect current network in the second terminal equipment side;
Described 3rd server is connected in the second terminal equipment side.
Alternatively, if described second terminal unit is mobile device, described at the second terminal equipment side prison
The step of auditory network state includes:
Service is received in described second terminal equipment side registered network state change
ConnctionChangeReceiver;
The change of described network state is used to receive service in the second terminal equipment side
ConnctionChangeReceiver receives the broadcast that system service SystemService sends
CONNECTIVITY_CHANGE;
If the method that described broadcast CONNECTIVITY_CHANGE calls
The Boolean that wifiNetInfo.isConnected () returns is true, then judge that current network can be used;
If the method that described broadcast CONNECTIVITY_CHANGE calls
The Boolean that wifiNetInfo.isConnected () returns is true, then judge that current network is unavailable.
Alternatively, if described second terminal unit is calculating equipment, described at the second terminal equipment side prison
The step of auditory network state includes:
The network state that network interface API inquiry is current is called in the second terminal equipment side.
According to a further aspect in the invention, it is provided that a kind of terminal unit for offline file transmission,
Including:
File destination resource sending module, is suitable to be not detected by the second terminal at first terminal equipment
During the access of equipment, file destination resource is sent extremely by suspension window at first terminal equipment side
In first server;
Download address receiver module, is suitable to receive described first server at first terminal equipment side and returns
The download address of the described file destination resource returned, the download address of described file destination resource is institute
State first server to generate according to described file destination resource;
Download address sending module, is suitable at first terminal equipment side according to described file destination resource
Download address build information bag sending to second server.
Alternatively, described terminal unit also includes:
Detection module, be suitable to described at first terminal equipment side by suspension window by file destination
Before resource sends to first server, the assigned operation that detection user initiates for suspension window,
Described assigned operation includes that file destination resource is drawn the operation of suspension window by user, and/or,
Button selected by the file that user clicks on suspension window, at the file path that first terminal equipment ejects
Selection window selects the operation in the path of file destination resource;
Reminder message sending module, is suitable to, when described assigned operation being detected, send reminder message
Ask the user whether to need off-line to send file destination resource;
Described file destination resource sending module is further adapted for:
After receiving the off-line confirmation instruction that user sends, by suspension window by described target literary composition
Part resource sends to first server, and described off-line confirms the instruction confirmation off-line for user's instruction
Send the instruction of described file destination resource.
Alternatively, described file destination resource sending module is further adapted for:
First terminal equipment side according to described user for suspension window assigned operation generate file
Send request;
At first terminal equipment side, described file is sent request to send to first server;
The file response message that described first server returns is received at first terminal equipment side;
Described file destination resource is sent according to described file response message at first terminal equipment side
To first server.
Alternatively, described file destination resource sending module is further adapted for:
Enter by described file destination resource according to described file response message at first terminal equipment side
Row encryption;
File destination resource after described encryption is sent to first server.
Alternatively, described file destination resource is the file resource choosing that first terminal side sends according to user
The file resource that fixed instruction obtains;The selected instruction of described file resource is that user is at first terminal equipment
The download instruction to certain file resource selected in the file resource download list that side is shown, or,
Described file resource is selected instruction and is selected in the file resource that first terminal equipment side stores for user
The selected instruction to certain file resource.
Alternatively, described download address sending module is further adapted for:
The file attribute information of described file destination resource is obtained at first terminal equipment side;
The download address of described file destination resource and described file is built at first terminal equipment side
The information bag of attribute information;
At first terminal equipment side by described packets to second server.
Alternatively, described terminal unit also includes:
Validation of information instruction sending module, is suitable to receive the 3rd server at first terminal equipment side and sends
Validation of information instruction;
Display module, is suitable to, at first terminal equipment side, the instruction of described validation of information is showed user;
Confirmation receiver module, is suitable to receive the confirmation that user selects, and by described confirmation letter
Breath sends to second server.
Alternatively, the instruction of described validation of information includes the mark of the second terminal unit, described confirmation
Including the first confirmation and the second confirmation, described first confirmation is to select according to user
Second terminal unit corresponding to the fixed mark confirming described second terminal unit be file reception side and
The information generated;Described second confirmation is not confirm described second terminal according to what user selected
The second terminal unit that the mark of equipment is corresponding is the information that file reception side generates.
Alternatively, described terminal unit also includes:
File transmission list generation module, is suitable to generate file transmission list at first terminal equipment side,
Described file transmission list is the file destination resource group being carried out off-line transmission by described suspension window
The list being made into.
Alternatively, described file transmission list has file for each file destination resource and send shape
State information, described file send status information include the state that is successfully transmitted, send state, etc.
State to be sent and transmission status of fail.
Alternatively, the file attribute information of described file destination resource also includes the big of file destination resource
Little, the type of file destination resource, the version number of file destination resource, the mark of file destination resource
Know.
Alternatively, the type of described file destination resource includes theme, wallpaper, the tinkle of bells, software, sound
Pleasure, game, video, e-book.
Alternatively, described first server is file server, and described second server is application service
Device, described 3rd server is push server.
According to a further aspect in the invention, it is provided that a kind of server for offline file transmission, bag
Include:
Information bag receiver module, is suitable to receive, at second server side joint, the letter that first terminal equipment side sends
Breath bag;
Device identification acquisition module, is suitable to described second server and obtains the mark of described first terminal equipment
Know;
Module is searched in device identification, is suitable in the incidence relation list preset of second server side
Search the mark that the mark with described first terminal equipment exists the second terminal unit of incidence relation;
First file acquisition message transmission module, is suitable in second server side according to described second terminal
The mark of equipment generates file acquisition message and sends to the 3rd server.
Alternatively, described server also includes:
Validation of information directive generation module, is suitable in the described mark according to described second terminal unit raw
Before becoming file acquisition message to send to the 3rd server, generate information in second server side true
Recognize instruction;
Validation of information instruction sending module, is suitable to the instruction of described validation of information be sent out in second server side
Deliver in the 3rd server, the 3rd server send to first terminal equipment side;
Confirm message reception module, be suitable to receive first terminal equipment at second server side joint and return really
Recognize information.
Alternatively, the instruction of described validation of information includes the mark of the second terminal unit, described confirmation
Including the first confirmation and the second confirmation, described first confirmation is to select according to user
Second terminal unit corresponding to the fixed mark confirming described second terminal unit be file reception side and
The information generated;Described second confirmation is not confirm described second terminal according to what user selected
The second terminal unit that the mark of equipment is corresponding is the information that file reception side generates;
Described server also includes:
Calling module, is suitable to, when described confirmation is the first confirmation, call the first file and obtain
Take message transmission module;
Identifier acquisition module, is suitable to when described confirmation is the second confirmation, at second service
Device side reacquires the mark of the second terminal unit.
According to a further aspect in the invention, it is provided that a kind of server for offline file transmission, bag
Include:
First file acquisition message reception module, is suitable to receive second server at the 3rd server side joint and sends out
The file acquisition message sent, described file acquisition message includes the mark of the second terminal unit;
Second file acquisition message transmission module, is suitable to detect described second in the 3rd server side eventually
When second terminal unit of the mark correspondence of end equipment is online, described file acquisition message is sent extremely
Described second terminal equipment side.
Alternatively, described second file acquisition message transmission module is further adapted for:
The mark of all terminal units accessed is obtained in the 3rd server side;
Judge in the 3rd server side described all accesses terminal unit mark in whether exist with
The identical terminal unit of mark of described second terminal unit;
The most then judge that the second terminal unit of the mark correspondence of described second terminal unit is online.
Alternatively, described server also includes:
Validation of information command reception module, is suitable to receive what second server sent at the 3rd server side joint
Validation of information instructs;
Validation of information instruction sending module, is suitable to the instruction of described validation of information be sent out in the 3rd server side
Deliver in first terminal equipment.
According to a further aspect in the invention, it is provided that a kind of terminal unit for offline file transmission,
Including:
Second file acquisition message reception module, is suitable to receive the 3rd server in the second terminal equipment side
The file acquisition message sent;
Information bag acquisition module, is suitable in the second terminal equipment side according to described file acquisition message from
Obtaining the information bag of correspondence in two servers, described information bag includes the download ground of file destination resource
Location;
File destination resource downloading module, is suitable to provide according to described file destination in the second terminal equipment side
The download address in source downloads the file destination resource of correspondence from first server.
Alternatively, described information bag includes that file attribute information, described file attribute information include target
The type of file resource, the type of described file destination resource includes theme, wallpaper, the tinkle of bells, soft
Part, music, game, video, e-book, described terminal unit also includes:
If the type of described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, electronics
Book, then be stored in the second terminal equipment side by described file destination resource;
If the type of described file destination resource is software and/or game, then it is mounted directly described target
File resource.
Alternatively, described terminal unit also includes:
Monitor module, be suitable at the described file receiving the 3rd server transmission in the second terminal equipment side
Before obtaining message, monitoring network state in the second terminal equipment side, described network state includes working as
Front network can be used;
First link block, can use if being suitable to current network, then connect current in the second terminal equipment side
Network;
Second link block, is suitable to connect described 3rd server in the second terminal equipment side.
Alternatively, if described second terminal unit is mobile device, described monitoring module is further adapted for:
Service is received in described second terminal equipment side registered network state change
ConnctionChangeReceiver;
The change of described network state is used to receive service in the second terminal equipment side
ConnctionChangeReceiver receives the broadcast that system service SystemService sends
CONNECTIVITY_CHANGE;
If the method that described broadcast CONNECTIVITY_CHANGE calls
The Boolean that wifiNetInfo.isConnected () returns is true, then judge that current network can be used;
If the method that described broadcast CONNECTIVITY_CHANGE calls
The Boolean that wifiNetInfo.isConnected () returns is true, then judge that current network is unavailable.
Alternatively, if described second terminal unit is calculating equipment, described at the second terminal equipment side prison
The step of auditory network state includes:
The network state that network interface API inquiry is current is called in the second terminal equipment side.
According to a further aspect in the invention, it is provided that the system of a kind of offline file transmission, including:
First terminal equipment, file server, application server, push server, the second terminal unit,
Wherein,
Described first terminal equipment, is suitable to when first terminal equipment is not detected by the second terminal unit
Access time, by suspension window, file destination resource to be sent is sent to file server,
And receive the download address of described file destination resource that described file server returns, and, will
The download address of described file destination resource builds packets in application server;
Described file server, is suitable to receive described file destination resource, according to described file destination
Resource generates the download address of corresponding file destination resource and sends to first terminal equipment;
Described application server, is suitable to receive described information bag, according to carry in described information bag
The mark of first terminal equipment is searched and described first terminal equipment in default incidence relation list
Mark there is the mark of the second terminal unit of incidence relation, and, according to described second terminal
The mark of equipment generates file acquisition message and sends to push server;
Described push server, be suitable to the mark described second terminal unit being detected corresponding the
When two terminal units are online, described file acquisition message is sent to described second terminal equipment side;
Described second terminal unit, is suitable to obtain from application server according to described file acquisition message
Take the information bag of correspondence, and, according to the download ground of the file destination resource that described information bag carries
Location downloads the file destination resource of correspondence from file server.
Alternatively, described first terminal equipment is further adapted for:
Ask for the assigned operation generation file transmission of suspension window according to user;
Described file is sent request send to file server;
Receive the file response message that described file server returns;
According to described file response message, described file destination resource is sent to file server.
Alternatively, the file attribute information of described file destination resource also includes file destination resource
Size, the type of file destination resource, the version number of file destination resource, file destination resource
Mark.
Alternatively, the type of described file destination resource include theme, wallpaper, the tinkle of bells, software,
Music, game, video, e-book.
Alternatively, described second terminal unit is further adapted for:
Type in described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, electronics
During book, described file destination resource is stored in the second terminal equipment side;
When type in described file destination resource is software and/or game, it is mounted directly described target
File resource.
Compared with background technology, there is advantages that
In the present invention, first terminal equipment and the second terminal unit are in the transmission carrying out file resource
Time, line states can not simultaneously be in, i.e. first file destination is provided during first terminal equipment on-line
Source is uploaded to background server, and now the second terminal unit is not necessarily required to online, when the second terminal
In background server, download described file destination resource again during equipment on-line, thus decrease file
The restriction of resource transmission, improves Consumer's Experience.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the present invention's
Technological means, and can being practiced according to the content of description, and in order to allow, the present invention's is above-mentioned
Can become apparent with other objects, features and advantages, below being embodied as especially exemplified by the present invention
Mode.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing shows
The exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure and not
Should be limited by embodiments set forth here.On the contrary, it is provided that these embodiments are able to more thoroughly
Understand the disclosure, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
With reference to Fig. 1, it is shown that the step stream of the embodiment of the method one of a kind of offline file transmission of the present invention
Cheng Tu, the embodiment of the present invention illustrates from first terminal equipment side, wherein, described first terminal equipment
For the sender of file destination resource, the embodiment of the present invention may include steps of:
Step 101, when first terminal equipment is not detected by the access of the second terminal unit,
File destination resource is sent to first server by one terminal equipment side by suspension window;
Wherein, described file destination resource is the file resource choosing that first terminal side sends according to user
The file resource that fixed instruction obtains;The selected instruction of described file resource is that user is at first terminal equipment
The download instruction to certain file resource selected in the file resource download list that side is shown, or,
Described file resource is selected instruction and is selected in the file resource that first terminal equipment side stores for user
The selected instruction to certain file resource.
In one preferred embodiment of the invention, before described 101 steps, it is also possible to including:
The assigned operation that detection user initiates for suspension window, described assigned operation includes that user is by target
File resource is drawn the operation of suspension window, and/or, user clicks on the file choosing on suspension window
Set button, selects file destination resource in the file path selection window that first terminal equipment ejects
The operation in path;
When described assigned operation being detected, send reminder message and ask the user whether to need off-line to send out
Send file destination resource;
Described step 101 is specifically as follows:
After receiving the off-line confirmation instruction that user sends, by suspension window by described target literary composition
Part resource sends to first server, and described off-line confirms the instruction confirmation off-line for user's instruction
Send the instruction of described file destination resource.
In one preferred embodiment of the invention, described step 101 can include following sub-step:
Sub-step S11, raw for the assigned operation of suspension window according to user at first terminal equipment side
File is become to send request;
Sub-step S12, sends request at first terminal equipment side by described file and sends to first service
In device;
Sub-step S13, receives, at first terminal equipment side, the file response that described first server returns
Message;
Sub-step S14, at first terminal equipment side according to described file response message by described target literary composition
Part resource sends to first server.
In one preferred embodiment of the invention, described sub-step S14 can include further as
Lower sub-step:
Sub-step S141, at first terminal equipment side according to described file response message to by described mesh
Mark file resource is encrypted;
Sub-step S142, sends the file destination resource after described encryption to first server.
Step 102, receives, at first terminal equipment side, the described target literary composition that described first server returns
The download address of part resource, the download address of described file destination resource is that described first server depends on
Generate according to described file destination resource;
Step 103, builds according to the download address of described file destination resource at first terminal equipment side
Information bag also sends to second server.
In one preferred embodiment of the invention, described step 103 can include following sub-step:
The file attribute information of described file destination resource is obtained at first terminal equipment side;
The download address of described file destination resource and described file is built at first terminal equipment side
The information bag of attribute information;
At first terminal equipment side by described packets to second server.
Wherein, the file attribute information of described file destination resource can also include file destination resource
Size, the type of file destination resource, the version number of file destination resource, file destination resource
Mark.
As a kind of preferred exemplary of the embodiment of the present invention, the type of described file destination resource includes
Theme, wallpaper, the tinkle of bells, software, music, game, video, e-book.
In one preferred embodiment of the invention, described method can also include:
The validation of information instruction that the 3rd server sends is received at first terminal equipment side;
At first terminal equipment side, the instruction of described validation of information is showed user;
Receive the confirmation that user selects, and described confirmation is sent to second server.
In one preferred embodiment of the invention, the instruction of described validation of information includes the second terminal unit
Mark, described confirmation includes the first confirmation and the second confirmation, described first
Confirmation be the mark confirming described second terminal unit selected according to user corresponding second eventually
End equipment is the information that file reception side generates;Described second confirmation is to select according to user
The second terminal unit corresponding to the mark not confirming described second terminal unit be file reception side and
The information generated.
In one preferred embodiment of the invention, described method can also include:
Generating file transmission list at first terminal equipment side, described file transmission list is by described
Suspension window carries out the list that the file destination resource of off-line transmission is organized into.
In one preferred embodiment of the invention, for each target in described file transmission list
File resource has file and sends status information, and described file sends status information and includes being successfully transmitted
State, send state, etc. state to be sent and send status of fail.
It should be noted that described first server is file server, described second server is for answering
With server, described 3rd server is push server.
With reference to Fig. 2, it is shown that the step stream of the embodiment of the method two of a kind of offline file transmission of the present invention
Cheng Tu, the embodiment of the present invention illustrates from second server side, and wherein, described second server is for answering
With server, the embodiment of the present invention may include steps of:
Step 201, receives, at second server side joint, the information bag that first terminal equipment side sends;
Step 202, described second server obtains the mark of described first terminal equipment;
Step 203, searches and described first in the incidence relation list preset of second server side
There is the mark of the second terminal unit of incidence relation in the mark of terminal unit;
Step 204, generates file in second server side according to the mark of described second terminal unit and obtains
Cancel breath to send to the 3rd server.
In one preferred embodiment of the invention, before step 203, also include:
Validation of information instruction is generated in second server side;
In second server side, the instruction of described validation of information is sent to the 3rd server, by the 3rd clothes
Business device sends to first terminal equipment side;
The confirmation that first terminal equipment returns is received at second server side joint.
In one preferred embodiment of the invention, the instruction of described validation of information includes the second terminal unit
Mark, described confirmation includes the first confirmation and the second confirmation, described first
Confirmation be the mark confirming described second terminal unit selected according to user corresponding second eventually
End equipment is the information that file reception side generates;Described second confirmation is to select according to user
The second terminal unit corresponding to the mark not confirming described second terminal unit be file reception side and
The information generated;
Described method also includes:
If described confirmation is the first confirmation, then perform described in second server side foundation institute
The mark generation file acquisition message stating the second terminal unit sends the step to the 3rd server;
If described confirmation is the second confirmation, then reacquire second in second server side eventually
The mark of end equipment.
Wherein, described first server is file server, and described second server is application server,
Described 3rd server is push server.
With reference to Fig. 3, it is shown that the step stream of the embodiment of the method three of a kind of offline file transmission of the present invention
Cheng Tu, the embodiment of the present invention illustrates from the 3rd server side, and wherein, described 3rd server is for pushing away
Server, the embodiment of the present invention is sent to may include steps of:
Step 301, receives the file acquisition message that second server sends, institute at the 3rd server side joint
State file acquisition message and include the mark of the second terminal unit;
Step 302, detect in the 3rd server side that the mark of described second terminal unit is corresponding the
When two terminal units are online, described file acquisition message is sent to described second terminal equipment side.
In one preferred embodiment of the invention, described step 302 can include following sub-step:
Sub-step S31, obtains the mark of all terminal units accessed in the 3rd server side;
Sub-step S32, judges in the 3rd server side in the mark of terminal unit of described all accesses
Whether there is the terminal unit identical with the mark of described second terminal unit;
Sub-step S33, judges in the 3rd server side in the mark of terminal unit of described all accesses
When there is the terminal unit identical with the mark of described second terminal unit, it is determined that described second terminal
The second terminal unit that the mark of equipment is corresponding is online.
In one preferred embodiment of the invention, described method also includes:
The validation of information instruction that second server sends is received at the 3rd server side joint;
In the 3rd server side, the instruction of described validation of information is sent to first terminal equipment.
It should be noted that described first server is file server, described second server is for answering
With server, described 3rd server is push server.
With reference to Fig. 4, it is shown that the step stream of the embodiment of the method four of a kind of offline file transmission of the present invention
Cheng Tu, the embodiment of the present invention illustrates from the second terminal equipment side, wherein, described second terminal unit
For the recipient of file destination resource, the embodiment of the present invention may include steps of:
Step 401, receives, in the second terminal equipment side, the file acquisition message that the 3rd server sends;
Step 402, the second terminal equipment side according to described file acquisition message from second server
Obtaining corresponding information bag, described information bag includes the download address of file destination resource;
Step 403, in the second terminal equipment side according to the download address of described file destination resource from
One server is downloaded the file destination resource of correspondence.
In one preferred embodiment of the invention, described information bag includes file attribute information, described
File attribute information can include the type of file destination resource, the type of described file destination resource
Including theme, wallpaper, the tinkle of bells, software, music, game, video, e-book, described side
Method can also include:
If the type of described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, electronics
Book, then be stored in the second terminal equipment side by described file destination resource;
If the type of described file destination resource is software and/or game, then it is mounted directly described target
File resource.
In one preferred embodiment of the invention, before described step 401, it is also possible to including:
Monitoring network state in the second terminal equipment side, described network state includes that current network may be used to
And current network is unavailable;
If current network can be used, then connect current network in the second terminal equipment side;
Described 3rd server is connected in the second terminal equipment side.
In one preferred embodiment of the invention, if described second terminal unit is mobile device, institute
State the step in the second terminal equipment side monitoring network state to include:
Service is received in described second terminal equipment side registered network state change
ConnctionChangeReceiver;
The change of described network state is used to receive service in the second terminal equipment side
ConnctionChangeReceiver receives the broadcast that system service SystemService sends
CONNECTIVITY_CHANGE;
If the method that described broadcast CONNECTIVITY_CHANGE calls
The Boolean that wifiNetInfo.isConnected () returns is true, then judge that current network can be used;
If the method that described broadcast CONNECTIVITY_CHANGE calls
The Boolean that wifiNetInfo.isConnected () returns is true, then judge that current network is unavailable.
In another preferred embodiment of the invention, if described second terminal unit is calculating equipment,
The described step in the second terminal equipment side monitoring network state includes:
The network state that network interface API inquiry is current is called in the second terminal equipment side.
It should be noted that described first server is file server, described second server is for answering
With server, the 3rd server is push server.
With reference to Fig. 5, it is shown that the step stream of the embodiment of the method five of a kind of offline file transmission of the present invention
Cheng Tu, in embodiments of the present invention, described first terminal equipment is the sender of file destination resource, institute
State the recipient that the second terminal unit is file destination resource, described first terminal equipment and/or described second
Terminal unit can be mobile device or the equipment of calculating, and wherein, described calculating equipment is that one can be according to
Program is run, and automatic, the intelligent electronic device of high speed processing mass data, such as desktop computer, notebook
Computer etc..Described mobile device is a kind of calculating equipment that can use in movement, such as mobile phone, this
Bright embodiment to the type of first terminal equipment and the second terminal unit without being any limitation as.
The embodiment of the present invention may include steps of:
Step 501, the selected instruction of file resource sent according to user at first terminal equipment side obtains
Corresponding file destination resource;
In one preferred embodiment of the invention, described file resource selectes instruction can be user
First terminal equipment side show file resource download list in select under certain file resource
Carry instruction.Specifically, at first terminal equipment side the first client-side program is installed, described
Showing in one client-side program and have file resource that magnanimity is free to download for user, user can be from
The file resource of this first client-side program select the file resource oneself liked be downloaded.?
In reality, when user by mouse or taps the file resource operated in the first client-side program displaying
Download list in after the selected file resource oneself liked, the file resource i.e. generating correspondence is downloaded
Instruction, after the first client-side program receives described file resource download instruction, from server under
Carry corresponding file resource and store first terminal equipment side as file destination resource.
In practice, described first client-side program opens a suspension window for mesh in computer-side
The transmission of mark file resource, when user opens the first client-side program at first terminal equipment side,
First client-side program can in suspension window or first terminal equipment predeterminated position eject bullet
Window reminds user can send off-line files resource to the second terminal unit, i.e. first terminal equipment
Being not connected to the second terminal unit also can fat file resource (as shown in Figure 6) at any time.
Specifically, the effect of suspension window is, when the window of mastery routine is when minimizing, also
User can be pointed out to see the running status of this program, it is possible to by clicking on these wickets, soon
Open the window of mastery routine promptly.Suspension window contain one can for user access preset into
Mouthful, after showing suspension window on screen, user can be by this default entrance access preset content
Or execution predetermined registration operation.Such as, user can start delivery fat file by clicking on default entrance
Operation.
In another preferred embodiment of the invention, described file resource selectes instruction can be to use
The selected finger to certain file resource that family selects in the file resource that first terminal equipment side stores
Order.Specifically, user can also select certain in the existing file resource of first terminal side storage
File resource is as file destination resource.
As a kind of preferred exemplary of the present embodiment, described file destination resource has file attribute letter
Breath, described file attribute information can include the size of file destination resource, file destination resource
Type, the version number of file destination resource, the mark etc. of file destination resource.Wherein, described
The type of file destination resource can include theme, wallpaper, the tinkle of bells, software, music, game,
The polytype such as video, e-book.
Step 502, when first terminal equipment is not detected by the access of the second terminal unit,
Described file destination resource is sent to file server by one terminal equipment side by suspension window;
Specifically, after first terminal equipment side gets file destination resource, first terminal sets
Described first client-side program of standby employing has detected whether that the second terminal unit accesses, and is not having second
In the case of terminal unit accesses, the first client-side program detection user is either with or without for suspension window
Initiate assigned operation.Wherein, the described assigned operation initiated for suspension window can have multiple side
Formula, with reference to the suspension window assigned operation schematic diagram shown in Fig. 7, the one as the present embodiment is excellent
Select example, for the assigned operation that suspension window is initiated, described user can include that user is by target literary composition
Part resource is drawn the operation of suspension window, i.e. user from the file resource that first terminal side stores
After selecting file destination resource, directly file destination resource is dragged to the operation in suspension window.Make
For the another kind of preferred exemplary of the present embodiment, the assigned operation that described user initiates for suspension window
Can include that button selected by the file that user clicks on suspension window, eject at first terminal equipment
File path selection window selects the operation in the path of file destination resource, such as, described file
Selected button can click on literary composition for the functional keys of " the selecting file to be sent " shown in Fig. 7
After part selectes button, first terminal equipment side can eject file path selection window, and user can be
This document Path selection window selects the path of file destination resource.
First client-side program detects when user initiates assigned operation for suspension window, the first visitor
Family end program can send reminder message and ask the user whether to need off-line to send file destination money
Source, specifically, described reminder message can be by suspension window or at first terminal equipment
Predeterminated position eject pop-up and show user, confirm instruction receiving the off-line that user selectes
After, off-line sends described file destination resource.Wherein, described off-line confirms that instruction indicates for user
Confirm off-line send described file destination resource instruction.Described off-line confirms that instruction can embody
The finger clicking on similar functions buttons such as " confirm send off-line files " in pop-up for user and trigger
Order.
On the other hand, if user's instruction need not off-line sends file destination resource, bullet can be clicked on
Similar functions buttons such as " not sending off-line files " in window triggers the finger not sending off-line files
Order, now, described file destination resource such as is in described suspension window at the state to be sent.
In actual applications, user triggers off-line confirmation instruction or triggers the finger not sending off-line files
The mode of order can have multiple, except above-mentioned click " confirms to send off-line files ", " do not sends
Off-line files " etc. similar functions button, whether send and trigger realizing the off-line of file destination resource
Outward, if first terminal equipment is provided with gravity sensing device, it is also possible to by shake first terminal
Equipment triggers gravity sensing device, so realize the off-line to described file destination resource send with
No triggering.In the embodiment of the present invention, described shake can be understood as triggering gravity sensing dress
Any operation put, up and down or mobile device as described in double swerve etc., the embodiment of the present invention is to tool
The operation of body does not limits.
In one preferred embodiment of the invention, when receiving the off-line confirmation instruction that user sends
After, step 502 can be further, at first terminal equipment side according to described user for suspension
The assigned operation of window generates file and sends request;At first terminal equipment side, described file is sent
Request sends to file server;Receive described file server at first terminal equipment side to return
File response message;At first terminal equipment side according to described file response message by described target
File resource sends to file server.Specifically, described file transmission request can include
The size of file destination resource, after file server receives the transmission request of described file, according to institute
The size stating file destination resource judges that whether the memory size of self is more than described file destination resource
Size, if being more than, then file server return file response message, to notify that first terminal sets
For uploading file destination resource;Otherwise, file server does not return file response message.If first
Terminal unit receives file response message in preset time period, then will respond according to described file
Described file destination resource is sent to file server by message;If first terminal equipment is being preset
It is not received by file response message in time period, described file destination resource is not sent to literary composition
In part server, now, described file destination resource is in etc. to be sent in described suspension window
State.
In practice, in order to ensure the safety of file destination resource, the first client-side program is being uploaded
Before described file destination resource, can first according to the first preset rules to described file destination resource
Being uploaded in file server after being encrypted, described first preset rules can be described first again
The encrypting and decrypting rule that client-side program and background server are made an appointment.
Step 503, file server generates the download address of described file destination resource and returns first
Terminal equipment side;
Specifically, described file server is the server sharing file, is used for storing target literary composition
Part resource.In actual applications, described file server only preserves the target in preset time period
File resource, the file destination resource of storage can be carried out periodically or irregular by file server
Ground detection, if detecting, the time of the storage of file destination resource exceedes preset time period, then delete
Except described file destination resource.Wherein, described preset time period can be for each file destination
The access time of resource is the time period arranged the time started (such as one month, to exceed the access time one
The file destination resource of individual month will be deleted);Or, described Preset Time can also be file service
Device is that the unified event horizon set of file resource of all storages is (before 10 days July in 2013
The file destination resource of storage will be deleted).
After file server receives file destination resource, obtain this file destination resource and take at file
The storage address of business device side, generates described target literary composition by described storage address according to the second preset rules
The download address of part resource, to the download address of described file destination resource according to the first preset rules
First terminal equipment side is returned after encryption.
In implementing, user can select one or more file destination resource, and passes through institute
Stating suspension window to be transmitted, now first terminal equipment can use described first client-side program
Generating file transmission list, described file transmission list is sent out for carrying out off-line by described suspension window
The list that the file destination resource sent is organized into, described file transmission list is shown by first terminal side
Predeterminated position or other predeterminated positions of first terminal equipment interface at suspension window.Described file
Transmission list has the file for each file destination resource and sends status information, described file
Send status information can include the state that is successfully transmitted, send state, etc. state to be sent with
And transmission status of fail.Wherein, described file sends status information and refers to that file sends to file clothes
Business device status information, described in be successfully transmitted state for receive file service in preset time period
The state of the corresponding download address that device returns;Described transmission status of fail is in preset time period
It is not received by the state of the corresponding download address that file server returns.
In actual applications, file status list can also be shown and check guide information, described in look into
See that guide information receives in the second terminal unit and checks that off-line files provides for instructing the user how
Source.
Step 504, first terminal equipment side build described file destination resource download address and
The information bag of described file attribute information also sends to application server;
Being applied to the embodiment of the present invention, first terminal equipment side uses the first client-side program to receive
After the download address of the file destination resource that file server returns, under this file destination resource
Set address is decrypted according to the first preset rules, then builds the download of described file destination resource
The information bag of address and described file attribute information, and use first to preset rule described information bag
Send to application server after being then encrypted.
Have under file destination resource it should be noted that described information bag is actually a kind of record
Set address and the data structure of described file attribute information.
Step 505, application server obtains the mark of described first terminal equipment, and in default pass
Connection relation list searches the mark with described first terminal equipment and there is the second terminal of incidence relation
The mark of equipment;
Specifically, in described default incidence relation list, storage has the first end occurring to connect
Incidence relation between mark and the mark of the second terminal unit of end equipment.Described incidence relation is raw
The process become can be that (with first terminal equipment for calculating equipment, the second terminal unit sets for mobile
Standby situation citing):
First the equipment that calculates receives the long notification message connected of foundation that mobile device sends, in notification message
Mark including mobile device;If the equipment of calculating allows to set up long connection, then the equipment that calculates is by mobile device
Mark and calculate equipment mark send to application server, by application server in incidence relation list
Middle record mobile device and the incidence relation of the equipment of calculating.
Specifically, set up the incidence relation between mobile device and calculating equipment, mainly comprise the steps:
1, mobile device is authenticated on the application server;
1.1 start the second client-side program (i.e. mobile phone assistant) in mobile device;
1.2 on the mobile apparatus after input handset number, and mobile device is by the IMEI of this equipment and cell-phone number
It is sent to application server in the lump;
1.3 application servers send the note with authentication code to mobile device;
1.4 input this authentication code on the mobile apparatus, are then issued to application server;
According to this authentication code, mobile device number and IMEI, 1.5 application servers determine that this moves and set
Standby this mobile device that is designated is had.
2. at the equipment of calculating
2.1 start mobile phone assistant on the computing device;
After the cell-phone numbers of 2.2 input mobile devices, the equipment that calculates is by the cell-phone number of mobile device and MID mono-
And it is sent to application server;
2.3 application servers are inquired about in data base according to the calculate MID of equipment, the cell-phone number that receive
Whether the mobile device corresponding to this cell-phone number is authenticated at this application server, if carried out
Certification, then set up the MID of calculating equipment, cell-phone number, this mobile device in incidence relation list
The corresponding relation of IMEI, such as, be stored in them in incidence relation list as a record;Otherwise
Send invitation to mobile device, invite flow process as follows:
2.3.1 application server sends one to mobile device and invites note, and inviting in note is an activation
Chained address;
2.3.2, when mobile device receives this note, a binding can be ejected and allow dialog box, Yong Hudian
Hitting after determining, the information in this activation being linked is sent to application server, and application server receives
After binding acknowledgement request, by this mobile device and corresponding calculating apparatus bound.
Incidence relation list structure is
The database table of message is:
Specifically, the mark of mobile device is mobile1, and the mark calculating equipment is desktop1, when
The when that mobile device being wanted and calculating equipment is associated, this association request is sent to calculate by long connection
Equipment, after the equipment that calculates is agreed to confirm, this association mobile1<-->desktop1 sets up.When
After application server receives information bag, application server is also recorded for desktop1<-->information bag
The mapping relations of file1.It, after receiving information bag, is decrypted by application server, and obtains
The mark of described first terminal equipment, searches and institute subsequently in described default incidence relation list
State the mark of the second terminal unit of the mark association of first terminal equipment.In actual applications, institute
State the mark of first terminal equipment described in default incidence relation list and described second terminal unit
Mark between incidence relation there is following situation:
(1) mark of first terminal equipment is the most corresponding with the mark of second terminal unit.At this
In the case of Zhong, application server selects the mark of described second terminal unit as described file destination
The recipient of resource.
(2) mark of first terminal equipment is corresponding with the mark of multiple stage the second terminal unit.This
In the case of, owing in practice, the incidence relation list preset can also store described first eventually
The mark of end equipment and the mark up-to-date time being connected of each second terminal unit, now,
Application server can be according to the mark of the mark of described first terminal equipment with each second terminal unit
The mark of the second terminal unit that the up-to-date selection of time occurring to connect occurs to connect recently (
Rear second terminal unit being connected with first terminal equipment) as file destination resource
Recipient.
Application server gets the mark of the second terminal unit as file destination resource recipient
After, generate validation of information instruction, and by push server (push server) by described information
Confirming that instruction sends to first terminal equipment side, the instruction of described validation of information includes the second terminal unit
Mark, described validation of information instruction be used for informing that first terminal equipment is confirmed whether file destination
Resource sends to the mark of the second terminal unit of described selection.Off-line as shown in Figure 8 is reminded
Schematic diagram, first terminal equipment, after receiving the instruction of described validation of information, can use the first visitor
The mark of the second equipment that described file destination resource will be sent by family end program is with forms such as pop-ups
Show user, if user selects " sending immediately ", illustrate that user confirms described file destination resource
Send the mark to described second terminal unit, then first terminal equipment side generates the first confirmation
Send to application server side.If additionally, user be not intended to described file destination resource is sent out
Delivering in the mark of described second terminal unit, user can select printed words such as " zapping equipment "
Button, then first terminal equipment side generates the second confirmation and sends in application server, now,
User can access first terminal equipment by needing the second terminal unit receiving file destination resource
In, to receive file destination resource;If user does not access any second terminal unit, then apply
Server searches whether there is other and described first terminal in described default incidence relation list again
The mark of the second terminal unit of the mark association of equipment, if existing, then obtains secondary generation recently even
The mark of the second terminal unit connect generates validation of information instruction and sends to first terminal equipment side, with
This analogizes;Otherwise, application server generates connection reminder message and sends to first terminal equipment side,
Need to accept the second terminal unit of file destination resource notifying that user connects.
Step 506, generates file in application server side according to the mark of described second terminal unit and obtains
Cancel breath to send to push server;
After application server receives the first confirmation that first terminal equipment side sends, according to institute
The mark stating the second terminal unit generates file acquisition message, and described file acquisition message is sent
To push server (push server).Wherein, described file acquisition message pushes away for notice
Send server online at the second terminal unit that the mark described second terminal unit being detected is corresponding
Time, file acquisition message is sent to described second terminal unit, to notify described second terminal
Equipment obtains described information bag in application server.
Step 507, push server side detects second that the mark of described second terminal unit is corresponding
When terminal unit is online, described file acquisition message is sent to described second terminal equipment side;
In practice, push server for being pushed to the second terminal of correspondence by file acquisition message
In equipment.Specifically, push server, after receiving described file acquisition message, obtains institute
State the mark of the second terminal unit carried in file acquisition message, and at all ends accessed
The mark of end equipment (terminal unit one will certainly be dynamically connected online push server) is searched and institute
Stating the terminal unit that the mark of the second terminal unit is identical, if searching successfully, then illustrating described second
Terminal unit is online, otherwise, then illustrates that described second terminal unit is the most online.
Push server is when detecting that described second terminal unit is online, then directly by described file
Obtain message to send to described second terminal unit;If detecting, described second terminal unit does not exists
Line (i.e. off-line), then wait until that described file acquisition message is sent out by described second terminal unit the most again
Deliver in described second terminal unit.
In implementing, the whether online foundation of the second terminal unit supervises audible network state
Depending on.Specifically, in one preferred embodiment of the invention, if described second terminal unit
For being provided with the mobile device of Android system, it monitors network state as follows:
Network state is a SystemService, can pass through
Context.getSystemService (String name) obtains, when network state changes when,
SystemServic can send android.net.conn.CONNECTIVITY_CHANGE broadcast,
Now mobile device side has only to register a service (service), just can receive network on backstage
The broadcast of state change, this service can be ConnctionChangeReceiver;Process connects
The broadcast received, it is achieved method is as follows, adds network state in onReceive and judges:
ConnectivityManager connectMgr=(ConnectivityManager)
context.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo mobNetInfo=
connectMgr.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);
NetworkInfo wifiNetInfo=
connectMgr.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
Wherein, ConnectivityManager is for obtaining current system information on services;
It is MOBILE and two kinds of networking modes of WIFI that getNetworkInfo obtains type respectively
Information;
By judging that mobNetInfo.isConnected () and wifiNetInfo.isConnected () returns
The Boolean Boolean returned determines current networking state, if the Boolean returned is true (or 1),
Then explanation current network can be used, and mobile device can be attached;If return Boolean be false (or
0), then illustrating that current network is unavailable, mobile device is not available for connecting.
In another preferred embodiment of the invention, if described second terminal unit is calculating equipment,
It monitors network state as follows: if calculating equipment needs connec-tionless network, permissible
Call network interface API and obtain current network state, if current network state can be used, then calculate
Equipment connects current network, otherwise, is not connected to current network.
Step 508, the second terminal equipment side according to described file acquisition message from application server
Obtain corresponding information bag;
Specifically, the second terminal equipment side is provided with the second client-side program, described second terminal
Equipment uses described second client-side program to receive the file acquisition message that push server sends,
When receiving described file acquisition message, can by described file acquisition message display second eventually
In the default display location of end, and notify that user has the file of off-line with the form such as prompt tone or pop-up
Resource, user i.e. promotes the second terminal unit to use described second after clicking on described file acquisition message
Client-side program obtains information bag in application server.
Step 509, in the second terminal equipment side according to the download address of described file destination resource from literary composition
Part server is downloaded the file destination resource of correspondence.
After second client-side program gets information bag, decipher described information bag, it is thus achieved that described information
The download address of the file resource in bag, and take to file according to the download address of described file resource
Business device obtains the file destination resource of correspondence.
Further, after the second client-side program deciphers described information bag, it is also possible to obtain described target
The type of file resource, and proceed as follows according to the type of described file destination resource: if institute
The type stating file destination resource is the theme, the class such as wallpaper, the tinkle of bells, music, video, e-book
Type, then be stored in the second terminal equipment side by described file destination resource;If described file destination provides
The type in source is the Setup Type such as software and/or game, then be mounted directly described file destination resource.
Second client-side program, can second eventually after having stored file resource or having installed file resource
With the form of notification message or pop-up, the default display location of end equipment interface informs that user is mounted
File resource or the fileinfo of file resource stored, wherein, described fileinfo can be with
The form of list represents.
In embodiments of the present invention, first terminal equipment and the second terminal unit are carrying out file resource
Transmission time, line states can not simultaneously be in, i.e. first by target during first terminal equipment on-line
File resource is uploaded to background server, and now the second terminal unit is not necessarily required to online, when
In background server, download described file destination resource again when two terminal units are online, thus reduce
The restriction of file resource transmission, improves Consumer's Experience.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of action group
Closing, but those skilled in the art should know, the present invention is not by described sequence of movement
Limiting, because according to the present invention, some step can use other orders or carry out simultaneously.Its
Secondary, those skilled in the art also should know, embodiment described in this description belongs to preferably
Embodiment, necessary to involved action and the module not necessarily present invention.
With reference to Fig. 9, it is shown that a kind of terminal unit embodiment for offline file transmission of the present invention
The structured flowchart of one, described terminal unit can include such as lower module:
File destination resource sending module 601, is suitable to be not detected by second eventually at first terminal equipment
During the access of end equipment, file destination resource is sent by suspension window at first terminal equipment side
To first server;
Download address receiver module 602, is suitable to receive described first server at first terminal equipment side
The download address of the described file destination resource returned, the download address of described file destination resource is
Described first server generates according to described file destination resource;
Download address sending module 603, is suitable to provide according to described file destination at first terminal equipment side
The download address in source builds information bag and sends to second server.
In one preferred embodiment of the invention, also include:
Detection module, be suitable to described at first terminal equipment side by suspension window by file destination
Before resource sends to first server, the assigned operation that detection user initiates for suspension window,
Described assigned operation includes that file destination resource is drawn the operation of suspension window by user, and/or,
Button selected by the file that user clicks on suspension window, at the file path that first terminal equipment ejects
Selection window selects the operation in the path of file destination resource;
Reminder message sending module, is suitable to, when described assigned operation being detected, send reminder message
Ask the user whether to need off-line to send file destination resource;
Described file destination resource sending module is further adapted for:
After receiving the off-line confirmation instruction that user sends, by suspension window by described target literary composition
Part resource sends to first server, and described off-line confirms the instruction confirmation off-line for user's instruction
Send the instruction of described file destination resource.
In one preferred embodiment of the invention, described file destination resource sending module 601 is also
Be suitable to:
First terminal equipment side according to described user for suspension window assigned operation generate file
Send request;
At first terminal equipment side, described file is sent request to send to first server;
The file response message that described first server returns is received at first terminal equipment side;
Described file destination resource is sent according to described file response message at first terminal equipment side
To first server.
In one preferred embodiment of the invention, described file destination resource sending module is further adapted for:
Enter by described file destination resource according to described file response message at first terminal equipment side
Row encryption;
File destination resource after described encryption is sent to first server.
In one preferred embodiment of the invention, described file destination resource is first terminal side foundation
The file resource that user sends selectes the file resource that instruction obtains;The selected instruction of described file resource
For what user selected in the file resource download list that first terminal equipment side is shown, certain file is provided
The download instruction in source, or, the selected instruction of described file resource is that user is at first terminal equipment side
The selected instruction to certain file resource selected in the file resource of storage.
In one preferred embodiment of the invention, described download address sending module is further adapted for:
The file attribute information of described file destination resource is obtained at first terminal equipment side;
The download address of described file destination resource and described file is built at first terminal equipment side
The information bag of attribute information;
At first terminal equipment side by described packets to second server.
In one preferred embodiment of the invention, also include:
Validation of information instruction sending module, is suitable to receive the 3rd server at first terminal equipment side and sends
Validation of information instruction;
Display module, is suitable to, at first terminal equipment side, the instruction of described validation of information is showed user;
Confirmation receiver module, is suitable to receive the confirmation that user selects, and by described confirmation letter
Breath sends to second server.
In one preferred embodiment of the invention, the instruction of described validation of information includes the second terminal unit
Mark, described confirmation includes the first confirmation and the second confirmation, described first
Confirmation be the mark confirming described second terminal unit selected according to user corresponding second eventually
End equipment is the information that file reception side generates;Described second confirmation is to select according to user
The second terminal unit corresponding to the mark not confirming described second terminal unit be file reception side and
The information generated.
In one preferred embodiment of the invention, also include:
File transmission list generation module, is suitable to generate file transmission list at first terminal equipment side,
Described file transmission list is the file destination resource group being carried out off-line transmission by described suspension window
The list being made into.
In one preferred embodiment of the invention, for each target literary composition in described file transmission list
Part resource has file and sends status information, and described file sends status information and includes being successfully transmitted shape
State, send state, etc. state to be sent and send status of fail.
In one preferred embodiment of the invention, the file attribute information of described file destination resource is also
Including the size of file destination resource, the type of file destination resource, the version of file destination resource
Number, the mark of file destination resource.
In one preferred embodiment of the invention, the type of described file destination resource include theme,
Wallpaper, the tinkle of bells, software, music, game, video, e-book.
In one preferred embodiment of the invention, described first server is file server, described
Second server is application server, and described 3rd server is push server.
With reference to Figure 10, it is shown that a kind of server example one for offline file transmission of the present invention
Structured flowchart, described server can include such as lower module:
Information bag receiver module 701, is suitable to receive first terminal equipment side at second server side joint and sends
Information bag;
Device identification acquisition module 702, is suitable to described second server and obtains described first terminal equipment
Mark;
Module 703 is searched in device identification, is suitable to the incidence relation list preset in second server side
There is the mark of the second terminal unit of incidence relation in the mark of middle lookup and described first terminal equipment
Know;
First file acquisition message transmission module 704, is suitable in second server side according to described second
The mark of terminal unit generates file acquisition message and sends to the 3rd server.
In one preferred embodiment of the invention, also include:
Validation of information directive generation module, is suitable in the described mark according to described second terminal unit raw
Before becoming file acquisition message to send to the 3rd server, generate information in second server side true
Recognize instruction;
Validation of information instruction sending module, is suitable to the instruction of described validation of information be sent out in second server side
Deliver in the 3rd server, the 3rd server send to first terminal equipment side;
Confirm message reception module, be suitable to receive first terminal equipment at second server side joint and return really
Recognize information.
In one preferred embodiment of the invention, the instruction of described validation of information includes the second terminal unit
Mark, described confirmation includes the first confirmation and the second confirmation, described first
Confirmation be the mark confirming described second terminal unit selected according to user corresponding second eventually
End equipment is the information that file reception side generates;Described second confirmation is to select according to user
The second terminal unit corresponding to the mark not confirming described second terminal unit be file reception side and
The information generated;
Described server also includes:
Calling module, is suitable to, when described confirmation is the first confirmation, call the first file and obtain
Take message transmission module;
Identifier acquisition module, is suitable to when described confirmation is the second confirmation, at second service
Device side reacquires the mark of the second terminal unit.
In one preferred embodiment of the invention, described second server is application server, described
3rd server is push server.
With reference to Figure 11, it is shown that a kind of server example two for offline file transmission of the present invention
Structured flowchart, described server can include such as lower module:
First file acquisition message reception module 801, is suitable to receive second service at the 3rd server side joint
The file acquisition message that device sends, described file acquisition message includes the mark of the second terminal unit;
Second file acquisition message transmission module 802, is suitable to detect described in the 3rd server side
When second terminal unit of the mark correspondence of two terminal units is online, described file acquisition message is sent out
Deliver to described second terminal equipment side.
In one preferred embodiment of the invention, described second file acquisition message transmission module is the suitableeest
In:
The mark of all terminal units accessed is obtained in the 3rd server side;
Judge in the 3rd server side described all accesses terminal unit mark in whether exist with
The identical terminal unit of mark of described second terminal unit;
The most then judge that the second terminal unit of the mark correspondence of described second terminal unit is online.
In one preferred embodiment of the invention, also include:
Validation of information command reception module, is suitable to receive what second server sent at the 3rd server side joint
Validation of information instructs;
Validation of information instruction sending module, is suitable to the instruction of described validation of information be sent out in the 3rd server side
Deliver in first terminal equipment.
In one preferred embodiment of the invention, described second server is application server, described
3rd server is push server.
With reference to Figure 12, it is shown that a kind of terminal unit embodiment for offline file transmission of the present invention
The structured flowchart of two, described terminal unit can include such as lower module:
Second file acquisition message reception module 901, is suitable to receive the 3rd clothes in the second terminal equipment side
The file acquisition message that business device sends;
Information bag acquisition module 902, is suitable in the second terminal equipment side according to described file acquisition message
Obtaining the information bag of correspondence from second server, described information bag includes under file destination resource
Set address;
File destination resource downloading module 903, is suitable in the second terminal equipment side according to described target literary composition
The download address of part resource downloads the file destination resource of correspondence from first server.
In one preferred embodiment of the invention, described information bag includes file attribute information, described
File attribute information includes that the type of file destination resource, the type of described file destination resource include
Theme, wallpaper, the tinkle of bells, software, music, game, video, e-book, described terminal sets
For also including:
If the type of described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, electronics
Book, then be stored in the second terminal equipment side by described file destination resource;
If the type of described file destination resource is software and/or game, then it is mounted directly described target
File resource.
In one preferred embodiment of the invention, described terminal unit also includes:
Monitor module, be suitable at the described file receiving the 3rd server transmission in the second terminal equipment side
Before obtaining message, monitoring network state in the second terminal equipment side, described network state includes working as
Front network can be used;
First link block, can use if being suitable to current network, then connect current in the second terminal equipment side
Network;
Second link block, is suitable to connect described 3rd server in the second terminal equipment side.
In one preferred embodiment of the invention, if described second terminal unit is mobile device, institute
State monitoring module to be further adapted for:
Service is received in described second terminal equipment side registered network state change
ConnctionChangeReceiver;
The change of described network state is used to receive service in the second terminal equipment side
ConnctionChangeReceiver receives the broadcast that system service SystemService sends
CONNECTIVITY_CHANGE;
If the method that described broadcast CONNECTIVITY_CHANGE calls
The Boolean that wifiNetInfo.isConnected () returns is true, then judge that current network can be used;
If the method that described broadcast CONNECTIVITY_CHANGE calls
The Boolean that wifiNetInfo.isConnected () returns is true, then judge that current network is unavailable.
In another preferred embodiment of the invention, if described second terminal unit is mobile device,
Described monitoring module is further adapted for:
The network state that network interface API inquiry is current is called in the second terminal equipment side.
In one preferred embodiment of the invention, described first server is file server, described
Second server is application server, and the 3rd server is push server.
With reference to Figure 13, it is shown that the structural frames of the system embodiment of a kind of offline file transmission of the present invention
Figure, described system can include first terminal equipment 10, file server 20, application server
30, push server the 40, second terminal unit 50, wherein,
Described first terminal equipment 10, is suitable to set when first terminal equipment is not detected by the second terminal
During standby access, by suspension window, file destination resource to be sent is sent to file server
In, and receive the download address of described file destination resource that described file server returns, and,
By in the download address structure packets of described file destination resource to application server;
Described file server 20, is suitable to receive described file destination resource, according to described target literary composition
Part resource generates the download address of corresponding file destination resource and sends to first terminal equipment;
Described application server 30, is suitable to receive described information bag, carries according in described information bag
The mark of first terminal equipment search in default incidence relation list and set with described first terminal
There is the mark of the second terminal unit of incidence relation in standby mark, and, according to described second eventually
The mark of end equipment generates file acquisition message and sends to push server;
Described push server 40, is suitable in the mark correspondence described second terminal unit being detected
When second terminal unit is online, described file acquisition message is sent to described second terminal equipment side;
Described second terminal unit 50, is suitable to according to described file acquisition message from application server
Obtain corresponding information bag, and, according to the download of the file destination resource that described information bag carries
Address downloads the file destination resource of correspondence from file server.
In one preferred embodiment of the invention, described first terminal equipment 10 is further adapted for:
Ask for the assigned operation generation file transmission of suspension window according to user;
Described file is sent request send to file server;
Receive the file response message that described file server returns;
According to described file response message, described file destination resource is sent to file server.
In one preferred embodiment of the invention, the file attribute information of described file destination resource
Also include the size of file destination resource, the type of file destination resource, the version of file destination resource
This number, the mark of file destination resource.
In one preferred embodiment of the invention, the type of described file destination resource include theme,
Wallpaper, the tinkle of bells, software, music, game, video, e-book.
In one preferred embodiment of the invention, described second terminal unit 50 is further adapted for:
Type in described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, electronics
During book, described file destination resource is stored in the second terminal equipment side;
When type in described file destination resource is software and/or game, it is mounted directly described target
File resource.
Provided herein algorithm and display not with any particular computing device, virtual system or miscellaneous equipment
Intrinsic relevant.Various general-purpose systems can also be used together with based on teaching in this.According to retouching above
State, construct the structure required by this kind of system and be apparent from.Additionally, the present invention is also not for any
Certain programmed language.It is understood that, it is possible to use various programming languages realize invention described herein
Content, and the description above done language-specific is the preferred forms in order to disclose the present invention.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that this
Inventive embodiment can be put into practice in the case of not having these details.In some instances, not
It is shown specifically known method, structure and technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand in each inventive aspect one
Or multiple, above in the description of the exemplary embodiment of the present invention, each feature of the present invention is sometimes
It is grouped together in single embodiment, figure or descriptions thereof.But, should be by the disclosure
Method be construed to reflect an intention that i.e. the present invention for required protection require ratio in each claim
The middle more feature of feature be expressly recited.More precisely, as the following claims reflect
As, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows
Claims of detailed description of the invention are thus expressly incorporated in this detailed description of the invention, the most each right
Requirement itself is all as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment certainly
Change adaptively and they are arranged in one or more equipment different from this embodiment.Permissible
Module in embodiment or unit or assembly are combined into a module or unit or assembly, and in addition may be used
To put them into multiple submodule or subelement or sub-component.Except such feature and/or process or
Outside at least some in unit excludes each other, can use any combination that (this specification is included companion
With claim, summary and accompanying drawing) disclosed in all features and so disclosed any method or
All processes of person's equipment or unit are combined.Unless expressly stated otherwise, this specification (includes companion
With claim, summary and accompanying drawing) disclosed in each feature can by provide identical, equivalent or phase
Replace like purpose alternative features.
Although additionally, it will be appreciated by those of skill in the art that embodiments more described herein include it
Some feature included in its embodiment rather than further feature, but the group of the feature of different embodiment
Close and mean to be within the scope of the present invention and formed different embodiments.Such as, in following power
In profit claim, one of arbitrarily can mode making in any combination of embodiment required for protection
With.
The all parts embodiment of the present invention can realize with hardware, or to process at one or more
The software module run on device realizes, or realizes with combinations thereof.Those skilled in the art should
Understand, microprocessor or digital signal processor (DSP) can be used in practice to realize basis
Some or all parts in the offline file transmission equipment of the embodiment of the present invention some or all
Function.The present invention be also implemented as perform method as described herein part or all
(such as, first terminal device program and first terminal device program produce for equipment or terminal unit program
Product).The program of such present invention of realization can be stored in first terminal device-readable medium, or
Can be to have the form of one or more signal.Such signal can be downloaded from internet website
Arrive, or provide on carrier signal, or provide with any other form.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment,
And those skilled in the art can design replacement without departing from the scope of the appended claims
Embodiment.In the claims, any reference marks that should not will be located between bracket is configured to right
The restriction required.Word " comprises " and does not excludes the presence of the element or step not arranged in the claims.Position
Word "a" or "an" before element does not excludes the presence of multiple such element.The present invention can
With by means of including the hardware of some different elements and by means of properly programmed first terminal equipment
Realize.In the unit claim listing some terminal units, some in these terminal units
Individual can be specifically to be embodied by same hardware branch.Word first, second and third making
With not indicating that any order.Can be title by these word explanations.
Embodiment of the invention discloses that A1, a kind of method of offline file transmission, including:
When first terminal equipment is not detected by the access of the second terminal unit, set at first terminal
File destination resource is sent to first server by standby side by suspension window;
The described file destination resource of described first server return is received at first terminal equipment side
Download address, the download address of described file destination resource is that described first server is according to described mesh
Mark file resource generates;
Information bag is built also according to the download address of described file destination resource at first terminal equipment side
Send to second server.
A2, method as described in A1, described at first terminal equipment side by suspension window by mesh
Before mark file resource sends the step to first server, also include:
The assigned operation that detection user initiates for suspension window, described assigned operation includes that user will
File destination resource is drawn the operation of suspension window, and/or, user clicks on the literary composition on suspension window
Part selectes button, selects file destination in the file path selection window that first terminal equipment ejects
The operation in the path of resource;
When described assigned operation being detected, send reminder message and ask the user whether to need off-line to send out
Send file destination resource;
Described first terminal equipment side by suspension window by file destination resource send to first clothes
Step in business device includes:
After receiving the off-line confirmation instruction that user sends, by suspension window by described target literary composition
Part resource sends to first server, and described off-line confirms the instruction confirmation off-line for user's instruction
Send the instruction of described file destination resource.
A3, method as described in A2, described at first terminal equipment side by suspension window by target
The step that file resource sends to first server includes:
First terminal equipment side according to described user for suspension window assigned operation generate file
Send request;
At first terminal equipment side, described file is sent request to send to first server;
The file response message that described first server returns is received at first terminal equipment side;
Described file destination resource is sent according to described file response message at first terminal equipment side
To first server.
A4, method as described in A3, described disappear according to the response of described file at first terminal equipment side
Cease the step by described file destination resource sends to first server to include:
Enter by described file destination resource according to described file response message at first terminal equipment side
Row encryption;
File destination resource after described encryption is sent to first server.
A5, method as described in A1, described file destination resource is that first terminal side is sent out according to user
The file resource gone out selectes the file resource that instruction obtains;The selected instruction of described file resource is user
First terminal equipment side show file resource download list in select under certain file resource
Carry instruction, or, described file resource selectes what instruction stored at first terminal equipment side for user
The selected instruction to certain file resource selected in file resource.
A6, method as described in A1, described provide according to described file destination at first terminal equipment side
The download address in source builds information bag and the step that sends to second server includes:
The file attribute information of described file destination resource is obtained at first terminal equipment side;
The download address of described file destination resource and described file is built at first terminal equipment side
The information bag of attribute information;
At first terminal equipment side by described packets to second server.
A7, method as described in A1, also include:
The validation of information instruction that the 3rd server sends is received at first terminal equipment side;
At first terminal equipment side, the instruction of described validation of information is showed user;
Receive the confirmation that user selects, and described confirmation is sent to second server.
A8, method as described in A7, the instruction of described validation of information includes the mark of the second terminal unit,
Described confirmation includes the first confirmation and the second confirmation, described first confirmation
Second terminal unit corresponding for the mark confirming described second terminal unit selected according to user is
File reception side and the information that generates;Described second confirmation is not confirm according to what user selected
The second terminal unit that the mark of described second terminal unit is corresponding is the letter that file reception side generates
Breath.
A9, method as described in A1, also include:
Generating file transmission list at first terminal equipment side, described file transmission list is by described
Suspension window carries out the list that the file destination resource of off-line transmission is organized into.
A10, method as described in A9, provide for each file destination in described file transmission list
Source have file send status information, described file send status information include the state that is successfully transmitted,
Sending state, etc. state to be sent and send status of fail.
A11, method as described in A1, the file attribute information of described file destination resource also includes
The size of file destination resource, the type of file destination resource, the version number of file destination resource,
The mark of file destination resource.
A12, method as described in A11, the type of described file destination resource include theme, wallpaper,
The tinkle of bells, software, music, game, video, e-book.
A13, method as described in any one of A4 to 12, described first server is file server,
Described second server is application server, and described 3rd server is push server.
Embodiments of the invention also disclose B14, a kind of method of offline file transmission, including:
The information bag that first terminal equipment side sends is received at second server side joint;
Described second server obtains the mark of described first terminal equipment;
The incidence relation list preset of second server side is searched and described first terminal equipment
Mark there is the mark of the second terminal unit of incidence relation;
Generate file acquisition message in second server side according to the mark of described second terminal unit to send out
Deliver in the 3rd server.
B15, method as described in B14, generate in the described mark according to described second terminal unit
Before file acquisition message sends the step to the 3rd server, also include:
Validation of information instruction is generated in second server side;
In second server side, the instruction of described validation of information is sent to the 3rd server, by the 3rd clothes
Business device sends to first terminal equipment side;
The confirmation that first terminal equipment returns is received at second server side joint.
B16, method as described in B15, the instruction of described validation of information includes the mark of the second terminal unit
Knowing, described confirmation includes the first confirmation and the second confirmation, and described first confirms
Information is that the second corresponding terminal that identifies confirming described second terminal unit selected according to user sets
The standby information generated for file reception side;Described second confirmation is to select not according to user
Confirm that the second terminal unit corresponding to the mark of described second terminal unit is that file reception side generates
Information;
Described method also includes:
If described confirmation is the first confirmation, then perform described in second server side foundation institute
The mark generation file acquisition message stating the second terminal unit sends the step to the 3rd server;
If described confirmation is the second confirmation, then reacquire second in second server side eventually
The mark of end equipment.
Embodiments of the invention also disclose C17, a kind of method of offline file transmission, including:
The file acquisition message that second server sends, described file acquisition is received at the 3rd server side joint
Message includes the mark of the second terminal unit;
Detect that in the 3rd server side the second terminal of the mark correspondence of described second terminal unit sets
For time online, described file acquisition message is sent to described second terminal equipment side.
C18, method as described in C17, the mark of described second terminal unit of described detection is corresponding
The online step of second terminal unit includes:
The mark of all terminal units accessed is obtained in the 3rd server side;
Judge in the 3rd server side described all accesses terminal unit mark in whether exist with
The identical terminal unit of mark of described second terminal unit;
The most then judge that the second terminal unit of the mark correspondence of described second terminal unit is online.
C19, method as described in C17, also include:
The validation of information instruction that second server sends is received at the 3rd server side joint;At the 3rd server
The instruction of described validation of information is sent to first terminal equipment by side.
Embodiments of the invention also disclose D20, a kind of method of offline file transmission, including:
The file acquisition message that the 3rd server sends is received in the second terminal equipment side;
From second server, correspondence is obtained according to described file acquisition message in the second terminal equipment side
Information bag, described information bag includes the download address of file destination resource;
In the second terminal equipment side according to the download address of described file destination resource from first server
The middle file destination resource downloading correspondence.
D21, method as described in D20, described information bag includes file attribute information, described file
Attribute information include the type of file destination resource, the type of described file destination resource include theme,
Wallpaper, the tinkle of bells, software, music, game, video, e-book, described method also includes:
If the type of described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, electronics
Book, then be stored in the second terminal equipment side by described file destination resource;
If the type of described file destination resource is software and/or game, then it is mounted directly described target
File resource.
D22, method as described in D20, receive the 3rd server described in the second terminal equipment side
Before the step of the file acquisition message sent, also include:
Monitoring network state in the second terminal equipment side, described network state includes that current network can be used;
If current network can be used, then connect current network in the second terminal equipment side;
Described 3rd server is connected in the second terminal equipment side.
D23, method as described in D22, if described second terminal unit is mobile device, described
Second terminal equipment side is monitored the step of network state and is included:
Service is received in described second terminal equipment side registered network state change
ConnctionChangeReceiver;
The change of described network state is used to receive service in the second terminal equipment side
ConnctionChangeReceiver receives the broadcast that system service SystemService sends
CONNECTIVITY_CHANGE;
If the method that described broadcast CONNECTIVITY_CHANGE calls
The Boolean that wifiNetInfo.isConnected () returns is true, then judge that current network can be used;
If the method that described broadcast CONNECTIVITY_CHANGE calls
The Boolean that wifiNetInfo.isConnected () returns is true, then judge that current network is unavailable.
D24, method as described in D22, if described second terminal unit is calculating equipment, described
Second terminal equipment side is monitored the step of network state and is included:
The network state that network interface API inquiry is current is called in the second terminal equipment side.
Embodiments of the invention are also disclosed E25, a kind of terminal unit for offline file transmission, bag
Include:
File destination resource sending module, is suitable to be not detected by the second terminal at first terminal equipment
During the access of equipment, file destination resource is sent extremely by suspension window at first terminal equipment side
In first server;
Download address receiver module, is suitable to receive described first server at first terminal equipment side and returns
The download address of the described file destination resource returned, the download address of described file destination resource is institute
State first server to generate according to described file destination resource;
Download address sending module, is suitable at first terminal equipment side according to described file destination resource
Download address build information bag sending to second server.
E26, terminal unit as described in E25, also include:
Detection module, be suitable to described at first terminal equipment side by suspension window by file destination
Before resource sends to first server, the assigned operation that detection user initiates for suspension window,
Described assigned operation includes that file destination resource is drawn the operation of suspension window by user, and/or,
Button selected by the file that user clicks on suspension window, at the file path that first terminal equipment ejects
Selection window selects the operation in the path of file destination resource;
Reminder message sending module, is suitable to, when described assigned operation being detected, send reminder message
Ask the user whether to need off-line to send file destination resource;
Described file destination resource sending module is further adapted for:
After receiving the off-line confirmation instruction that user sends, by suspension window by described target literary composition
Part resource sends to first server, and described off-line confirms the instruction confirmation off-line for user's instruction
Send the instruction of described file destination resource.
E27, terminal unit as described in E26, described file destination resource sending module is further adapted for:
First terminal equipment side according to described user for suspension window assigned operation generate file
Send request;
At first terminal equipment side, described file is sent request to send to first server;
The file response message that described first server returns is received at first terminal equipment side;
Described file destination resource is sent according to described file response message at first terminal equipment side
To first server.
E28, terminal unit as described in E27, described file destination resource sending module is further adapted for:
Enter by described file destination resource according to described file response message at first terminal equipment side
Row encryption;
File destination resource after described encryption is sent to first server.
E29, terminal unit as described in E25, described file destination resource is first terminal side foundation
The file resource that user sends selectes the file resource that instruction obtains;The selected instruction of described file resource
For what user selected in the file resource download list that first terminal equipment side is shown, certain file is provided
The download instruction in source, or, the selected instruction of described file resource is that user is at first terminal equipment side
The selected instruction to certain file resource selected in the file resource of storage.
E30, terminal unit as described in E25, described download address sending module is further adapted for:
The file attribute information of described file destination resource is obtained at first terminal equipment side;
The download address of described file destination resource and described file is built at first terminal equipment side
The information bag of attribute information;
At first terminal equipment side by described packets to second server.
E31, terminal unit as described in E25, also include:
Validation of information instruction sending module, is suitable to receive the 3rd server at first terminal equipment side and sends
Validation of information instruction;
Display module, is suitable to, at first terminal equipment side, the instruction of described validation of information is showed user;
Confirmation receiver module, is suitable to receive the confirmation that user selects, and by described confirmation letter
Breath sends to second server.
E32, terminal unit as described in E31, the instruction of described validation of information includes the second terminal unit
Mark, described confirmation includes the first confirmation and the second confirmation, described first
Confirmation be the mark confirming described second terminal unit selected according to user corresponding second eventually
End equipment is the information that file reception side generates;Described second confirmation is to select according to user
The second terminal unit corresponding to the mark not confirming described second terminal unit be file reception side and
The information generated.
E33, terminal unit as described in E25, also include:
File transmission list generation module, is suitable to generate file transmission list at first terminal equipment side,
Described file transmission list is the file destination resource group being carried out off-line transmission by described suspension window
The list being made into.
E34, terminal unit as described in E33, for each target literary composition in described file transmission list
Part resource has file and sends status information, and described file sends status information and includes being successfully transmitted shape
State, send state, etc. state to be sent and send status of fail.
E35, terminal unit as described in E25, the file attribute information of described file destination resource is also
Including the size of file destination resource, the type of file destination resource, the version of file destination resource
Number, the mark of file destination resource.
E36, terminal unit as described in E35, the type of described file destination resource include theme,
Wallpaper, the tinkle of bells, software, music, game, video, e-book.
E37, terminal unit as described in any one of E28 to 36, described first server is file
Server, described second server is application server, and described 3rd server is push server.
Embodiments of the invention also disclose F38, a kind of server for offline file transmission, bag
Include:
Information bag receiver module, is suitable to receive, at second server side joint, the letter that first terminal equipment side sends
Breath bag;
Device identification acquisition module, is suitable to described second server and obtains the mark of described first terminal equipment
Know;
Module is searched in device identification, is suitable in the incidence relation list preset of second server side
Search the mark that the mark with described first terminal equipment exists the second terminal unit of incidence relation;
First file acquisition message transmission module, is suitable in second server side according to described second terminal
The mark of equipment generates file acquisition message and sends to the 3rd server.
F39, server as described in F38, also include:
Validation of information directive generation module, is suitable in the described mark according to described second terminal unit raw
Before becoming file acquisition message to send to the 3rd server, generate information in second server side true
Recognize instruction;
Validation of information instruction sending module, is suitable to the instruction of described validation of information be sent out in second server side
Deliver in the 3rd server, the 3rd server send to first terminal equipment side;
Confirm message reception module, be suitable to receive first terminal equipment at second server side joint and return really
Recognize information.
F40, server as described in F39, the instruction of described validation of information includes the second terminal unit
Mark, described confirmation includes the first confirmation and the second confirmation, described first true
Recognize the second terminal that information is the mark correspondence confirming described second terminal unit selected according to user
Equipment is the information that file reception side generates;Described second confirmation is to select according to user
Do not confirm that the second terminal unit corresponding to the mark of described second terminal unit is file reception Fang Ersheng
The information become;
Described server also includes:
Calling module, is suitable to, when described confirmation is the first confirmation, call the first file and obtain
Take message transmission module;
Identifier acquisition module, is suitable to when described confirmation is the second confirmation, at second service
Device side reacquires the mark of the second terminal unit.
Embodiments of the invention also disclose G41, a kind of server for offline file transmission, bag
Include:
First file acquisition message reception module, is suitable to receive second server at the 3rd server side joint and sends out
The file acquisition message sent, described file acquisition message includes the mark of the second terminal unit;
Second file acquisition message transmission module, is suitable to detect described second in the 3rd server side eventually
When second terminal unit of the mark correspondence of end equipment is online, described file acquisition message is sent extremely
Described second terminal equipment side.
G42, server as described in G41, described second file acquisition message transmission module is further adapted for:
The mark of all terminal units accessed is obtained in the 3rd server side;
Judge in the 3rd server side described all accesses terminal unit mark in whether exist with
The identical terminal unit of mark of described second terminal unit;
The most then judge that the second terminal unit of the mark correspondence of described second terminal unit is online.
G43, server as described in G41, also include:
Validation of information command reception module, is suitable to receive what second server sent at the 3rd server side joint
Validation of information instructs;
Validation of information instruction sending module, is suitable to the instruction of described validation of information be sent out in the 3rd server side
Deliver in first terminal equipment.
Embodiments of the invention also disclose H44, a kind of terminal unit for offline file transmission,
Including:
Second file acquisition message reception module, is suitable to receive the 3rd server in the second terminal equipment side
The file acquisition message sent;
Information bag acquisition module, is suitable in the second terminal equipment side according to described file acquisition message from
Obtaining the information bag of correspondence in two servers, described information bag includes the download ground of file destination resource
Location;
File destination resource downloading module, is suitable to provide according to described file destination in the second terminal equipment side
The download address in source downloads the file destination resource of correspondence from first server.
H45, terminal unit as described in H44, described information bag includes file attribute information, described
File attribute information includes that the type of file destination resource, the type of described file destination resource include
Theme, wallpaper, the tinkle of bells, software, music, game, video, e-book, described terminal sets
For also including:
If the type of described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, electronics
Book, then be stored in the second terminal equipment side by described file destination resource;
If the type of described file destination resource is software and/or game, then it is mounted directly described target
File resource.
H46, terminal unit as described in H44, also include:
Monitor module, be suitable at the described file receiving the 3rd server transmission in the second terminal equipment side
Before obtaining message, monitoring network state in the second terminal equipment side, described network state includes working as
Front network can be used;
First link block, can use if being suitable to current network, then connect current in the second terminal equipment side
Network;
Second link block, is suitable to connect described 3rd server in the second terminal equipment side.
H47, terminal unit as described in H46, described second terminal unit is mobile device, described
Monitoring module is further adapted for:
Service is received in described second terminal equipment side registered network state change
ConnctionChangeReceiver;
The change of described network state is used to receive service in the second terminal equipment side
ConnctionChangeReceiver receives the broadcast that system service SystemService sends
CONNECTIVITY_CHANGE;
If the method that described broadcast CONNECTIVITY_CHANGE calls
The Boolean that wifiNetInfo.isConnected () returns is true, then judge that current network can be used;
If the method that described broadcast CONNECTIVITY_CHANGE calls
The Boolean that wifiNetInfo.isConnected () returns is true, then judge that current network is unavailable.
H48, method as described in H46, if described second terminal unit is calculating equipment, described
Second terminal equipment side is monitored the step of network state and is included:
The network state that network interface API inquiry is current is called in the second terminal equipment side.
Embodiments of the invention also disclose I49, the system of a kind of offline file transmission, including: the
One terminal unit, file server, application server, push server, the second terminal unit,
Wherein,
Described first terminal equipment, is suitable to when first terminal equipment is not detected by the second terminal unit
Access time, by suspension window, file destination resource to be sent is sent to file server,
And receive the download address of described file destination resource that described file server returns, and, will
The download address of described file destination resource builds packets in application server;
Described file server, is suitable to receive described file destination resource, according to described file destination
Resource generates the download address of corresponding file destination resource and sends to first terminal equipment;
Described application server, is suitable to receive described information bag, according to carry in described information bag
The mark of first terminal equipment is searched and described first terminal equipment in default incidence relation list
Mark there is the mark of the second terminal unit of incidence relation, and, according to described second terminal
The mark of equipment generates file acquisition message and sends to push server;
Described push server, be suitable to the mark described second terminal unit being detected corresponding the
When two terminal units are online, described file acquisition message is sent to described second terminal equipment side;
Described second terminal unit, is suitable to obtain from application server according to described file acquisition message
Take the information bag of correspondence, and, according to the download ground of the file destination resource that described information bag carries
Location downloads the file destination resource of correspondence from file server.
I50, system as described in I49, described first terminal equipment is further adapted for:
Ask for the assigned operation generation file transmission of suspension window according to user;
Described file is sent request send to file server;
Receive the file response message that described file server returns;
According to described file response message, described file destination resource is sent to file server.
I51, system as described in I49, the file attribute information of described file destination resource also includes
The size of file destination resource, the type of file destination resource, the version number of file destination resource,
The mark of file destination resource.
I52, system as described in I51, the type of described file destination resource include theme, wallpaper,
The tinkle of bells, software, music, game, video, e-book.
I53, system as described in I52, described second terminal unit is further adapted for:
Type in described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, electronics
During book, described file destination resource is stored in the second terminal equipment side;
When type in described file destination resource is software and/or game, it is mounted directly described target
File resource.