Summary of the invention
In view of the above problems, the present invention has been proposed to provide a kind of method of a kind of off-line files transmission that overcomes the problems referred to above or address the above problem at least in part and the system of corresponding a kind of off-line files transmission, a kind of terminal equipment for off-line files transmission, a kind of server for off-line files transmission.
According to one aspect of the present invention, a kind of method of off-line files transmission is provided, comprising:
When first terminal equipment does not detect the access of the second terminal equipment, at first terminal equipment side, by suspension window, file destination resource is sent in first server;
At first terminal equipment side, receive the download address of the described file destination resource that described first server returns, the download address of described file destination resource is that described first server generates according to described file destination resource;
Download address at first terminal equipment side according to described file destination resource builds packets of information and is sent in second server.
Alternatively, described, before first terminal equipment side is sent to the step in first server by suspension window by file destination resource, also comprise:
Detect the assigned operation that user initiates for suspension window, described assigned operation comprises that user is drawn file destination resource the operation of suspension window, and/or, user clicks the selected button of file on suspension window, the operation in the path of select target file resource in the file path selection window ejecting at first terminal equipment;
Whether when described assigned operation being detected, sending reminder message inquiry user needs off-line to send file destination resource;
The described step by suspension window, file destination resource being sent in first server at first terminal equipment side comprises:
At the off-line that receives user's transmission, confirm, after instruction, by suspension window, described file destination resource to be sent in first server, the confirmation off-line that described off-line confirmation instruction is indicated for user sends the instruction of described file destination resource.
Alternatively, the described step by suspension window, file destination resource being sent in first server at first terminal equipment side comprises:
At first terminal equipment side, according to described user, for the assigned operation spanned file of suspension window, send request;
At first terminal equipment side, described file is sent request and is sent in first server;
At first terminal equipment side, receive the file response message that described first server is returned;
At first terminal equipment side, according to described file response message, described file destination resource is sent in first server.
Alternatively, the described step according to described file response message, described file destination resource being sent in first server at first terminal equipment side comprises:
First terminal equipment side according to described file response message to described file destination resource is encrypted;
File destination resource after described encryption is sent in first server.
Alternatively, described file destination resource is that the file resource that first terminal side is sent according to user is selected the file resource that instruction obtains; The download instruction to certain file resource that the selected instruction of described file resource is selected in the file resource download list of first terminal equipment side displaying for user, or, the selected instruction to certain file resource that the selected instruction of described file resource is selected in the file resource of first terminal equipment side storage for user.
Alternatively, the described download address structure packets of information in the described file destination resource of first terminal equipment side foundation the step being sent in second server comprise:
At first terminal equipment side, obtain the file attribute information of described file destination resource;
At first terminal equipment side, build the download address of described file destination resource and the packets of information of described file attribute information;
At first terminal equipment side, described packets of information is sent in second server.
Alternatively, described method also comprises:
At first terminal equipment side, receive the validation of information instruction that the 3rd server sends;
At first terminal equipment side, described validation of information instruction is showed to user;
Receive the confirmation that user selects, and described confirmation is sent in second server.
Alternatively, described validation of information instruction comprises the sign of the second terminal equipment, described confirmation comprises the first confirmation and the second confirmation, and the second terminal equipment of the sign correspondence that described the first confirmation is described the second terminal equipment of confirmation selected according to user is the information that file recipient generates; The second terminal equipment that described the second confirmation is the sign correspondence of not confirming described the second terminal equipment selected according to user is the information that file recipient generates.
Alternatively, described method also comprises:
At first terminal equipment side spanned file, send list, described file sends the list that list becomes for carry out the file destination resource organizations of off-line transmission by described suspension window.
Alternatively, described file sends to be had file for each file destination resource in list and sends state information, described file send state information comprise the state that successfully sends, send state, etc. state to be sent and send status of fail.
Alternatively, the file attribute information of described file destination resource also comprise the size of file destination resource, the version number of the type of file destination resource, file destination resource, the sign of file destination resource.
Alternatively, the type of described file destination resource comprises theme, wallpaper, the tinkle of bells, software, music, game, video, e-book.
Alternatively, described first server is file server, and described second server is application server, and described the 3rd server is push server.
According to a further aspect in the invention, provide a kind of method of off-line files transmission, having comprised:
At second server side joint, receive the packets of information that first terminal equipment side sends;
Described second server obtains the sign of described first terminal equipment;
In the default incidence relation list of second server side, search the sign that has the second terminal equipment of incidence relation with the sign of described first terminal equipment;
In second server side, according to the sign spanned file of described the second terminal equipment, obtaining message is sent in the 3rd server.
Alternatively, at the sign spanned file of described the second terminal equipment of described foundation, obtain before message is sent to the step in the 3rd server, also comprise:
At second server adnation, become validation of information instruction;
In second server side, described validation of information instruction is sent in the 3rd server, by the 3rd server, is sent to first terminal equipment side;
At second server side joint, receive the confirmation that first terminal equipment returns.
Alternatively, described validation of information instruction comprises the sign of the second terminal equipment, described confirmation comprises the first confirmation and the second confirmation, and the second terminal equipment of the sign correspondence that described the first confirmation is described the second terminal equipment of confirmation selected according to user is the information that file recipient generates; The second terminal equipment that described the second confirmation is the sign correspondence of not confirming described the second terminal equipment selected according to user is the information that file recipient generates;
Described method also comprises:
If described confirmation is the first confirmation, the described sign spanned file at described the second terminal equipment of second server side foundation of execution obtains message and is sent to the step in the 3rd server;
If described confirmation is the second confirmation, at second server, stress newly to obtain the sign of the second terminal equipment.
According to a further aspect in the invention, provide a kind of method of off-line files transmission, having comprised:
At the 3rd server side, receive the file acquisition message that second server sends, described file acquisition message comprises the sign of the second terminal equipment;
The second terminal equipment of sign correspondence that described the second terminal equipment detected at the 3rd server side when online, is sent to described the second terminal equipment side by described file acquisition message.
Alternatively, the online step of the second terminal equipment of the sign correspondence of described the second terminal equipment of described detection comprises:
At the 3rd server side, obtain the sign of all terminal equipments that accessed;
In judging the sign of terminal equipment of described all accesses, the 3rd server side whether there is the terminal equipment identical with the sign of described the second terminal equipment;
If so, the second terminal equipment of sign correspondence of judging described the second terminal equipment is online.
Alternatively, described method also comprises:
At the 3rd server side, receive the validation of information instruction that second server sends; At the 3rd server side, described validation of information instruction is sent in first terminal equipment.
According to a further aspect in the invention, provide a kind of method of off-line files transmission, having comprised:
In the second terminal equipment side, receive the file acquisition message that the 3rd server sends;
In the second terminal equipment side, according to described file acquisition message, obtain corresponding packets of information from second server, described packets of information comprises 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, download corresponding file destination resource.
Alternatively, described packets of information comprises file attribute information, described file attribute information comprises the type of file destination resource, and the type of described file destination resource comprises theme, wallpaper, the tinkle of bells, software, music, game, video, e-book, and described method also comprises:
If the type of described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book, described file destination resource is stored in to the second terminal equipment side;
If the type of described file destination resource is software and/or game, described file destination resource is directly installed.
Alternatively, before the step of the described file acquisition message sending at the second terminal equipment side reception the 3rd server, also comprise:
In the second terminal equipment side, monitor network state, described network state comprises that current network can use;
If current network can be used, in the second terminal equipment side, connect current network;
In the second terminal equipment side, connect described the 3rd server.
Alternatively, if described the second terminal equipment is mobile device, the described step in the second terminal equipment side monitoring network state comprises:
In described the second terminal equipment side registered network state variation, receive service ConnctionChangeReceiver;
In the second terminal equipment side, adopt described network state to change and receive the broadcast CONNECTIVITY_CHANGE that service ConnctionChangeReceiver receiving system service SystemService sends;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, judge that current network can use;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, judge that current network is unavailable.
Alternatively, if described the second terminal equipment is computing equipment, the described step in the second terminal equipment side monitoring network state comprises:
In the second terminal equipment side, call network interface API and inquire about current network state.
According to a further aspect in the invention, provide a kind of terminal equipment for off-line files transmission, having comprised:
File destination resource sending module, is suitable for, when first terminal equipment does not detect the access of the second terminal equipment, at first terminal equipment side, by suspension window, file destination resource being sent in first server;
Download address receiver module, is suitable for receiving at first terminal equipment side the download address of the described file destination resource that described first server returns, and the download address of described file destination resource is that described first server generates according to described file destination resource;
Download address sending module, is suitable for the download address according to described file destination resource at first terminal equipment side and builds packets of information and be sent in second server.
Alternatively, described terminal equipment also comprises:
Detection module, be suitable for described in first terminal equipment side is sent to first server by suspension window by file destination resource before, detect the assigned operation that user initiates for suspension window, described assigned operation comprises that user is drawn file destination resource the operation of suspension window, and/or, user clicks the selected button of file on suspension window, the operation in the path of select target file resource in the file path selection window ejecting at first terminal equipment;
Reminder message sending module, is suitable for when described assigned operation being detected, and whether send reminder message inquiry user needs off-line to send file destination resource;
Described file destination resource sending module is also suitable for:
At the off-line that receives user's transmission, confirm, after instruction, by suspension window, described file destination resource to be sent in first server, the confirmation off-line that described off-line confirmation instruction is indicated for user sends the instruction of described file destination resource.
Alternatively, described file destination resource sending module is also suitable for:
At first terminal equipment side, according to described user, for the assigned operation spanned file of suspension window, send request;
At first terminal equipment side, described file is sent request and is sent in first server;
At first terminal equipment side, receive the file response message that described first server is returned;
At first terminal equipment side, according to described file response message, described file destination resource is sent in first server.
Alternatively, described file destination resource sending module is also suitable for:
First terminal equipment side according to described file response message to described file destination resource is encrypted;
File destination resource after described encryption is sent in first server.
Alternatively, described file destination resource is that the file resource that first terminal side is sent according to user is selected the file resource that instruction obtains; The download instruction to certain file resource that the selected instruction of described file resource is selected in the file resource download list of first terminal equipment side displaying for user, or, the selected instruction to certain file resource that the selected instruction of described file resource is selected in the file resource of first terminal equipment side storage for user.
Alternatively, described download address sending module is also suitable for:
At first terminal equipment side, obtain the file attribute information of described file destination resource;
At first terminal equipment side, build the download address of described file destination resource and the packets of information of described file attribute information;
At first terminal equipment side, described packets of information is sent in second server.
Alternatively, described terminal equipment also comprises:
Validation of information instruction sending module, is suitable for receiving at first terminal equipment side the validation of information instruction that the 3rd server sends;
Display module, is suitable for, at first terminal equipment side, described validation of information instruction is showed to user;
Confirmation receiver module, is suitable for receiving the confirmation that user selects, and described confirmation is sent in second server.
Alternatively, described validation of information instruction comprises the sign of the second terminal equipment, described confirmation comprises the first confirmation and the second confirmation, and the second terminal equipment of the sign correspondence that described the first confirmation is described the second terminal equipment of confirmation selected according to user is the information that file recipient generates; The second terminal equipment that described the second confirmation is the sign correspondence of not confirming described the second terminal equipment selected according to user is the information that file recipient generates.
Alternatively, described terminal equipment also comprises:
File sends list generation module, is suitable for sending list at first terminal equipment side spanned file, and described file sends the list that list becomes for carry out the file destination resource organizations of off-line transmission by described suspension window.
Alternatively, described file sends to be had file for each file destination resource in list and sends state information, described file send state information comprise the state that successfully sends, send state, etc. state to be sent and send status of fail.
Alternatively, the file attribute information of described file destination resource also comprise the size of file destination resource, the version number of the type of file destination resource, file destination resource, the sign of file destination resource.
Alternatively, the type of described file destination resource comprises theme, wallpaper, the tinkle of bells, software, music, game, video, e-book.
Alternatively, described first server is file server, and described second server is application server, and described the 3rd server is push server.
According to a further aspect in the invention, provide a kind of server for off-line files transmission, having comprised:
Packets of information receiver module, is suitable for receiving at second server side joint the packets of information that first terminal equipment side sends;
Device identification acquisition module, is suitable for the sign that described second server obtains described first terminal equipment;
Module is searched in device identification, is suitable for searching the sign that has the second terminal equipment of incidence relation with the sign of described first terminal equipment in the default incidence relation list of second server side;
The first file acquisition message transmission module, is suitable for according to the sign spanned file of described the second terminal equipment, obtaining message in second server side and is sent in the 3rd server.
Alternatively, described server also comprises:
Validation of information instruction generation module, be suitable for sign spanned file at described the second terminal equipment of described foundation obtain message be sent to the 3rd server in before, at second server adnation, become validation of information instruction;
Validation of information instruction sending module, is suitable in second server side, described validation of information instruction being sent in the 3rd server, by the 3rd server, is sent to first terminal equipment side;
Acknowledge message receiver module, is suitable for receiving at second server side joint the confirmation that first terminal equipment returns.
Alternatively, described validation of information instruction comprises the sign of the second terminal equipment, described confirmation comprises the first confirmation and the second confirmation, and the second terminal equipment of the sign correspondence that described the first confirmation is described the second terminal equipment of confirmation selected according to user is the information that file recipient generates; The second terminal equipment that described the second confirmation is the sign correspondence of not confirming described the second terminal equipment selected according to user is the information that file recipient generates;
Described server also comprises:
Calling module, is suitable for when described confirmation is the first confirmation, calls the first file acquisition message transmission module;
Identifier acquisition module, is suitable for, when described confirmation is the second confirmation, stressing newly to obtain the sign of the second terminal equipment at second server.
According to a further aspect in the invention, provide a kind of server for off-line files transmission, having comprised:
The first file acquisition message sink module, is suitable for receiving at the 3rd server side the file acquisition message that second server sends, and described file acquisition message comprises the sign of the second terminal equipment;
The second file acquisition message transmission module, the second terminal equipment of sign correspondence that is suitable for described the second terminal equipment being detected at the 3rd server side when online, is sent to described the second terminal equipment side by described file acquisition message.
Alternatively, described the second file acquisition message transmission module is also suitable for:
At the 3rd server side, obtain the sign of all terminal equipments that accessed;
In judging the sign of terminal equipment of described all accesses, the 3rd server side whether there is the terminal equipment identical with the sign of described the second terminal equipment;
If so, the second terminal equipment of sign correspondence of judging described the second terminal equipment is online.
Alternatively, described server also comprises:
Validation of information command reception module, is suitable for receiving at the 3rd server side the validation of information instruction that second server sends;
Validation of information instruction sending module, is suitable at the 3rd server side, described validation of information instruction being sent in first terminal equipment.
According to a further aspect in the invention, provide a kind of terminal equipment for off-line files transmission, having comprised:
The second file acquisition message sink module, is suitable for receiving in the second terminal equipment side the file acquisition message that the 3rd server sends;
Packets of information acquisition module, is suitable for according to described file acquisition message, obtaining corresponding packets of information in the second terminal equipment side from second server, and described packets of information comprises the download address of file destination resource;
File destination resource downloading module, is suitable for according to the download address of described file destination resource, downloading corresponding file destination resource in the second terminal equipment side from first server.
Alternatively, described packets of information comprises file attribute information, described file attribute information comprises the type of file destination resource, and the type of described file destination resource comprises theme, wallpaper, the tinkle of bells, software, music, game, video, e-book, and described terminal equipment also comprises:
If the type of described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book, described file destination resource is stored in to the second terminal equipment side;
If the type of described file destination resource is software and/or game, described file destination resource is directly installed.
Alternatively, described terminal equipment also comprises:
Monitor module, be suitable for before the second terminal equipment side receives the file acquisition message that the 3rd server sends, in the second terminal equipment side, monitoring network state described, described network state comprises that current network can use;
The first link block, can use if be suitable for current network, in the second terminal equipment side, connects current network;
The second link block, is suitable for connecting described the 3rd server in the second terminal equipment side.
Alternatively, if described the second terminal equipment is mobile device, described monitoring module is also suitable for:
In described the second terminal equipment side registered network state variation, receive service ConnctionChangeReceiver;
In the second terminal equipment side, adopt described network state to change and receive the broadcast CONNECTIVITY_CHANGE that service ConnctionChangeReceiver receiving system service SystemService sends;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, judge that current network can use;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, judge that current network is unavailable.
Alternatively, if described the second terminal equipment is computing equipment, the described step in the second terminal equipment side monitoring network state comprises:
In the second terminal equipment side, call network interface API and inquire about current network state.
According to a further aspect in the invention, provide a kind of system of off-line files transmission, having comprised: first terminal equipment, file server, application server, push server, the second terminal equipment, wherein,
Described first terminal equipment, be suitable for when first terminal equipment does not detect the access of the second terminal equipment, by suspension window, file destination resource to be sent is sent in file server, and receive the download address of the described file destination resource that described file server returns, and, the download address of described file destination resource is built to packets of information and be sent in application server;
Described file server, is suitable for receiving described file destination resource, according to described file destination resource, generates the download address of corresponding file destination resource and is sent in first terminal equipment;
Described application server, be suitable for receiving described packets of information, according to being identified at of the first terminal equipment carrying in described packets of information, in default incidence relation list, search the sign that has the second terminal equipment of incidence relation with the sign of described first terminal equipment, and the sign spanned file of described the second terminal equipment of foundation obtains message and is sent in push server;
Described push server, is suitable for when online, described file acquisition message being sent to described the second terminal equipment side at the second terminal equipment of sign correspondence that described the second terminal equipment detected;
Described the second terminal equipment, is suitable for from application server, obtaining corresponding packets of information according to described file acquisition message, and the download address of the file destination resource of carrying according to described packets of information is downloaded corresponding file destination resource from file server.
Alternatively, described first terminal equipment is also suitable for:
According to user, for the assigned operation spanned file of suspension window, send request;
Described file is sent request and is sent in file server;
Receive the file response message that described file server returns;
According to described file response message, described file destination resource is sent in file server.
Alternatively, the file attribute information of described file destination resource also comprise the size of file destination resource, the version number of the type of file destination resource, file destination resource, the sign of file destination resource.
Alternatively, the type of described file destination resource comprises theme, wallpaper, the tinkle of bells, software, music, game, video, e-book.
Alternatively, described the second terminal equipment is also suitable for:
Type in described file destination resource is the theme, when wallpaper, the tinkle of bells, music, video, e-book, described file destination resource is stored in to the second terminal equipment side;
When the type of described file destination resource is software and/or game, described file destination resource is directly installed.
Compare with background technology, the present invention has following beneficial effect:
In the present invention, first terminal equipment and the second terminal equipment are when carrying out the transmission of file resource, in the time of can be different, be in line states, while being first terminal equipment on-line, first file destination resource is uploaded to background server, now the second terminal equipment not necessarily needs online, when the second terminal equipment is downloaded described file destination resource when online again in background server, thereby reduced the restriction of file resource transmission, improved user and experience.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to better understand technological means of the present invention, and can be implemented according to the content of specification, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in accompanying drawing, yet should be appreciated that and can realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order more thoroughly to understand the disclosure that these embodiment are provided, and can by the scope of the present disclosure complete convey to those skilled in the art.
With reference to Fig. 1, the flow chart of steps that shows the embodiment of the method one of a kind of off-line files transmission of the present invention, the embodiment of the present invention describes from first terminal equipment side, wherein, described first terminal equipment is the transmit leg of file destination resource, and the embodiment of the present invention can comprise the steps:
Step 101, when first terminal equipment does not detect the access of the second terminal equipment, is sent to file destination resource in first server by suspension window at first terminal equipment side;
Wherein, described file destination resource is that the file resource that first terminal side is sent according to user is selected the file resource that instruction obtains; The download instruction to certain file resource that the selected instruction of described file resource is selected in the file resource download list of first terminal equipment side displaying for user, or, the selected instruction to certain file resource that the selected instruction of described file resource is selected in the file resource of first terminal equipment side storage for user.
In a preferred embodiment of the present invention, before described 101 steps, can also comprise: detect the assigned operation that user initiates for suspension window, described assigned operation comprises that user is drawn file destination resource the operation of suspension window, and/or, user clicks the selected button of file on suspension window, the operation in the path of select target file resource in the file path selection window ejecting at first terminal equipment;
Whether when described assigned operation being detected, sending reminder message inquiry user needs off-line to send file destination resource;
Described step 101 is specifically as follows:
At the off-line that receives user's transmission, confirm, after instruction, by suspension window, described file destination resource to be sent in first server, the confirmation off-line that described off-line confirmation instruction is indicated for user sends the instruction of described file destination resource.
In a preferred embodiment of the present invention, described step 101 can comprise following sub-step:
Sub-step S11, sends request for the assigned operation spanned file of suspension window according to user at first terminal equipment side;
Sub-step S12, sends request described file to be sent in first server at first terminal equipment side;
Sub-step S13, receives at first terminal equipment side the file response message that described first server is returned;
Sub-step S14, is sent to described file destination resource in first server according to described file response message at first terminal equipment side.
In a preferred embodiment of the present invention, described sub-step S14 further can comprise following sub-step:
Sub-step S141, first terminal equipment side according to described file response message to described file destination resource is encrypted;
Sub-step S142, is sent to the file destination resource after described encryption in first server.
Step 102, receives the download address of the described file destination resource that described first server returns at first terminal equipment side, the download address of described file destination resource is that described first server generates according to described file destination resource;
Step 103, the download address at first terminal equipment side according to described file destination resource builds packets of information and is sent in second server.
In a preferred embodiment of the present invention, described step 103 can comprise following sub-step:
At first terminal equipment side, obtain the file attribute information of described file destination resource;
At first terminal equipment side, build the download address of described file destination resource and the packets of information of described file attribute information;
At first terminal equipment side, described packets of information is sent in second server.
Wherein, the file attribute information of described file destination resource can also comprise the size of file destination resource, the version number of the type of file destination resource, file destination resource, the sign of file destination resource.
As a kind of preferred exemplary of the embodiment of the present invention, the type of described file destination resource comprises theme, wallpaper, the tinkle of bells, software, music, game, video, e-book.
In a preferred embodiment of the present invention, described method can also comprise:
At first terminal equipment side, receive the validation of information instruction that the 3rd server sends;
At first terminal equipment side, described validation of information instruction is showed to user;
Receive the confirmation that user selects, and described confirmation is sent in second server.
In a preferred embodiment of the present invention, described validation of information instruction comprises the sign of the second terminal equipment, described confirmation comprises the first confirmation and the second confirmation, and the second terminal equipment of the sign correspondence that described the first confirmation is described the second terminal equipment of confirmation selected according to user is the information that file recipient generates; The second terminal equipment that described the second confirmation is the sign correspondence of not confirming described the second terminal equipment selected according to user is the information that file recipient generates.
In a preferred embodiment of the present invention, described method can also comprise:
At first terminal equipment side spanned file, send list, described file sends the list that list becomes for carry out the file destination resource organizations of off-line transmission by described suspension window.
In a preferred embodiment of the present invention, described file sends to be had file for each file destination resource in list and sends state information, described file send state information comprise the state that successfully sends, send state, etc. state to be sent and send status of fail.
It should be noted that, described first server is file server, and described second server is application server, and described the 3rd server is push server.
With reference to Fig. 2, the flow chart of steps that shows the embodiment of the method two of a kind of off-line files transmission of the present invention, the embodiment of the present invention describes from second server side, wherein, described second server is application server, and the embodiment of the present invention can comprise the steps:
Step 201, receives at second server side joint the packets of information that first terminal equipment side sends;
Step 202, described second server obtains the sign of described first terminal equipment;
Step 203 is searched the sign that has the second terminal equipment of incidence relation with the sign of described first terminal equipment in the default incidence relation list of second server side;
Step 204, obtains message in second server side according to the sign spanned file of described the second terminal equipment and is sent in the 3rd server.
In a preferred embodiment of the present invention, before step 203, also comprise:
At second server adnation, become validation of information instruction;
In second server side, described validation of information instruction is sent in the 3rd server, by the 3rd server, is sent to first terminal equipment side;
At second server side joint, receive the confirmation that first terminal equipment returns.
In a preferred embodiment of the present invention, described validation of information instruction comprises the sign of the second terminal equipment, described confirmation comprises the first confirmation and the second confirmation, and the second terminal equipment of the sign correspondence that described the first confirmation is described the second terminal equipment of confirmation selected according to user is the information that file recipient generates; The second terminal equipment that described the second confirmation is the sign correspondence of not confirming described the second terminal equipment selected according to user is the information that file recipient generates;
Described method also comprises:
If described confirmation is the first confirmation, the described sign spanned file at described the second terminal equipment of second server side foundation of execution obtains message and is sent to the step in the 3rd server;
If described confirmation is the second confirmation, at second server, stress newly to obtain the sign of the second terminal equipment.
Wherein, described first server is file server, and described second server is application server, and described the 3rd server is push server.
With reference to Fig. 3, the flow chart of steps that shows the embodiment of the method three of a kind of off-line files transmission of the present invention, the embodiment of the present invention describes from the 3rd server side, wherein, described the 3rd server is push server, and the embodiment of the present invention can comprise the steps:
Step 301, receives at the 3rd server side the file acquisition message that second server sends, and described file acquisition message comprises the sign of the second terminal equipment;
Step 302, the second terminal equipment of sign correspondence that described the second terminal equipment detected at the 3rd server side when online, is sent to described the second terminal equipment side by described file acquisition message.
In a preferred embodiment of the present invention, described step 302 can comprise following sub-step:
Sub-step S31, obtains the sign of all terminal equipments that accessed at the 3rd server side;
Whether sub-step S32, there is the terminal equipment identical with the sign of described the second terminal equipment in the 3rd server side judges the sign of terminal equipment of described all accesses;
Sub-step S33, while there is the identical terminal equipment of sign with described the second terminal equipment in the 3rd server side is judged the sign of terminal equipment of described all accesses, judges that second terminal equipment of sign correspondence of described the second terminal equipment is online.
In a preferred embodiment of the present invention, described method also comprises:
At the 3rd server side, receive the validation of information instruction that second server sends;
At the 3rd server side, described validation of information instruction is sent in first terminal equipment.
It should be noted that, described first server is file server, and described second server is application server, and described the 3rd server is push server.
With reference to Fig. 4, the flow chart of steps that shows the embodiment of the method four of a kind of off-line files transmission of the present invention, the embodiment of the present invention describes from the second terminal equipment side, wherein, described the second terminal equipment is the recipient of file destination resource, and the embodiment of the present invention can comprise the steps:
Step 401, receives in the second terminal equipment side the file acquisition message that the 3rd server sends;
Step 402 is obtained corresponding packets of information in the second terminal equipment side according to described file acquisition message from second server, and described packets of information comprises the download address of file destination resource;
Step 403 is downloaded corresponding file destination resource in the second terminal equipment side according to the download address of described file destination resource from first server.
In a preferred embodiment of the present invention, described packets of information comprises file attribute information, described file attribute information can comprise the type of file destination resource, the type of described file destination resource comprises theme, wallpaper, the tinkle of bells, software, music, game, video, e-book, and described method can also comprise:
If the type of described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book, described file destination resource is stored in to the second terminal equipment side;
If the type of described file destination resource is software and/or game, described file destination resource is directly installed.
In a preferred embodiment of the present invention, before described step 401, can also comprise:
In the second terminal equipment side, monitor network state, described network state comprises that current network can be used and current network is unavailable;
If current network can be used, in the second terminal equipment side, connect current network;
In the second terminal equipment side, connect described the 3rd server.
In a preferred embodiment of the present invention, if described the second terminal equipment is mobile device, the described step in the second terminal equipment side monitoring network state comprises:
In described the second terminal equipment side registered network state variation, receive service ConnctionChangeReceiver;
In the second terminal equipment side, adopt described network state to change and receive the broadcast CONNECTIVITY_CHANGE that service ConnctionChangeReceiver receiving system service SystemService sends;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, judge that current network can use;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, judge that current network is unavailable.
In another kind of preferred embodiment of the present invention, if described the second terminal equipment is computing equipment, the described step in the second terminal equipment side monitoring network state comprises:
In the second terminal equipment side, call network interface API and inquire about current network state.
It should be noted that, described first server is file server, and described second server is application server, and the 3rd server is push server.
With reference to Fig. 5, show the flow chart of steps of the embodiment of the method five of a kind of off-line files transmission of the present invention, in embodiments of the present invention, described first terminal equipment is the transmit leg of file destination resource, described the second terminal equipment is the recipient of file destination resource, described first terminal equipment and/or described the second terminal equipment can be mobile device or computing equipment, wherein, described computing equipment is a kind of can operation according to program, automatically, the intelligent electronic device of high speed processing mass data, as desktop computer, notebook computer etc.Described mobile device is a kind of computing equipment that can use in movement, as mobile phone, the embodiment of the present invention to the type of first terminal equipment and the second terminal equipment without being limited.
The embodiment of the present invention can comprise the steps:
Step 501, corresponding file destination resource is obtained in the selected instruction of the file resource sending according to user at first terminal equipment side;
In a preferred embodiment of the present invention, the download instruction to certain file resource of selecting in the file resource download list that the selected instruction of described file resource can be shown at first terminal equipment side for user.Particularly, at first terminal equipment side, the first client-side program is installed, in described the first client-side program, show and have the file resource that magnanimity is free to download for user, user can select the file resource of oneself liking to download from the file resource of this first client-side program.In practice, when user is by mouse or tap in the download list that operates in the file resource that the first client-side program shows after the selected file resource of oneself liking, generate corresponding file resource download instruction, the first client-side program receives after described file resource download instruction, downloads corresponding file resource and store first terminal equipment side into as file destination resource from server.
In practice, described the first client-side program is opened a suspension window for the transmission of file destination resource in computer-side, when user is when first terminal equipment side is opened the first client-side program, the first client-side program can be in suspension window or at the predeterminated position of first terminal equipment, is ejected window reminding user and can send off-line files resource to the second terminal equipment, and first terminal equipment does not connect yet fat file resource (as shown in Figure 6) at any time of the second terminal equipment.
Specifically, the effect of suspension window is, when the window of main program is when minimizing, and the running status that can also point out user to see this program, and can, by clicking these wickets, open quickly the window of main program.Suspension window has comprised one and can on screen, show after suspension window for the default entrance of user's access, and user can be by perhaps carrying out predetermined registration operation in this default entrance access preset.For example, user can start the operation of delivery fat file by clicking default entrance.
In another kind of preferred embodiment of the present invention, the selected instruction to certain file resource that the selected instruction of described file resource can be selected for user in the file resource of first terminal equipment side storage.Particularly, user can also select certain file resource as file destination resource in the existing file resource of first terminal side storage.
A kind of preferred exemplary as the present embodiment, described file destination resource has file attribute information, described file attribute information can comprise the size of file destination resource, the version number of the type of file destination resource, file destination resource, sign of file destination resource etc.Wherein, the type of described file destination resource can comprise the polytypes such as theme, wallpaper, the tinkle of bells, software, music, game, video, e-book.
Step 502, when first terminal equipment does not detect the access of the second terminal equipment, is sent to described file destination resource in file server by suspension window at first terminal equipment side;
Particularly, at first terminal equipment side, get after file destination resource, whether first terminal equipment adopts described the first client-side program to detect the second terminal equipment access, in the situation that there is no the second terminal equipment access, the first client-side program detects user not to be had not for suspension window initiation assigned operation.Wherein, described assigned operation of initiating for suspension window can have various ways, with reference to the suspension window assigned operation schematic diagram shown in figure 7, a kind of preferred exemplary as the present embodiment, the assigned operation that described user initiates for suspension window can comprise that user is drawn file destination resource the operation of suspension window, be that user after select target file resource, is directly dragged to the operation in suspension window by file destination resource from the file resource of first terminal side storage.Another kind of preferred exemplary as the present embodiment, the assigned operation that described user initiates for suspension window can comprise that user clicks the selected button of file on suspension window, the operation in the path of select target file resource in the file path selection window ejecting at first terminal equipment, for example, the selected button of described file can be the function button of " file that selection will send " shown in Fig. 7, click after the selected button of file, first terminal equipment side can eject file path selection window, user can be in this document Path selection window the path of select target file resource.
When the first client-side program detects user for suspension window initiation assigned operation, the first client-side program can send reminder message and inquire whether user needs off-line to send file destination resource, specifically, described reminder message can be by ejecting and play window and show user in suspension window or at the predeterminated position of first terminal equipment, after receiving the selected off-line confirmation instruction of user, off-line sends described file destination resource.Wherein, the confirmation off-line that described off-line confirmation instruction is indicated for user sends the instruction of described file destination resource.Described off-line confirms that instruction can be presented as that user clicks the instruction that plays the similar functions buttons such as " confirming to send off-line files " in window and trigger.
On the other hand, if user's indication does not need off-line to send file destination resource, can click the similar functions buttons such as " not sending off-line files " playing in window and trigger the instruction that does not send off-line files, now, described file destination resource in described suspension window in etc. state to be sent.
In actual applications, user triggers the mode that off-line confirms instruction or trigger the instruction that does not send off-line files can be had multiple, except similar functions buttons such as above-mentioned click " confirmation sends off-line files ", " not sending off-line files ", outside whether sending and trigger with the off-line of realize target file resource, if gravity sensing device is installed in first terminal equipment, can also trigger gravity sensing device by shaking first terminal equipment, and then realize the triggering whether off-line of described file destination resource is sent.In the embodiment of the present invention, described in shake and can be understood as any operation that can trigger gravity sensing device, as mobile device etc. up and down or as described in double swerve, the embodiment of the present invention does not limit concrete operation.
In a preferred embodiment of the present invention, when receiving the off-line of user's transmission, to confirm after instruction, step 502 can be further for the assigned operation spanned file of suspension window, to send request according to described user at first terminal equipment side; At first terminal equipment side, described file is sent request and is sent in file server; At first terminal equipment side, receive the file response message that described file server returns; At first terminal equipment side, according to described file response message, described file destination resource is sent in file server.Specifically, described file sends request the size that can comprise file destination resource, after file server receives described file and sends request, size according to described file destination resource judges whether the memory size of self is greater than the size of described file destination resource, if be greater than, file server backspace file response message, to notify first terminal equipment to upload file destination resource; Otherwise file server is backspace file response message not.If first terminal equipment receives file response message in Preset Time section, will described file destination resource be sent in file server according to described file response message; If first terminal equipment does not receive file response message in Preset Time section, described file destination resource is not sent in file server, now, described file destination resource in described suspension window in etc. state to be sent.
In practice, in order to ensure the safety of file destination resource, the first client-side program is before uploading described file destination resource, after can being first encrypted described file destination resource according to the first preset rules, be uploaded to again in file server the encrypting and decrypting rule that described the first preset rules can be made an appointment for described the first client-side program and background server.
Step 503, file server generates the download address of described file destination resource and returns to first terminal equipment side;
Particularly, described file server is the server of shared file, for storing file destination resource.In actual applications, in described file server, only preserve the file destination resource in Preset Time section, file server can carry out periodicity or detect aperiodically the file destination resource of storage, if the time of the storage of file destination resource detected, surpass Preset Time section, delete described file destination resource.Wherein, described Preset Time section can be the time period (as one month, surpassing the file destination resource of one month access time by deleted) arranging the time started for the access time for each file destination resource; Or described Preset Time can also be unified the event horizon (as the file destination resource of storage before 10 days July in 2013 will be deleted) of setting for the file resource that file server is all storages.
File server receives after file destination resource, obtain this file destination resource in the memory address of file server side, described memory address is generated to the download address of described file destination resource according to the second preset rules, after the download address of described file destination resource is encrypted according to the first preset rules, return to first terminal equipment side.
In specific implementation, user can select one or more file destination resources, and send by described suspension window, now first terminal equipment can adopt described the first client-side program spanned file to send list, described file sends the list that list becomes for carry out the file destination resource organizations of off-line transmission by described suspension window, and first terminal side sends list by described file and is illustrated in the predeterminated position of suspension window or other predeterminated positions of first terminal equipment interface.Described file sends the file having for each file destination resource in list and sends state information, described file send state information can comprise the state that successfully sends, send state, etc. state to be sent and send status of fail.Wherein, described file sends state information and refers to that file is sent to the state information of file server, the state that described successfully transmission state is the corresponding download address that receives file server return in Preset Time section; Described transmission status of fail for not receiving the state of the corresponding download address that file server returns in Preset Time section.
In actual applications, in file status list, can also show and check guide information, described in check how guide information receives and to check off-line files resource at the second terminal equipment for guides user.
Step 504, builds the download address of described file destination resource and the packets of information of described file attribute information and is sent in application server at first terminal equipment side;
Be applied to the embodiment of the present invention, first terminal equipment side adopts the first client-side program to receive after the download address of the file destination resource that file server returns, the download address of this file destination resource is decrypted according to the first preset rules, then build the download address of described file destination resource and the packets of information of described file attribute information, and be sent in application server after adopting the first preset rules to be encrypted to described packets of information.
It should be noted that, described packets of information is actually a kind of download address of file destination resource and data structure of described file attribute information of recording.
Step 505, application server obtains the sign of described first terminal equipment, and searches the sign that has the second terminal equipment of incidence relation with the sign of described first terminal equipment in default incidence relation list;
Particularly, in described default incidence relation list, store the sign of first terminal equipment of connection and the incidence relation between the sign of the second terminal equipment occurred.The process that described incidence relation generates can be (take first terminal equipment as computing equipment, the situation that the second terminal equipment is mobile device is for example):
First computing equipment receives the long notification message connecting of foundation that mobile device sends, and notification message comprises the sign of mobile device; If computing equipment allow to be set up long connection, computing equipment is sent to application server by the sign of the sign of mobile device and computing equipment, by the incidence relation of application server record move equipment and computing equipment in incidence relation list.
Particularly, set up the incidence relation between mobile device and computing equipment, mainly comprise the steps:
1, mobile device authenticates on application server;
1.1 start the second client-side program (being mobile phone assistant) at mobile device;
1.2 on mobile device after input handset number, and mobile device sends to application server in the lump by the IMEI of this equipment and cell-phone number;
1.3 application servers send the note with authentication code to mobile device;
1.4 input this authentication code on mobile device, then issue application server;
1.5 application servers determine that according to this authentication code, mobile device number and IMEI this mobile device that is designated of this mobile device has.
2. at computing equipment place
2.1 start mobile phone assistant on computing equipment;
After the cell-phone number of 2.2 input mobile devices, computing equipment sends to application server in the lump by the cell-phone number of mobile device and MID;
Whether 2.3 application servers are inquired about the corresponding mobile device of this cell-phone number according to MID, the cell-phone number of the computing equipment receiving and at this application server place, are authenticated in database, if authenticated, in incidence relation list, set up MID, the cell-phone number of computing equipment, the corresponding relation of the IMEI of this mobile device is for example stored in them in incidence relation list as a record; Otherwise to mobile device, send invitation, 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;
When 2.3.2 mobile device receives this note, can eject a binding and allow dialog box, after user clicks and determines, the information in this activation link can be sent to application server, application server receives after binding acknowledgement request, by this mobile device and the binding of corresponding computing equipment.
Incidence relation list structure is
CREATE?TABLE`client`(
`id`INT(10)UNSIGNED?NOT?NULL?AUTO_INCREMENT,
`clientid`VARCHAR (64) NOT NULL DEFAULT''COMMENT' client id ',
`mid`VARCHAR (32) NOT NULL DEFAULT''COMMENT' machine ID ',
`toid`INT (10) NOT NULL DEFAULT'0'COMMENT' device id ',
`appid`INT (10) NOT NULL DEFAULT'0'COMMENT' device type ',
`createtime`DATETIME NOT NULL COMMENT' creation-time ',
The `updatetime`DATETIME NOT NULL COMMENT' final updating time ',
PRIMARY?KEY(`id`),
UNIQUE?INDEX`clientid`(`clientid`),
INDEX`toid`(`toid`)
)
COMMENT=' client device contingency table '
COLLATE='utf8_general_ci'
ENGINE=InnoDB;
The database table of message is:
CREATE?TABLE`msg`(
`msgid`INT(10)UNSIGNED?NOT?NULL?AUTO_INCREMENT,
The initial express delivery of `toid`INT (10) UNSIGNED NOT NULL DEFAULT'0'COMMENT' number [submeter KEY] ',
`title`CHAR (255) NOT NULL DEFAULT''COMMENT' message header ',
`content`TEXT?NOT?NULL,
`isupload`TINYINT (4) UNSIGNED NOT NULL COMMENT' whether this locality upload ',
`signature`CHAR (255) the NOT NULL DEFAULT''COMMENT' sender ` that signs,
`fileurl`VARCHAR (2800) NOT NULL DEFAULT''COMMENT' file is downloaded url',
`filename`VARCHAR (1200) NOT NULL DEFAULT''COMMENT' filename ',
`filetype`TINYINT (3) UNSIGNED NOT NULL DEFAULT'0'COMMENT' files classes model ',
`filehash`CHAR (32) NOT NULL DEFAULT''COMMENT' file md5',
`filethumb`CHAR (255) NOT NULL DEFAULT''COMMENT' thumbnail url',
`fileshorturl`CHAR (64) NOT NULL DEFAULT'0'COMMENT' short chain connects ',
`filesize`INT (10) UNSIGNED NOT NULL DEFAULT'0'COMMENT' file size ',
`status`TINYINT(4)NOT?NULL?DEFAULT'0',
`createtime`DATETIME NOT NULL COMMENT' creation-time ',
`updatetime`DATETIME NOT NULL COMMENT' update time ',
`flag`TINYINT(3)UNSIGNED?NOT?NULL?DEFAULT'0',
`fromid`INT(10)UNSIGNED?NOT?NULL?DEFAULT'0',
`appid`SMALLINT (5) UNSIGNED NOT NULL DEFAULT'0'COMMENT' application ID',
`batchid`INT(10)UNSIGNED?NULL?DEFAULT'0',
`_batchid`VARCHAR(200)NULL?DEFAULT'',
PRIMARY?KEY(`msgid`),
INDEX`idx_toid_flag_status_msgid`(`toid`,`flag`,`status`,`msgid`)
)
COMMENT=' message table '
COLLATE='utf8_general_ci'
ENGINE=InnoDB。
Particularly, the sign of mobile device is mobile1, the sign of computing equipment is desktop1, when mobile device will carry out associated time with computing equipment, long connection sends to computing equipment by this associated request, and computing equipment agrees to confirm that rear this associated mobile1<-->desktop1 has set up.When application server is received after packets of information, the mapping relations of desktop1<--> packets of information file1 in application server, have also been recorded.Application server, after receiving packets of information, is decrypted it, and obtains the sign of described first terminal equipment, searches subsequently the sign of second terminal equipment associated with the sign of described first terminal equipment in described default incidence relation list.In actual applications, described in described default incidence relation list there is following situation in the incidence relation between the sign of first terminal equipment and the sign of described the second terminal equipment:
(1) sign of first terminal equipment is only corresponding with the sign of second terminal equipment.In this case, application server selects the sign of described the second terminal equipment as the recipient of described file destination resource.
(2) sign of first terminal equipment is corresponding with the sign of many second terminal equipments.In this case, due in practice, in default incidence relation list, can also store the up-to-date time being connected of the sign of described first terminal equipment and the sign of each the second terminal equipment, now, can there is recently the sign (being last second terminal equipment being connected with first terminal equipment) of the second terminal equipment of connecting as the recipient of file destination resource according to the sign of the described first terminal equipment selection of time that be connected up-to-date with the sign of each the second terminal equipment in application server.
Application server gets after the sign as the second terminal equipment of file destination resource recipient, information generated is confirmed instruction, and by push server (push server), described validation of information instruction is sent to first terminal equipment side, described validation of information instruction comprises the sign of the second terminal equipment, and described validation of information instruction is for informing that first terminal equipment is confirmed whether file destination resource to be sent to the sign of the second terminal equipment of described selection.Off-line is as shown in Figure 8 reminded schematic diagram, first terminal equipment is after receiving described validation of information instruction, can adopt the sign of the second equipment that the first client-side program will send described file destination resource to show user to play the forms such as window, if user selects " sending immediately ", illustrate that user confirms that described file destination resource is sent to the sign of described the second terminal equipment, first terminal equipment side generates the first confirmation and is sent to application server side.In addition, if user's intention is not that described file destination resource is sent in the sign of described the second terminal equipment, user can select the button of printed words such as " zapping equipment ", first terminal equipment side generates the second confirmation and is sent in application server, now, user can will need in the second terminal equipment access first terminal equipment of receiving target file resource, with receiving target file resource; If user does not access any the second terminal equipment, application server is searched the sign that whether has other second terminal equipments associated with the sign of described first terminal equipment in described default incidence relation list again, if exist, obtain time sign information generated of the second terminal equipment that generation connects recently and confirm that instruction is sent to first terminal equipment side, by that analogy; Otherwise application server generates connection reminder message and is sent to first terminal equipment side, need to accept the second terminal equipment of file destination resource to notify user to connect.
Step 506, obtains message in application server side according to the sign spanned file of described the second terminal equipment and is sent in push server;
Application server receives after the first confirmation of first terminal equipment side transmission, and the sign spanned file of described the second terminal equipment of foundation obtains message, and described file acquisition message is sent in push server (push server).Wherein, described file acquisition message is for notifying push server at the second terminal equipment of sign correspondence that described the second terminal equipment detected when online, file acquisition message is sent in described the second terminal equipment, to notify described the second terminal equipment to obtain described packets of information in application server.
Step 507, push server side detects second terminal equipment of sign correspondence of described the second terminal equipment when online, and described file acquisition message is sent to described the second terminal equipment side;
In practice, push server is for the second terminal equipment to correspondence by file acquisition message push.Particularly, push server is after receiving described file acquisition message, obtain the sign of the second terminal equipment carrying in described file acquisition message, and search the terminal equipment identical with the sign of described the second terminal equipment in the sign (terminal equipment is a push server that can certainly be dynamically connected online) of all terminal equipments that accessed, if search successfully, illustrate that described the second terminal equipment is online, otherwise, illustrate that described the second terminal equipment is not online.
Push server, described the second terminal equipment being detected when online, is directly sent to described file acquisition message in described the second terminal equipment; If described the second terminal equipment not online (being off-line) detected, wait until that described the second terminal equipment is sent to described file acquisition message in described the second terminal equipment on line again.
In specific implementation, the second terminal equipment online whether according to the audible network state of prison and determine.Particularly, in a preferred embodiment of the present invention, if described the second terminal equipment is the mobile device that Android system is installed, it monitors network state in the following manner:
Network state is a SystemService, can obtain by context.getSystemService (String name), when network state changes, SystemServic can send android.net.conn.CONNECTIVITY_CHANGE broadcast, now mobile device side only need to be registered a service(service), just can receive on backstage the broadcast that network state changes, this service can be ConnctionChangeReceiver; The broadcast that processing receives, implementation method is as follows, adds network state judgement in onReceive:
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;
GetNetworkInfo obtains respectively the information that type is MOBILE and two kinds of networking modes of WIFI;
The Boolean Boolean returning by judgement mobNetInfo.isConnected () and wifiNetInfo.isConnected () is determined current networking state, if the Boolean returning is true(or 1), illustrate that current network can use, mobile device can connect; If the Boolean returning is false(or 0), illustrate that current network is unavailable, mobile device can not connect.
In another kind of preferred embodiment of the present invention, if described the second terminal equipment is computing equipment, it monitors network state in the following manner: if when computing equipment needs wireless connections network, can call network interface API and obtain current network state, if current network state can be used, computing equipment connects current network, otherwise, do not connect current network.
Step 508 is obtained corresponding packets of information in the second terminal equipment side according to described file acquisition message from application server;
Particularly, the second terminal equipment side is provided with the second client-side program, described the second terminal equipment adopts described the second client-side program to receive the file acquisition message that push server sends, when receiving described file acquisition message, described file acquisition message can be illustrated in the default display location of the second terminal, and with prompt tone or play the file resource that the forms such as window notify user to have off-line, user clicks and impels after described file acquisition message the second terminal equipment to adopt described the second client-side program to obtaining information bag in application server.
Step 509 is downloaded corresponding file destination resource in the second terminal equipment side according to the download address of described file destination resource from file server.
The second client-side program gets after packets of information, deciphers described packets of information, obtains the download address of the file resource in described packets of information, and in file server, obtains corresponding file destination resource according to the download address of described file resource.
Further, the second client-side program is deciphered after described packets of information, can also obtain the type of described file destination resource, and proceed as follows according to the type of described file destination resource: if the types such as the type of described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book are stored in described file destination resource the second terminal equipment side; If the type of described file destination resource is the Setup Types such as software and/or game, described file destination resource is directly installed.The second client-side program is being stored file resource or is being installed after file resource, the fileinfo of the file resource that can inform the mounted file resource of user with notification message or the form that plays window in the default display location at the second terminal equipment interface or store, wherein, described fileinfo can represent with the form of list.
In embodiments of the present invention, first terminal equipment and the second terminal equipment are when carrying out the transmission of file resource, in the time of can be different, be in line states, while being first terminal equipment on-line, first file destination resource is uploaded to background server, now the second terminal equipment not necessarily needs online, when the second terminal equipment is downloaded described file destination resource when online again in background server, thereby reduced the restriction of file resource transmission, improved user and experience.
For embodiment of the method, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the present invention is not subject to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
With reference to Fig. 9, show the structured flowchart of a kind of terminal equipment embodiment mono-for off-line files transmission of the present invention, described terminal equipment can comprise as lower module:
File destination resource sending module 601, is suitable for, when first terminal equipment does not detect the access of the second terminal equipment, at first terminal equipment side, by suspension window, file destination resource being sent in first server;
Download address receiver module 602, is suitable for receiving at first terminal equipment side the download address of the described file destination resource that described first server returns, and the download address of described file destination resource is that described first server generates according to described file destination resource;
Download address sending module 603, is suitable for the download address according to described file destination resource at first terminal equipment side and builds packets of information and be sent in second server.
In a preferred embodiment of the present invention, also comprise:
Detection module, be suitable for described in first terminal equipment side is sent to first server by suspension window by file destination resource before, detect the assigned operation that user initiates for suspension window, described assigned operation comprises that user is drawn file destination resource the operation of suspension window, and/or, user clicks the selected button of file on suspension window, the operation in the path of select target file resource in the file path selection window ejecting at first terminal equipment;
Reminder message sending module, is suitable for when described assigned operation being detected, and whether send reminder message inquiry user needs off-line to send file destination resource;
Described file destination resource sending module is also suitable for:
At the off-line that receives user's transmission, confirm, after instruction, by suspension window, described file destination resource to be sent in first server, the confirmation off-line that described off-line confirmation instruction is indicated for user sends the instruction of described file destination resource.
In a preferred embodiment of the present invention, described file destination resource sending module 601 is also suitable for:
At first terminal equipment side, according to described user, for the assigned operation spanned file of suspension window, send request;
At first terminal equipment side, described file is sent request and is sent in first server;
At first terminal equipment side, receive the file response message that described first server is returned;
At first terminal equipment side, according to described file response message, described file destination resource is sent in first server.
In a preferred embodiment of the present invention, described file destination resource sending module is also suitable for:
First terminal equipment side according to described file response message to described file destination resource is encrypted;
File destination resource after described encryption is sent in first server.
In a preferred embodiment of the present invention, described file destination resource is that the file resource that first terminal side is sent according to user is selected the file resource that instruction obtains; The download instruction to certain file resource that the selected instruction of described file resource is selected in the file resource download list of first terminal equipment side displaying for user, or, the selected instruction to certain file resource that the selected instruction of described file resource is selected in the file resource of first terminal equipment side storage for user.
In a preferred embodiment of the present invention, described download address sending module is also suitable for:
At first terminal equipment side, obtain the file attribute information of described file destination resource;
At first terminal equipment side, build the download address of described file destination resource and the packets of information of described file attribute information;
At first terminal equipment side, described packets of information is sent in second server.
In a preferred embodiment of the present invention, also comprise:
Validation of information instruction sending module, is suitable for receiving at first terminal equipment side the validation of information instruction that the 3rd server sends;
Display module, is suitable for, at first terminal equipment side, described validation of information instruction is showed to user;
Confirmation receiver module, is suitable for receiving the confirmation that user selects, and described confirmation is sent in second server.
In a preferred embodiment of the present invention, described validation of information instruction comprises the sign of the second terminal equipment, described confirmation comprises the first confirmation and the second confirmation, and the second terminal equipment of the sign correspondence that described the first confirmation is described the second terminal equipment of confirmation selected according to user is the information that file recipient generates; The second terminal equipment that described the second confirmation is the sign correspondence of not confirming described the second terminal equipment selected according to user is the information that file recipient generates.
In a preferred embodiment of the present invention, also comprise:
File sends list generation module, is suitable for sending list at first terminal equipment side spanned file, and described file sends the list that list becomes for carry out the file destination resource organizations of off-line transmission by described suspension window.
In a preferred embodiment of the present invention, described file sends to be had file for each file destination resource in list and sends state information, described file send state information comprise the state that successfully sends, send state, etc. state to be sent and send status of fail.
In a preferred embodiment of the present invention, the file attribute information of described file destination resource also comprise the size of file destination resource, the version number of the type of file destination resource, file destination resource, the sign of file destination resource.
In a preferred embodiment of the present invention, the type of described file destination resource comprises theme, wallpaper, the tinkle of bells, software, music, game, video, e-book.
In a preferred embodiment of the present invention, described first server is file server, and described second server is application server, and described the 3rd server is push server.
With reference to Figure 10, show the structured flowchart of a kind of server example one for off-line files transmission of the present invention, described server can comprise as lower module:
Packets of information receiver module 701, is suitable for receiving at second server side joint the packets of information that first terminal equipment side sends;
Device identification acquisition module 702, is suitable for the sign that described second server obtains described first terminal equipment;
Module 703 is searched in device identification, is suitable for searching the sign that has the second terminal equipment of incidence relation with the sign of described first terminal equipment in the default incidence relation list of second server side;
The first file acquisition message transmission module 704, is suitable for according to the sign spanned file of described the second terminal equipment, obtaining message in second server side and is sent in the 3rd server.
In a preferred embodiment of the present invention, also comprise:
Validation of information instruction generation module, be suitable for sign spanned file at described the second terminal equipment of described foundation obtain message be sent to the 3rd server in before, at second server adnation, become validation of information instruction;
Validation of information instruction sending module, is suitable in second server side, described validation of information instruction being sent in the 3rd server, by the 3rd server, is sent to first terminal equipment side;
Acknowledge message receiver module, is suitable for receiving at second server side joint the confirmation that first terminal equipment returns.
In a preferred embodiment of the present invention, described validation of information instruction comprises the sign of the second terminal equipment, described confirmation comprises the first confirmation and the second confirmation, and the second terminal equipment of the sign correspondence that described the first confirmation is described the second terminal equipment of confirmation selected according to user is the information that file recipient generates; The second terminal equipment that described the second confirmation is the sign correspondence of not confirming described the second terminal equipment selected according to user is the information that file recipient generates;
Described server also comprises:
Calling module, is suitable for when described confirmation is the first confirmation, calls the first file acquisition message transmission module;
Identifier acquisition module, is suitable for, when described confirmation is the second confirmation, stressing newly to obtain the sign of the second terminal equipment at second server.
In a preferred embodiment of the present invention, described second server is application server, and described the 3rd server is push server.
With reference to Figure 11, show the structured flowchart of a kind of server example two for off-line files transmission of the present invention, described server can comprise as lower module:
The first file acquisition message sink module 801, is suitable for receiving at the 3rd server side the file acquisition message that second server sends, and described file acquisition message comprises the sign of the second terminal equipment;
The second file acquisition message transmission module 802, the second terminal equipment of sign correspondence that is suitable for described the second terminal equipment being detected at the 3rd server side when online, is sent to described the second terminal equipment side by described file acquisition message.
In a preferred embodiment of the present invention, described the second file acquisition message transmission module is also suitable for:
At the 3rd server side, obtain the sign of all terminal equipments that accessed;
In judging the sign of terminal equipment of described all accesses, the 3rd server side whether there is the terminal equipment identical with the sign of described the second terminal equipment;
If so, the second terminal equipment of sign correspondence of judging described the second terminal equipment is online.
In a preferred embodiment of the present invention, also comprise:
Validation of information command reception module, is suitable for receiving at the 3rd server side the validation of information instruction that second server sends;
Validation of information instruction sending module, is suitable at the 3rd server side, described validation of information instruction being sent in first terminal equipment.
In a preferred embodiment of the present invention, described second server is application server, and described the 3rd server is push server.
With reference to Figure 12, show the structured flowchart of a kind of terminal equipment embodiment bis-for off-line files transmission of the present invention, described terminal equipment can comprise as lower module:
The second file acquisition message sink module 901, is suitable for receiving in the second terminal equipment side the file acquisition message that the 3rd server sends;
Packets of information acquisition module 902, is suitable for according to described file acquisition message, obtaining corresponding packets of information in the second terminal equipment side from second server, and described packets of information comprises the download address of file destination resource;
File destination resource downloading module 903, is suitable for according to the download address of described file destination resource, downloading corresponding file destination resource in the second terminal equipment side from first server.
In a preferred embodiment of the present invention, described packets of information comprises file attribute information, described file attribute information comprises the type of file destination resource, the type of described file destination resource comprises theme, wallpaper, the tinkle of bells, software, music, game, video, e-book, and described terminal equipment also comprises:
If the type of described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book, described file destination resource is stored in to the second terminal equipment side;
If the type of described file destination resource is software and/or game, described file destination resource is directly installed.
In a preferred embodiment of the present invention, described terminal equipment also comprises:
Monitor module, be suitable for before the second terminal equipment side receives the file acquisition message that the 3rd server sends, in the second terminal equipment side, monitoring network state described, described network state comprises that current network can use;
The first link block, can use if be suitable for current network, in the second terminal equipment side, connects current network;
The second link block, is suitable for connecting described the 3rd server in the second terminal equipment side.
In a preferred embodiment of the present invention, if described the second terminal equipment is mobile device, described monitoring module is also suitable for:
In described the second terminal equipment side registered network state variation, receive service ConnctionChangeReceiver;
In the second terminal equipment side, adopt described network state to change and receive the broadcast CONNECTIVITY_CHANGE that service ConnctionChangeReceiver receiving system service SystemService sends;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, judge that current network can use;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, judge that current network is unavailable.
In another kind of preferred embodiment of the present invention, if described the second terminal equipment is mobile device, described monitoring module is also suitable for:
In the second terminal equipment side, call network interface API and inquire about current network state.
In a preferred embodiment of the present invention, described first server is file server, and described second server is application server, and the 3rd server is push server.
With reference to Figure 13, show the structured flowchart of the system embodiment of a kind of off-line files transmission of the present invention, described system can comprise first terminal equipment 10, file server 20, application server 30, push server 40, the second terminal equipment 50, wherein,
Described first terminal equipment 10, be suitable for when first terminal equipment does not detect the access of the second terminal equipment, by suspension window, file destination resource to be sent is sent in file server, and receive the download address of the described file destination resource that described file server returns, and, the download address of described file destination resource is built to packets of information and be sent in application server;
Described file server 20, is suitable for receiving described file destination resource, according to described file destination resource, generates the download address of corresponding file destination resource and is sent in first terminal equipment;
Described application server 30, be suitable for receiving described packets of information, according to being identified at of the first terminal equipment carrying in described packets of information, in default incidence relation list, search the sign that has the second terminal equipment of incidence relation with the sign of described first terminal equipment, and the sign spanned file of described the second terminal equipment of foundation obtains message and is sent in push server;
Described push server 40, is suitable for when online, described file acquisition message being sent to described the second terminal equipment side at the second terminal equipment of sign correspondence that described the second terminal equipment detected;
Described the second terminal equipment 50, is suitable for from application server, obtaining corresponding packets of information according to described file acquisition message, and the download address of the file destination resource of carrying according to described packets of information is downloaded corresponding file destination resource from file server.
In a preferred embodiment of the present invention, described first terminal equipment 10 is also suitable for:
According to user, for the assigned operation spanned file of suspension window, send request;
Described file is sent request and is sent in file server;
Receive the file response message that described file server returns;
According to described file response message, described file destination resource is sent in file server.
In a preferred embodiment of the present invention, the file attribute information of described file destination resource also comprise the size of file destination resource, the version number of the type of file destination resource, file destination resource, the sign of file destination resource.
In a preferred embodiment of the present invention, the type of described file destination resource comprises theme, wallpaper, the tinkle of bells, software, music, game, video, e-book.
In a preferred embodiment of the present invention, described the second terminal equipment 50 is also suitable for:
Type in described file destination resource is the theme, when wallpaper, the tinkle of bells, music, video, e-book, described file destination resource is stored in to the second terminal equipment side;
When the type of described file destination resource is software and/or game, described file destination resource is directly installed.
The algorithm providing at this is intrinsic not relevant to any particular computing device, virtual system or miscellaneous equipment with demonstration.Various general-purpose systems also can with based on using together with this teaching.According to description above, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.It should be understood that and can utilize various programming languages to realize content of the present invention described here, and the description of above language-specific being done is in order to disclose preferred forms of the present invention.
In the specification that provided herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can not put into practice in the situation that there is no these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the above in the description of exemplary embodiment of the present invention, each feature of the present invention is grouped together into single embodiment, figure or sometimes in its description.Yet, the method for the disclosure should be construed to the following intention of reflection: the present invention for required protection requires than the more feature of feature of clearly recording in each claim.Or rather, as reflected in claims below, inventive aspect is to be less than all features of disclosed single embodiment above.Therefore, claims of following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can the module in the equipment in embodiment are adaptively changed and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and can put them into a plurality of submodules or subelement or sub-component in addition.At least some in such feature and/or process or unit are mutually repelling, and can adopt any combination to combine all processes or the unit of disclosed all features in this specification (comprising claim, summary and the accompanying drawing followed) and disclosed any method like this or equipment.Unless clearly statement in addition, in this specification (comprising claim, summary and the accompanying drawing followed) disclosed each feature can be by providing identical, be equal to or similar object alternative features replaces.
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included in other embodiment, the combination of the feature of different embodiment means within scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with compound mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, or realizes with the software module moved on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that and can use in practice microprocessor or digital signal processor (DSP) to realize according to the some or all functions of the some or all parts in the off-line files transmission equipment of the embodiment of the present invention.The present invention for example can also be embodied as, for carrying out part or all equipment or terminal equipment program (, first terminal device program and first terminal device program product) of method as described herein.Realizing program of the present invention and can be stored in first terminal device-readable medium like this, or can there is the form of one or more signal.Such signal can be downloaded and obtain from internet website, or provides on carrier signal, or provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment in the situation that do not depart from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed as element or step in the claims.Being positioned at word " " before element or " one " does not get rid of and has a plurality of such elements.The present invention can be by means of including the hardware of some different elements and realizing by means of the first terminal equipment of suitably programming.In having enumerated the unit claim of some terminal equipments, several in these terminal equipments can be to carry out imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title by these word explanations.
Embodiments of the invention disclose a kind of method that A1, off-line files transmit, and comprising:
When first terminal equipment does not detect the access of the second terminal equipment, at first terminal equipment side, by suspension window, file destination resource is sent in first server;
At first terminal equipment side, receive the download address of the described file destination resource that described first server returns, the download address of described file destination resource is that described first server generates according to described file destination resource;
Download address at first terminal equipment side according to described file destination resource builds packets of information and is sent in second server.
A2, the method as described in A1, also comprised described before first terminal equipment side is sent to the step in first server by suspension window by file destination resource:
Detect the assigned operation that user initiates for suspension window, described assigned operation comprises that user is drawn file destination resource the operation of suspension window, and/or, user clicks the selected button of file on suspension window, the operation in the path of select target file resource in the file path selection window ejecting at first terminal equipment;
Whether when described assigned operation being detected, sending reminder message inquiry user needs off-line to send file destination resource;
The described step by suspension window, file destination resource being sent in first server at first terminal equipment side comprises:
At the off-line that receives user's transmission, confirm, after instruction, by suspension window, described file destination resource to be sent in first server, the confirmation off-line that described off-line confirmation instruction is indicated for user sends the instruction of described file destination resource.
A3, the method as described in A2, the described step by suspension window, file destination resource being sent in first server at first terminal equipment side comprises:
At first terminal equipment side, according to described user, for the assigned operation spanned file of suspension window, send request;
At first terminal equipment side, described file is sent request and is sent in first server;
At first terminal equipment side, receive the file response message that described first server is returned;
At first terminal equipment side, according to described file response message, described file destination resource is sent in first server.
A4, the method as described in A3, the described step according to described file response message, described file destination resource being sent in first server at first terminal equipment side comprises:
First terminal equipment side according to described file response message to described file destination resource is encrypted;
File destination resource after described encryption is sent in first server.
A5, the method as described in A1, described file destination resource is that the file resource that first terminal side is sent according to user is selected the file resource that instruction obtains; The download instruction to certain file resource that the selected instruction of described file resource is selected in the file resource download list of first terminal equipment side displaying for user, or, the selected instruction to certain file resource that the selected instruction of described file resource is selected in the file resource of first terminal equipment side storage for user.
A6, the method as described in A1, the described download address structure packets of information in the described file destination resource of first terminal equipment side foundation the step being sent in second server comprise:
At first terminal equipment side, obtain the file attribute information of described file destination resource;
At first terminal equipment side, build the download address of described file destination resource and the packets of information of described file attribute information;
At first terminal equipment side, described packets of information is sent in second server.
A7, the method as described in A1, also comprise:
At first terminal equipment side, receive the validation of information instruction that the 3rd server sends;
At first terminal equipment side, described validation of information instruction is showed to user;
Receive the confirmation that user selects, and described confirmation is sent in second server.
A8, the method as described in A7, described validation of information instruction comprises the sign of the second terminal equipment, described confirmation comprises the first confirmation and the second confirmation, and the second terminal equipment of the sign correspondence that described the first confirmation is described the second terminal equipment of confirmation selected according to user is the information that file recipient generates; The second terminal equipment that described the second confirmation is the sign correspondence of not confirming described the second terminal equipment selected according to user is the information that file recipient generates.
A9, the method as described in A1, also comprise:
At first terminal equipment side spanned file, send list, described file sends the list that list becomes for carry out the file destination resource organizations of off-line transmission by described suspension window.
A10, the method as described in A9, described file sends to be had file for each file destination resource in list and sends state information, described file send state information comprise the state that successfully sends, send state, etc. state to be sent and send status of fail.
A11, the method as described in A1, the file attribute information of described file destination resource also comprise the size of file destination resource, the version number of the type of file destination resource, file destination resource, the sign of file destination resource.
A12, the method as described in A11, the type of described file destination resource comprises theme, wallpaper, the tinkle of bells, software, music, game, video, e-book.
A13, the method as described in A4 to 12 any one, described first server is file server, and described second server is application server, and described the 3rd server is push server.
Embodiments of the invention also disclose a kind of method that B14, off-line files transmit, and comprising:
At second server side joint, receive the packets of information that first terminal equipment side sends;
Described second server obtains the sign of described first terminal equipment;
In the default incidence relation list of second server side, search the sign that has the second terminal equipment of incidence relation with the sign of described first terminal equipment;
In second server side, according to the sign spanned file of described the second terminal equipment, obtaining message is sent in the 3rd server.
B15, the method as described in B14, obtain before message is sent to the step in the 3rd server at the sign spanned file of described the second terminal equipment of described foundation, also comprises:
At second server adnation, become validation of information instruction;
In second server side, described validation of information instruction is sent in the 3rd server, by the 3rd server, is sent to first terminal equipment side;
At second server side joint, receive the confirmation that first terminal equipment returns.
B16, the method as described in B15, described validation of information instruction comprises the sign of the second terminal equipment, described confirmation comprises the first confirmation and the second confirmation, and the second terminal equipment of the sign correspondence that described the first confirmation is described the second terminal equipment of confirmation selected according to user is the information that file recipient generates; The second terminal equipment that described the second confirmation is the sign correspondence of not confirming described the second terminal equipment selected according to user is the information that file recipient generates;
Described method also comprises:
If described confirmation is the first confirmation, the described sign spanned file at described the second terminal equipment of second server side foundation of execution obtains message and is sent to the step in the 3rd server;
If described confirmation is the second confirmation, at second server, stress newly to obtain the sign of the second terminal equipment.
Embodiments of the invention also disclose a kind of method that C17, off-line files transmit, and comprising:
At the 3rd server side, receive the file acquisition message that second server sends, described file acquisition message comprises the sign of the second terminal equipment;
The second terminal equipment of sign correspondence that described the second terminal equipment detected at the 3rd server side when online, is sent to described the second terminal equipment side by described file acquisition message.
C18, the method as described in C17, the online step of the second terminal equipment of the sign correspondence of described the second terminal equipment of described detection comprises:
At the 3rd server side, obtain the sign of all terminal equipments that accessed;
In judging the sign of terminal equipment of described all accesses, the 3rd server side whether there is the terminal equipment identical with the sign of described the second terminal equipment;
If so, the second terminal equipment of sign correspondence of judging described the second terminal equipment is online.
C19, the method as described in C17, also comprise:
At the 3rd server side, receive the validation of information instruction that second server sends; At the 3rd server side, described validation of information instruction is sent in first terminal equipment.
Embodiments of the invention also disclose a kind of method that D20, off-line files transmit, and comprising:
In the second terminal equipment side, receive the file acquisition message that the 3rd server sends;
In the second terminal equipment side, according to described file acquisition message, obtain corresponding packets of information from second server, described packets of information comprises 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, download corresponding file destination resource.
D21, the method as described in D20, described packets of information comprises file attribute information, described file attribute information comprises the type of file destination resource, the type of described file destination resource comprises theme, wallpaper, the tinkle of bells, software, music, game, video, e-book, and described method also comprises:
If the type of described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book, described file destination resource is stored in to the second terminal equipment side;
If the type of described file destination resource is software and/or game, described file destination resource is directly installed.
D22, the method as described in D20, before the step of the described file acquisition message sending at the second terminal equipment side reception the 3rd server, also comprise:
In the second terminal equipment side, monitor network state, described network state comprises that current network can use;
If current network can be used, in the second terminal equipment side, connect current network;
In the second terminal equipment side, connect described the 3rd server.
D23, the method as described in D22, if described the second terminal equipment is mobile device, the described step in the second terminal equipment side monitoring network state comprises:
In described the second terminal equipment side registered network state variation, receive service ConnctionChangeReceiver;
In the second terminal equipment side, adopt described network state to change and receive the broadcast CONNECTIVITY_CHANGE that service ConnctionChangeReceiver receiving system service SystemService sends;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, judge that current network can use;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, judge that current network is unavailable.
D24, the method as described in D22, if described the second terminal equipment is computing equipment, the described step in the second terminal equipment side monitoring network state comprises:
In the second terminal equipment side, call network interface API and inquire about current network state.
Embodiments of the invention also disclose E25, a kind of terminal equipment for off-line files transmission, comprising:
File destination resource sending module, is suitable for, when first terminal equipment does not detect the access of the second terminal equipment, at first terminal equipment side, by suspension window, file destination resource being sent in first server;
Download address receiver module, is suitable for receiving at first terminal equipment side the download address of the described file destination resource that described first server returns, and the download address of described file destination resource is that described first server generates according to described file destination resource;
Download address sending module, is suitable for the download address according to described file destination resource at first terminal equipment side and builds packets of information and be sent in second server.
E26, the terminal equipment as described in E25, also comprise:
Detection module, be suitable for described in first terminal equipment side is sent to first server by suspension window by file destination resource before, detect the assigned operation that user initiates for suspension window, described assigned operation comprises that user is drawn file destination resource the operation of suspension window, and/or, user clicks the selected button of file on suspension window, the operation in the path of select target file resource in the file path selection window ejecting at first terminal equipment;
Reminder message sending module, is suitable for when described assigned operation being detected, and whether send reminder message inquiry user needs off-line to send file destination resource;
Described file destination resource sending module is also suitable for:
At the off-line that receives user's transmission, confirm, after instruction, by suspension window, described file destination resource to be sent in first server, the confirmation off-line that described off-line confirmation instruction is indicated for user sends the instruction of described file destination resource.
E27, the terminal equipment as described in E26, described file destination resource sending module is also suitable for:
At first terminal equipment side, according to described user, for the assigned operation spanned file of suspension window, send request;
At first terminal equipment side, described file is sent request and is sent in first server;
At first terminal equipment side, receive the file response message that described first server is returned;
At first terminal equipment side, according to described file response message, described file destination resource is sent in first server.
E28, the terminal equipment as described in E27, described file destination resource sending module is also suitable for:
First terminal equipment side according to described file response message to described file destination resource is encrypted;
File destination resource after described encryption is sent in first server.
E29, the terminal equipment as described in E25, described file destination resource is that the file resource that first terminal side is sent according to user is selected the file resource that instruction obtains; The download instruction to certain file resource that the selected instruction of described file resource is selected in the file resource download list of first terminal equipment side displaying for user, or, the selected instruction to certain file resource that the selected instruction of described file resource is selected in the file resource of first terminal equipment side storage for user.
E30, the terminal equipment as described in E25, described download address sending module is also suitable for:
At first terminal equipment side, obtain the file attribute information of described file destination resource;
At first terminal equipment side, build the download address of described file destination resource and the packets of information of described file attribute information;
At first terminal equipment side, described packets of information is sent in second server.
E31, the terminal equipment as described in E25, also comprise:
Validation of information instruction sending module, is suitable for receiving at first terminal equipment side the validation of information instruction that the 3rd server sends;
Display module, is suitable for, at first terminal equipment side, described validation of information instruction is showed to user;
Confirmation receiver module, is suitable for receiving the confirmation that user selects, and described confirmation is sent in second server.
E32, the terminal equipment as described in E31, described validation of information instruction comprises the sign of the second terminal equipment, described confirmation comprises the first confirmation and the second confirmation, and the second terminal equipment of the sign correspondence that described the first confirmation is described the second terminal equipment of confirmation selected according to user is the information that file recipient generates; The second terminal equipment that described the second confirmation is the sign correspondence of not confirming described the second terminal equipment selected according to user is the information that file recipient generates.
E33, the terminal equipment as described in E25, also comprise:
File sends list generation module, is suitable for sending list at first terminal equipment side spanned file, and described file sends the list that list becomes for carry out the file destination resource organizations of off-line transmission by described suspension window.
E34, the terminal equipment as described in E33, described file sends to be had file for each file destination resource in list and sends state information, described file send state information comprise the state that successfully sends, send state, etc. state to be sent and send status of fail.
E35, the terminal equipment as described in E25, the file attribute information of described file destination resource also comprise the size of file destination resource, the version number of the type of file destination resource, file destination resource, the sign of file destination resource.
E36, the terminal equipment as described in E35, the type of described file destination resource comprises theme, wallpaper, the tinkle of bells, software, music, game, video, e-book.
E37, the terminal equipment as described in E28 to 36 any one, described first server is file server, and described second server is application server, and described the 3rd server is push server.
Embodiments of the invention also disclose F38, a kind of server for off-line files transmission, comprising:
Packets of information receiver module, is suitable for receiving at second server side joint the packets of information that first terminal equipment side sends;
Device identification acquisition module, is suitable for the sign that described second server obtains described first terminal equipment;
Module is searched in device identification, is suitable for searching the sign that has the second terminal equipment of incidence relation with the sign of described first terminal equipment in the default incidence relation list of second server side;
The first file acquisition message transmission module, is suitable for according to the sign spanned file of described the second terminal equipment, obtaining message in second server side and is sent in the 3rd server.
F39, the server as described in F38, also comprise:
Validation of information instruction generation module, be suitable for sign spanned file at described the second terminal equipment of described foundation obtain message be sent to the 3rd server in before, at second server adnation, become validation of information instruction;
Validation of information instruction sending module, is suitable in second server side, described validation of information instruction being sent in the 3rd server, by the 3rd server, is sent to first terminal equipment side;
Acknowledge message receiver module, is suitable for receiving at second server side joint the confirmation that first terminal equipment returns.
F40, the server as described in F39, described validation of information instruction comprises the sign of the second terminal equipment, described confirmation comprises the first confirmation and the second confirmation, and the second terminal equipment of the sign correspondence that described the first confirmation is described the second terminal equipment of confirmation selected according to user is the information that file recipient generates; The second terminal equipment that described the second confirmation is the sign correspondence of not confirming described the second terminal equipment selected according to user is the information that file recipient generates;
Described server also comprises:
Calling module, is suitable for when described confirmation is the first confirmation, calls the first file acquisition message transmission module;
Identifier acquisition module, is suitable for, when described confirmation is the second confirmation, stressing newly to obtain the sign of the second terminal equipment at second server.
Embodiments of the invention also disclose G41, a kind of server for off-line files transmission, comprising:
The first file acquisition message sink module, is suitable for receiving at the 3rd server side the file acquisition message that second server sends, and described file acquisition message comprises the sign of the second terminal equipment;
The second file acquisition message transmission module, the second terminal equipment of sign correspondence that is suitable for described the second terminal equipment being detected at the 3rd server side when online, is sent to described the second terminal equipment side by described file acquisition message.
G42, the server as described in G41, described the second file acquisition message transmission module is also suitable for:
At the 3rd server side, obtain the sign of all terminal equipments that accessed;
In judging the sign of terminal equipment of described all accesses, the 3rd server side whether there is the terminal equipment identical with the sign of described the second terminal equipment;
If so, the second terminal equipment of sign correspondence of judging described the second terminal equipment is online.
G43, the server as described in G41, also comprise:
Validation of information command reception module, is suitable for receiving at the 3rd server side the validation of information instruction that second server sends;
Validation of information instruction sending module, is suitable at the 3rd server side, described validation of information instruction being sent in first terminal equipment.
Embodiments of the invention also disclose H44, a kind of terminal equipment for off-line files transmission, comprising:
The second file acquisition message sink module, is suitable for receiving in the second terminal equipment side the file acquisition message that the 3rd server sends;
Packets of information acquisition module, is suitable for according to described file acquisition message, obtaining corresponding packets of information in the second terminal equipment side from second server, and described packets of information comprises the download address of file destination resource;
File destination resource downloading module, is suitable for according to the download address of described file destination resource, downloading corresponding file destination resource in the second terminal equipment side from first server.
H45, the terminal equipment as described in H44, described packets of information comprises file attribute information, described file attribute information comprises the type of file destination resource, the type of described file destination resource comprises theme, wallpaper, the tinkle of bells, software, music, game, video, e-book, and described terminal equipment also comprises:
If the type of described file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book, described file destination resource is stored in to the second terminal equipment side;
If the type of described file destination resource is software and/or game, described file destination resource is directly installed.
H46, the terminal equipment as described in H44, also comprise:
Monitor module, be suitable for before the second terminal equipment side receives the file acquisition message that the 3rd server sends, in the second terminal equipment side, monitoring network state described, described network state comprises that current network can use;
The first link block, can use if be suitable for current network, in the second terminal equipment side, connects current network;
The second link block, is suitable for connecting described the 3rd server in the second terminal equipment side.
H47, the terminal equipment as described in H46, described the second terminal equipment is mobile device, described monitoring module is also suitable for:
In described the second terminal equipment side registered network state variation, receive service ConnctionChangeReceiver;
In the second terminal equipment side, adopt described network state to change and receive the broadcast CONNECTIVITY_CHANGE that service ConnctionChangeReceiver receiving system service SystemService sends;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, judge that current network can use;
If the Boolean that the method wifiNetInfo.isConnected () that described broadcast CONNECTIVITY_CHANGE calls returns is true, judge that current network is unavailable.
H48, the method as described in H46, if described the second terminal equipment is computing equipment, the described step in the second terminal equipment side monitoring network state comprises:
In the second terminal equipment side, call network interface API and inquire about current network state.
Embodiments of the invention also disclose the system that I49, a kind of off-line files transmit, and comprising: first terminal equipment, file server, application server, and push server, the second terminal equipment, wherein,
Described first terminal equipment, be suitable for when first terminal equipment does not detect the access of the second terminal equipment, by suspension window, file destination resource to be sent is sent in file server, and receive the download address of the described file destination resource that described file server returns, and, the download address of described file destination resource is built to packets of information and be sent in application server;
Described file server, is suitable for receiving described file destination resource, according to described file destination resource, generates the download address of corresponding file destination resource and is sent in first terminal equipment;
Described application server, be suitable for receiving described packets of information, according to being identified at of the first terminal equipment carrying in described packets of information, in default incidence relation list, search the sign that has the second terminal equipment of incidence relation with the sign of described first terminal equipment, and the sign spanned file of described the second terminal equipment of foundation obtains message and is sent in push server;
Described push server, is suitable for when online, described file acquisition message being sent to described the second terminal equipment side at the second terminal equipment of sign correspondence that described the second terminal equipment detected;
Described the second terminal equipment, is suitable for from application server, obtaining corresponding packets of information according to described file acquisition message, and the download address of the file destination resource of carrying according to described packets of information is downloaded corresponding file destination resource from file server.
I50, the system as described in I49, described first terminal equipment is also suitable for:
According to user, for the assigned operation spanned file of suspension window, send request;
Described file is sent request and is sent in file server;
Receive the file response message that described file server returns;
According to described file response message, described file destination resource is sent in file server.
I51, the system as described in I49, the file attribute information of described file destination resource also comprise the size of file destination resource, the version number of the type of file destination resource, file destination resource, the sign of file destination resource.
I52, the system as described in I51, the type of described file destination resource comprises theme, wallpaper, the tinkle of bells, software, music, game, video, e-book.
I53, the system as described in I52, described the second terminal equipment is also suitable for:
Type in described file destination resource is the theme, when wallpaper, the tinkle of bells, music, video, e-book, described file destination resource is stored in to the second terminal equipment side;
When the type of described file destination resource is software and/or game, described file destination resource is directly installed.