CN103634392B - Method, system, terminal equipment and servers for offline file transmission - Google Patents
Method, system, terminal equipment and servers for offline file transmission Download PDFInfo
- Publication number
- CN103634392B CN103634392B CN201310612011.0A CN201310612011A CN103634392B CN 103634392 B CN103634392 B CN 103634392B CN 201310612011 A CN201310612011 A CN 201310612011A CN 103634392 B CN103634392 B CN 103634392B
- Authority
- CN
- China
- Prior art keywords
- file
- terminal equipment
- server
- resource
- destination resource
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 138
- 238000000034 method Methods 0.000 title claims abstract description 98
- 239000000725 suspension Substances 0.000 claims abstract description 98
- 238000012790 confirmation Methods 0.000 claims description 157
- 230000004044 response Effects 0.000 claims description 42
- 238000010200 validation analysis Methods 0.000 claims description 38
- 238000001514 detection method Methods 0.000 claims description 11
- 230000008859 change Effects 0.000 description 14
- 238000003860 storage Methods 0.000 description 12
- 238000005516 engineering process Methods 0.000 description 7
- 238000012544 monitoring process Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000005484 gravity Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000004913 activation Effects 0.000 description 2
- VJYFKVYYMZPMAB-UHFFFAOYSA-N ethoprophos Chemical compound CCCSP(=O)(OCC)SCCC VJYFKVYYMZPMAB-UHFFFAOYSA-N 0.000 description 2
- 230000000977 initiatory effect Effects 0.000 description 2
- 230000006855 networking Effects 0.000 description 2
- 238000012384 transportation and delivery Methods 0.000 description 2
- 238000005299 abrasion Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
- H04L67/5683—Storage of data provided by user terminals, i.e. reverse caching
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephonic Communication Services (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method, a system, terminal equipment and servers for offline file transmission. The method comprises the steps of when the first terminal equipment does not detect the accessing of the second terminal equipment, sending a target file source to the first server by a suspension window at the first terminal equipment side; receiving the downloading address of the target file source returned by the first server at the first terminal equipment side, wherein the downloading address of the target file source is generated by the first server according to the target file source; constructing an information packet at the first terminal equipment side according to the downloading address of the target file source, and sending into the second server. According to the method, the system, the terminal equipment and the servers for the offline file transmission, the limitation on the file source transmission is reduced and the user experience is improved.
Description
Technical field
The present invention relates to file transfer technology field, and in particular to a kind of method of offline file transmission, it is a kind of be used for from
A kind of terminal unit, system of offline file transmission of line file transmission, and a kind of server for offline file transmission.
Background technology
With the fast development of mobile communication technology, such as mobile phone mobile device has been widely used in study, amusement, work
The aspects such as work, play more and more important role in daily life.
Because the function of mobile device is more and more various, therefore it is accomplished by being connected with computing device, carries out data transmission.Example
Such as, the office document in computing device is transferred in mobile device, it is convenient to check at any time;And for example, by the photograph in mobile device
Piece etc. is transferred in computing device, carries out the operation such as image procossing, preservation.
Generally, mobile device can be attached using data wire and computing device, at this point it is possible to mobile device is regarded as
It is a movable storage device in computing device, so as to pass through data wire mobile device and computing device can be made to realize data
Transmission.But the connection of equipment and computing device is moved by way of data wire, needs the moment to carry data wire, operation fiber crops
It is tired, and life-time service is easily caused USB interface abrasion.
Therefore, the mode that wireless connection is carried out between mobile device and computing device is arisen at the historic moment.For wireless connection
Speech, mainly there is situations below:
1st, there is wireless routing
This mode is that mobile device is connected to route by wifi, and computing device is connected to route by wifi or netting twine;
Ftp services are opened with softwares such as websharing, virtual data line, file great masters on mobile device, with browsing in computing device
Device is opened after ftp, carries out file transmission.
2nd, without wireless routing, computing device has wireless network card
2.1 wireless network cards support mywifi technologies
Computing device is set to wifi hotspot(Arrange by hand under xp, arrange by hand or soft with connectify under win7
Part), mobile device is connected to computing device by wifi;Websharing, virtual data line, file great master are used on the mobile apparatus
Ftp services are opened Deng software, the laggard style of writing part transmission of ftp is opened with browser in computing device.
2.2 wireless network cards do not support mywifi technologies
Mobile device wifi hotspot is opened, computing device is connected to mobile device by wifi;Use on the mobile apparatus
The softwares such as websharing, virtual data line, file great master open ftp services, open ftp with browser in computing device laggard
Style of writing part transmission.
However, in the case of wireless connection, when needing computing device to be in presence simultaneously with mobile device, Cai Neng
The transmission of file is carried out between both sides, if the recipient of file is not online, just recipient cannot be successfully sent the file to, from
And inconvenience is brought to user, reduce Consumer's Experience.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome the problems referred to above or at least in part solve on
The method and a kind of corresponding system of offline file transmission, one kind of a kind of offline file transmission of problem are stated for off-line files
The terminal unit of transmission, a kind of server for offline file transmission.
According to one aspect of the present invention, there is provided a kind of method of offline file transmission, including:
When first terminal equipment is not detected by the access of second terminal equipment, in first terminal equipment side by suspending
Window sends file destination resource into first server;
The download address of the file destination resource that the first server is returned, institute are received in first terminal equipment side joint
The download address for stating file destination resource is generated for the first server according to the file destination resource;
Packet is built in first terminal equipment side according to the download address of the file destination resource and send to second
In server.
Alternatively, in first terminal equipment side file destination resource is sent to first service by suspension windows described
Before step in device, also include:
The assigned operation that detection user initiates for suspension windows, the assigned operation includes user by file destination resource
The operation of suspension windows is drawn, and/or, the file that user is clicked in suspension windows selectes button, in first terminal equipment bullet
The operation in the path of selection target file resource in the file path selection window for going out;
When the assigned operation is detected, send reminder message and ask the user whether to need to send file destination money offline
Source;
It is described that file destination resource is sent the step into first server by suspension windows in first terminal equipment side
Suddenly include:
Receive user transmission offline confirmation instruction after, by suspension windows by the file destination resource send to
In first server, the offline confirmation for confirming that instruction is user's instruction sends offline the instruction of the file destination resource.
Alternatively, it is described file destination resource to be sent to first server by suspension windows in first terminal equipment side
In step include:
File is generated in first terminal equipment side for the assigned operation of suspension windows according to the user send request;
The file is sent into request in first terminal equipment side to send into first server;
The file response message that the first server is returned is received in first terminal equipment side joint;
In first terminal equipment side the file destination resource is sent to first service according to the file response message
In device.
Alternatively, it is described to send the file destination resource according to the file response message in first terminal equipment side
Step into first server includes:
In first terminal equipment side according to the file response message to the file destination resource is encrypted;
File destination resource after the encryption is sent into first server.
Alternatively, the file destination resource is that instruction acquisition is selected in first terminal side according to the file resource that user sends
File resource;The file resource select instruction for user in the file resource download list that first terminal equipment side shows
The download instruction to certain file resource for selecting, or, the selected instruction of the file resource is user in first terminal equipment side
The selected instruction to certain file resource selected in the file resource of storage.
Alternatively, it is described to build packet simultaneously according to the download address of the file destination resource in first terminal equipment side
The step sent into second server includes:
The file attribute information of the file destination resource is obtained in first terminal equipment side;
The download address of the file destination resource and the file attribute information are built in first terminal equipment side
Packet;
Described information bag is sent into second server in first terminal equipment side.
Alternatively, methods described also includes:
The validation of information instruction that the 3rd server sends is received in first terminal equipment side joint;
Described information confirmation instruction is showed into user in first terminal equipment side;
The confirmation that receive user is selected, and the confirmation is sent into second server.
Alternatively, described information confirms that instruction includes the mark of second terminal equipment, and the confirmation includes that first is true
Recognize information and the second confirmation, first confirmation is the confirmation second terminal equipment selected according to user
Identify the information that corresponding second terminal equipment is generated for file reception side;Second confirmation is to select according to user
The information that generates for file reception side of the corresponding second terminal equipment of mark for not confirming the second terminal equipment.
Alternatively, methods described also includes:
File transmission list is generated in first terminal equipment side, the file transmission list is to enter by the suspension windows
The list that the offline file destination resource for sending of row is organized into.
Alternatively, for each file destination resource there is file to send status information, institute in the file transmission list
State file send status information include be successfully transmitted state, sending state, etc. state to be sent and send status of fail.
Alternatively, size, target text of the file attribute information of the file destination resource also including file destination resource
The type of part resource, the version number of file destination resource, the mark of file destination resource.
Alternatively, the type of the file destination resource include theme, wallpaper, the tinkle of bells, software, music, game, video,
E-book.
Alternatively, the first server be file server, the second server be application server, the described 3rd
Server is push server.
According to a further aspect in the invention, there is provided a kind of method of offline file transmission, including:
The packet that first terminal equipment side sends is received in second server side joint;
The second server obtains the mark of the first terminal equipment;
Search in the default incidence relation list of second server side and exist with the mark of the first terminal equipment
The mark of the second terminal equipment of incidence relation;
File acquisition message is generated in second server side according to the mark of the second terminal equipment to send to the 3rd clothes
In business device.
Alternatively, generate file acquisition message in the mark according to the second terminal equipment to send to the 3rd service
Before step in device, also include:
Validation of information instruction is generated in second server side;
Second server side by described information confirm instruction send into the 3rd server, by the 3rd server send to
First terminal equipment side;
The confirmation that first terminal equipment is returned is received in second server side joint.
Alternatively, described information confirms that instruction includes the mark of second terminal equipment, and the confirmation includes that first is true
Recognize information and the second confirmation, first confirmation is the confirmation second terminal equipment selected according to user
Identify the information that corresponding second terminal equipment is generated for file reception side;Second confirmation is to select according to user
The information that generates for file reception side of the corresponding second terminal equipment of mark for not confirming the second terminal equipment;
Methods described also includes:
If the confirmation is the first confirmation, in second server side according to the second terminal described in execution
The mark of equipment generates file acquisition message and sends the step into the 3rd server;
If the confirmation is the second confirmation, in second server side the mark of second terminal equipment is reacquired
Know.
According to a further aspect in the invention, there is provided a kind of method of offline file transmission, including:
The file acquisition message that second server sends is received in the 3rd server side, the file acquisition message includes the
The mark of two terminal units;
In the corresponding second terminal equipment on-line of mark that the 3rd server side detects the second terminal equipment, will
The file acquisition message is sent to the second terminal equipment side.
Alternatively, the step of mark of the detection second terminal equipment corresponding second terminal equipment on-line is wrapped
Include:
The mark of all terminal units for having accessed is obtained in the 3rd server side;
Judge in the 3rd server side all accesses terminal unit mark in whether there is and described second eventually
The mark identical terminal unit of end equipment;
If so, the corresponding second terminal equipment on-line of mark of the second terminal equipment is then judged.
Alternatively, methods described also includes:
The validation of information instruction that second server sends is received in the 3rd server side;In the 3rd server side by the letter
Breath confirms that instruction is sent into first terminal equipment.
According to a further aspect in the invention, there is provided a kind of method of offline file transmission, including:
The file acquisition message that the 3rd server sends is received in second terminal equipment side joint;
Corresponding packet, institute are obtained from second server according to the file acquisition message in second terminal equipment side
State download address of the packet including file destination resource;
Correspondence is downloaded from first server according to the download address of the file destination resource in second terminal equipment side
File destination resource.
Alternatively, described information bag includes file attribute information, and the file attribute information includes file destination resource
Type, the type of the file destination resource includes theme, wallpaper, the tinkle of bells, software, music, game, video, e-book, described
Method also include:
If the type of the file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book, by the mesh
Mark file resource is stored in second terminal equipment side;
If the type of the file destination resource is software and/or game, the file destination resource is mounted directly.
Alternatively, it is described second terminal equipment side joint receive the 3rd server send file acquisition message the step of it
Before, also include:
Network state is monitored in second terminal equipment side, the network state is available including current network;
If current network can use, in second terminal equipment side current network is connected;
Connect the 3rd server in second terminal equipment side.
Alternatively, it is described to monitor network state in second terminal equipment side if the second terminal equipment is mobile device
The step of include:
Service ConnctionChangeReceiver is received in the second terminal equipment side registered network state change;
Service ConnctionChangeReceiver is received in second terminal equipment side using network state change to connect
Receive the broadcast CONNECTIVITY_CHANGE that system service SystemService sends;
If method wifiNetInfo.isConnected () that the broadcast CONNECTIVITY_CHANGE is called is returned
Boolean be it is true, then judge current network can use;
If method wifiNetInfo.isConnected () that the broadcast CONNECTIVITY_CHANGE is called is returned
Boolean be it is true, then judge current network it is unavailable.
Alternatively, it is described to monitor network state in second terminal equipment side if the second terminal equipment is computing device
The step of include:
Network interface API is called to inquire about current network state in second terminal equipment side.
According to a further aspect in the invention, there is provided a kind of terminal unit for offline file transmission, including:
File destination resource sending module, is suitable to be not detected by the access of second terminal equipment in first terminal equipment
When, in first terminal equipment side file destination resource is sent into first server by suspension windows;
Download address receiver module, is suitable to receive the target that the first server is returned in first terminal equipment side joint
The download address of file resource, the download address of the file destination resource is the first server according to the file destination
Resource is generated;
Download address sending module, is suitable to the download address structure according to the file destination resource in first terminal equipment side
Build packet and send into second server.
Alternatively, the terminal unit also includes:
Detection module, is suitable to file destination resource be sent to by suspension windows in first terminal equipment side described
Before in one server, the assigned operation that user initiates for suspension windows is detected, the assigned operation includes user by target
File resource is drawn the operation of suspension windows, and/or, the file that user is clicked in suspension windows selectes button, first eventually
The operation in the path of selection target file resource in the file path selection window that end equipment is ejected;
Reminder message sending module, is suitable to, when the assigned operation is detected, send reminder message and ask the user whether
Need offline transmission file destination resource;
The file destination resource sending module is further adapted for:
Receive user transmission offline confirmation instruction after, by suspension windows by the file destination resource send to
In first server, the offline confirmation for confirming that instruction is user's instruction sends offline the instruction of the file destination resource.
Alternatively, the file destination resource sending module is further adapted for:
File is generated in first terminal equipment side for the assigned operation of suspension windows according to the user send request;
The file is sent into request in first terminal equipment side to send into first server;
The file response message that the first server is returned is received in first terminal equipment side joint;
In first terminal equipment side the file destination resource is sent to first service according to the file response message
In device.
Alternatively, the file destination resource sending module is further adapted for:
In first terminal equipment side according to the file response message to the file destination resource is encrypted;
File destination resource after the encryption is sent into first server.
Alternatively, the file destination resource is that instruction acquisition is selected in first terminal side according to the file resource that user sends
File resource;The file resource select instruction for user in the file resource download list that first terminal equipment side shows
The download instruction to certain file resource for selecting, or, the selected instruction of the file resource is user in first terminal equipment side
The selected instruction to certain file resource selected in the file resource of storage.
Alternatively, the download address sending module is further adapted for:
The file attribute information of the file destination resource is obtained in first terminal equipment side;
The download address of the file destination resource and the file attribute information are built in first terminal equipment side
Packet;
Described information bag is sent into second server in first terminal equipment side.
Alternatively, the terminal unit also includes:
Validation of information instruction sending module, is suitable to receive the validation of information that the 3rd server sends in first terminal equipment side joint
Instruction;
Display module, is suitable to that described information confirmation instruction is showed into user in first terminal equipment side;
Confirmation receiver module, is suitable to the confirmation of receive user selection, and the confirmation is sent to the
In two servers.
Alternatively, described information confirms that instruction includes the mark of second terminal equipment, and the confirmation includes that first is true
Recognize information and the second confirmation, first confirmation is the confirmation second terminal equipment selected according to user
Identify the information that corresponding second terminal equipment is generated for file reception side;Second confirmation is to select according to user
The information that generates for file reception side of the corresponding second terminal equipment of mark for not confirming the second terminal equipment.
Alternatively, the terminal unit also includes:
File transmission list generation module, is suitable to generate file transmission list in first terminal equipment side, and the file is sent out
Send the list that list is that the file destination resource for carrying out offline transmission by the suspension windows is organized into.
Alternatively, for each file destination resource there is file to send status information, institute in the file transmission list
State file send status information include be successfully transmitted state, sending state, etc. state to be sent and send status of fail.
Alternatively, size, target text of the file attribute information of the file destination resource also including file destination resource
The type of part resource, the version number of file destination resource, the mark of file destination resource.
Alternatively, the type of the file destination resource include theme, wallpaper, the tinkle of bells, software, music, game, video,
E-book.
Alternatively, the first server be file server, the second server be application server, the described 3rd
Server is push server.
According to a further aspect in the invention, there is provided a kind of server for offline file transmission, including:
Packet receiver module, is suitable to receive the packet that first terminal equipment side sends in second server side joint;
Device identification acquisition module, is suitable to the mark that the second server obtains the first terminal equipment;
Device identification searching modul, is suitable to search in the default incidence relation list of second server side and described
There is the mark of the second terminal equipment of incidence relation in the mark of one terminal unit;
First file acquisition message transmission module, is suitable to the mark according to the second terminal equipment in second server side
Generate file acquisition message to send into the 3rd server.
Alternatively, the server also includes:
Validation of information directive generation module, is suitable to generate file acquisition in the mark according to the second terminal equipment
Before message is sent into the 3rd server, in second server side validation of information instruction is generated;
Validation of information instruction sending module, is suitable to that described information is confirmed into instruction is sent to the 3rd clothes in second server side
In business device, sent to first terminal equipment side by the 3rd server;
Confirm message reception module, be suitable to receive the confirmation that first terminal equipment is returned in second server side joint.
Alternatively, described information confirms that instruction includes the mark of second terminal equipment, and the confirmation includes that first is true
Recognize information and the second confirmation, first confirmation is the confirmation second terminal equipment selected according to user
Identify the information that corresponding second terminal equipment is generated for file reception side;Second confirmation is to select according to user
The information that generates for file reception side of the corresponding second terminal equipment of mark for not confirming the second terminal equipment;
The server also includes:
Calling module, is suitable to, when the confirmation is the first confirmation, call the first file acquisition message to send
Module;
Identifier acquisition module, is suitable to, when the confirmation is the second confirmation, stress newly to obtain in second server
Take the mark of second terminal equipment.
According to a further aspect in the invention, there is provided a kind of server for offline file transmission, including:
First file acquisition message reception module, the file for being suitable to receive second server transmission in the 3rd server side is obtained
Message is taken, the file acquisition message includes the mark of second terminal equipment;
Second file acquisition message transmission module, is suitable to detect the mark of the second terminal equipment in the 3rd server side
When knowing corresponding second terminal equipment on-line, the file acquisition message is sent to the second terminal equipment side.
Alternatively, the second file acquisition message transmission module is further adapted for:
The mark of all terminal units for having accessed is obtained in the 3rd server side;
Judge in the 3rd server side all accesses terminal unit mark in whether there is and described second eventually
The mark identical terminal unit of end equipment;
If so, the corresponding second terminal equipment on-line of mark of the second terminal equipment is then judged.
Alternatively, the server also includes:
Validation of information command reception module, the validation of information for being suitable to receive second server transmission in the 3rd server side refers to
Order;
Validation of information instruction sending module, is suitable to that described information is confirmed into instruction is sent to first eventually in the 3rd server side
In end equipment.
According to a further aspect in the invention, there is provided a kind of terminal unit for offline file transmission, including:
Second file acquisition message reception module, is suitable to receive the file that the 3rd server sends in second terminal equipment side joint
Obtain message;
Packet acquisition module, be suitable to second terminal equipment side according to the file acquisition message from second server
Corresponding packet is obtained, described information bag includes the download address of file destination resource;
File destination resource downloading module, is suitable to the download ground according to the file destination resource in second terminal equipment side
Corresponding file destination resource is downloaded from first server in location.
Alternatively, described information bag includes file attribute information, and the file attribute information includes file destination resource
Type, the type of the file destination resource includes theme, wallpaper, the tinkle of bells, software, music, game, video, e-book, described
Terminal unit also include:
If the type of the file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book, by the mesh
Mark file resource is stored in second terminal equipment side;
If the type of the file destination resource is software and/or game, the file destination resource is mounted directly.
Alternatively, the terminal unit also includes:
Monitor module, be suitable to it is described second terminal equipment side joint receive the 3rd server send file acquisition message it
Before, network state is monitored in second terminal equipment side, the network state is available including current network;
First link block, if be suitable to current network can use, in second terminal equipment side current network is connected;
Second link block, is suitable to connect the 3rd server in second terminal equipment side.
Alternatively, if the second terminal equipment is mobile device, the monitoring module is further adapted for:
Service ConnctionChangeReceiver is received in the second terminal equipment side registered network state change;
Service ConnctionChangeReceiver is received in second terminal equipment side using network state change to connect
Receive the broadcast CONNECTIVITY_CHANGE that system service SystemService sends;
If method wifiNetInfo.isConnected () that the broadcast CONNECTIVITY_CHANGE is called is returned
Boolean be it is true, then judge current network can use;
If method wifiNetInfo.isConnected () that the broadcast CONNECTIVITY_CHANGE is called is returned
Boolean be it is true, then judge current network it is unavailable.
Alternatively, it is described to monitor network state in second terminal equipment side if the second terminal equipment is computing device
The step of include:
Network interface API is called to inquire about current network state in second terminal equipment side.
According to a further aspect in the invention, there is provided a kind of system of offline file transmission, including:First terminal equipment,
File server, application server, push server, second terminal equipment, wherein,
The first terminal equipment, is suitable to, when first terminal equipment is not detected by the access of second terminal equipment, lead to
Cross suspension windows file destination resource to be sent to be sent into file server, and receive what the file server was returned
The download address of the file destination resource, and, the download address of the file destination resource is built into packets extremely
In application server;
The file server, is suitable to receive the file destination resource, and according to the file destination resource correspondence is generated
File destination resource download address and send into first terminal equipment;
The application server, is suitable to receive described information bag, according to the first terminal equipment carried in described information bag
Mark there is incidence relation with the mark of the first terminal equipment second is searched in default incidence relation list eventually
The mark of end equipment, and, generate file acquisition message according to the mark of the second terminal equipment and send to push server
In;
The push server, is suitable to exist in the corresponding second terminal equipment of mark for detecting the second terminal equipment
During line, the file acquisition message is sent to the second terminal equipment side;
The second terminal equipment, is suitable to that corresponding information is obtained from application server according to the file acquisition message
Bag, and, the download address of the file destination resource carried according to described information bag downloads corresponding mesh from file server
Mark file resource.
Alternatively, the first terminal equipment is further adapted for:
File is generated according to user for the assigned operation of suspension windows send request;
The file is sent into request to send into file server;
Receive the file response message that the file server is returned;
The file destination resource is sent into file server according to the file response message.
Alternatively, size, target text of the file attribute information of the file destination resource also including file destination resource
The type of part resource, the version number of file destination resource, the mark of file destination resource.
Alternatively, the type of the file destination resource include theme, wallpaper, the tinkle of bells, software, music, game, video,
E-book.
Alternatively, the second terminal equipment is further adapted for:
Be the theme in the type of the file destination resource, wallpaper, the tinkle of bells, music, video, e-book when, by the mesh
Mark file resource is stored in second terminal equipment side;
When the type of the file destination resource is software and/or game, the file destination resource is mounted directly.
Compared with background technology, the present invention has the advantages that:
In the present invention, first terminal equipment and second terminal equipment, can be with differences when the transmission of file resource is carried out
When in presence, i.e. first terminal equipment on-line when first file destination resource is uploaded to into background server, now second
Terminal unit is not necessarily required to online, downloads the file destination in background server again when second terminal equipment on-line and provides
Source, so as to reduce the restriction of file resource transmission, improves Consumer's Experience.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of description, and in order to allow the above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the specific embodiment of the present invention.
Description of the drawings
By the detailed description for reading hereafter preferred implementation, various other advantages and benefit is common for this area
Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, and is not considered as to the present invention
Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical part.In the accompanying drawings:
The step of Fig. 1 shows a kind of embodiment of the method one of offline file transmission of present invention flow chart;
The step of Fig. 2 shows a kind of embodiment of the method two of offline file transmission of present invention flow chart;
The step of Fig. 3 shows a kind of embodiment of the method three of offline file transmission of present invention flow chart;
The step of Fig. 4 shows a kind of embodiment of the method four of offline file transmission of present invention flow chart;
The step of Fig. 5 shows a kind of embodiment of the method five of offline file transmission of present invention flow chart;
Fig. 6 show the present invention a kind of offline file transmission embodiment of the method one in off-line files send remind illustrate
Figure;
Fig. 7 show the present invention a kind of offline file transmission embodiment of the method one in suspension windows assigned operation illustrate
Figure;
Fig. 8 shows and offline in a kind of embodiment of the method one of offline file transmission of the present invention reminds schematic diagram;
Fig. 9 shows a kind of structured flowchart of terminal unit embodiment one for offline file transmission of the present invention;
Figure 10 shows a kind of structured flowchart of server example one for offline file transmission of the present invention;
Figure 11 shows a kind of structured flowchart of server example two for offline file transmission of the present invention;
Figure 12 shows a kind of structured flowchart of terminal unit embodiment two for offline file transmission of the present invention;
Figure 13 shows a kind of structured flowchart of the system embodiment of offline file transmission of the present invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here
Limited.On the contrary, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
With reference to Fig. 1, show the present invention a kind of offline file transmission embodiment of the method one the step of flow chart, this
Bright embodiment is illustrated from first terminal equipment side, wherein, the first terminal equipment is the sender of file destination resource,
The embodiment of the present invention may include steps of:
Step 101, when first terminal equipment is not detected by the access of second terminal equipment, in first terminal equipment side
File destination resource is sent into first server by suspension windows;
Wherein, the file destination resource is that what instruction was obtained selected in first terminal side according to the file resource that user sends
File resource;The file resource is selected instruction and is selected in the file resource download list that first terminal equipment side shows for user
The download instruction to certain file resource selected, or, the file resource is selected instruction and is deposited in first terminal equipment side for user
The selected instruction to certain file resource selected in the file resource of storage.
In one preferred embodiment of the invention, before 101 step, can also include:Detection user is directed to
The assigned operation that suspension windows are initiated, the assigned operation includes that file destination resource is drawn user the behaviour of suspension windows
Make, and/or, the file that user is clicked in suspension windows selectes button, and the file path ejected in first terminal equipment selects window
The operation in the path of selection target file resource in mouthful;
When the assigned operation is detected, send reminder message and ask the user whether to need to send file destination money offline
Source;
The step 101 is specifically as follows:
Receive user transmission offline confirmation instruction after, by suspension windows by the file destination resource send to
In first server, the offline confirmation for confirming that instruction is user's instruction sends offline the instruction of the file destination resource.
In one preferred embodiment of the invention, the step 101 can include following sub-step:
Sub-step S11, generates file and sends according to user in first terminal equipment side for the assigned operation of suspension windows
Request;
Sub-step S12, sends request and sends into first server in first terminal equipment side by the file;
Sub-step S13, in first terminal equipment side joint the file response message that the first server is returned is received;
Sub-step S14, sends the file destination resource according to the file response message in first terminal equipment side
Into first server.
In one preferred embodiment of the invention, sub-step S14 can further include following sub-step:
Sub-step S141, in first terminal equipment side according to the file response message to the file destination resource is entered
Row encryption;
Sub-step S142, the file destination resource after the encryption is sent into first server.
Step 102, in the case where first terminal equipment side joint receives the file destination resource that the first server is returned
Set address, the download address of the file destination resource is generated for the first server according to the file destination resource;
Step 103, builds packet concurrent in first terminal equipment side according to the download address of the file destination resource
In delivering to second server.
In one preferred embodiment of the invention, the step 103 can include following sub-step:
The file attribute information of the file destination resource is obtained in first terminal equipment side;
The download address of the file destination resource and the file attribute information are built in first terminal equipment side
Packet;
Described information bag is sent into second server in first terminal equipment side.
Wherein, the file attribute information of the file destination resource can also include size, the target of file destination resource
The type of file resource, the version number of file destination resource, the mark of file destination resource.
Used as a kind of preferred exemplary of the embodiment of the present invention, the type of the file destination resource includes theme, wallpaper, bell
Sound, software, music, game, video, e-book.
In one preferred embodiment of the invention, methods described can also include:
The validation of information instruction that the 3rd server sends is received in first terminal equipment side joint;
Described information confirmation instruction is showed into user in first terminal equipment side;
The confirmation that receive user is selected, and the confirmation is sent into second server.
In one preferred embodiment of the invention, described information confirms that instruction includes the mark of second terminal equipment, institute
Confirmation is stated including the first confirmation and the second confirmation, first confirmation is to select really according to user
Recognize the information that the corresponding second terminal equipment of mark of the second terminal equipment is generated for file reception side;Described second is true
It is that the corresponding second terminal equipment of the mark for not confirming the second terminal equipment selected according to user connects for file to recognize information
Debit and the information that generates.
In one preferred embodiment of the invention, methods described can also include:
File transmission list is generated in first terminal equipment side, the file transmission list is to enter by the suspension windows
The list that the offline file destination resource for sending of row is organized into.
In one preferred embodiment of the invention, have for each file destination resource in the file transmission list
File sends status information, the file send status information include being successfully transmitted state, sending state, etc. shape to be sent
State and transmission status of fail.
It should be noted that the first server be file server, the second server be application server, institute
The 3rd server is stated for push server.
With reference to Fig. 2, show the present invention a kind of offline file transmission embodiment of the method two the step of flow chart, this
Bright embodiment is illustrated from second server side, wherein, the second server is application server, and the embodiment of the present invention can
To comprise the steps:
Step 201, in second server side joint the packet that first terminal equipment side sends is received;
Step 202, the second server obtains the mark of the first terminal equipment;
Step 203, searches and the first terminal equipment in the default incidence relation list of second server side
There is the mark of the second terminal equipment of incidence relation in mark;
Step 204, generates file acquisition message and sends in second server side according to the mark of the second terminal equipment
Into the 3rd server.
In one preferred embodiment of the invention, before step 203, also include:
Validation of information instruction is generated in second server side;
Second server side by described information confirm instruction send into the 3rd server, by the 3rd server send to
First terminal equipment side;
The confirmation that first terminal equipment is returned is received in second server side joint.
In one preferred embodiment of the invention, described information confirms that instruction includes the mark of second terminal equipment, institute
Confirmation is stated including the first confirmation and the second confirmation, first confirmation is to select really according to user
Recognize the information that the corresponding second terminal equipment of mark of the second terminal equipment is generated for file reception side;Described second is true
It is that the corresponding second terminal equipment of the mark for not confirming the second terminal equipment selected according to user connects for file to recognize information
Debit and the information that generates;
Methods described also includes:
If the confirmation is the first confirmation, in second server side according to the second terminal described in execution
The mark of equipment generates file acquisition message and sends the step into the 3rd server;
If the confirmation is the second confirmation, in second server side the mark of second terminal equipment is reacquired
Know.
Wherein, the first server is file server, and the second server is application server, the 3rd clothes
Business device is push server.
With reference to Fig. 3, show the present invention a kind of offline file transmission embodiment of the method three the step of flow chart, this
Bright embodiment is illustrated from the 3rd server side, wherein, the 3rd server is push server, and the embodiment of the present invention can
To comprise the steps:
Step 301, in the 3rd server side the file acquisition message that second server sends is received, and the file acquisition disappears
Breath includes the mark of second terminal equipment;
Step 302, in the corresponding second terminal equipment of mark that the 3rd server side detects the second terminal equipment
When online, the file acquisition message is sent to the second terminal equipment side.
In one preferred embodiment of the invention, the step 302 can include following sub-step:
Sub-step S31, in the 3rd server side the mark of all terminal units for having accessed is obtained;
Sub-step S32, judge in the 3rd server side all accesses terminal unit mark in whether there is with
The mark identical terminal unit of the second terminal equipment;
Sub-step S33, judge in the 3rd server side all accesses terminal unit mark in exist with it is described
During the mark identical terminal unit of second terminal equipment, the corresponding second terminal of mark for judging the second terminal equipment sets
It is standby online.
In one preferred embodiment of the invention, methods described also includes:
The validation of information instruction that second server sends is received in the 3rd server side;
Described information is confirmed into that instruction is sent into first terminal equipment in the 3rd server side.
It should be noted that the first server be file server, the second server be application server, institute
The 3rd server is stated for push server.
With reference to Fig. 4, show the present invention a kind of offline file transmission embodiment of the method four the step of flow chart, this
Bright embodiment is illustrated from second terminal equipment side, wherein, the second terminal equipment is the recipient of file destination resource,
The embodiment of the present invention may include steps of:
Step 401, in second terminal equipment side joint the file acquisition message that the 3rd server sends is received;
Step 402, obtains corresponding according to the file acquisition message in second terminal equipment side from second server
Packet, described information bag includes the download address of file destination resource;
Step 403, second terminal equipment side according to the download address of the file destination resource from first server
Download corresponding file destination resource.
In one preferred embodiment of the invention, described information bag includes file attribute information, the file attribute letter
Breath can include the type of file destination resource, and the type of the file destination resource includes theme, wallpaper, the tinkle of bells, software, sound
Pleasure, game, video, e-book, described method can also include:
If the type of the file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book, by the mesh
Mark file resource is stored in second terminal equipment side;
If the type of the file destination resource is software and/or game, the file destination resource is mounted directly.
In one preferred embodiment of the invention, before the step 401, can also include:
Network state is monitored in second terminal equipment side, the network state includes that current network can use and current network
It is unavailable;
If current network can use, in second terminal equipment side current network is connected;
Connect the 3rd server in second terminal equipment side.
In one preferred embodiment of the invention, it is described whole second if the second terminal equipment is mobile device
The step of network state is monitored in end equipment side includes:
Service ConnctionChangeReceiver is received in the second terminal equipment side registered network state change;
Service ConnctionChangeReceiver is received in second terminal equipment side using network state change to connect
Receive the broadcast CONNECTIVITY_CHANGE that system service SystemService sends;
If method wifiNetInfo.isConnected () that the broadcast CONNECTIVITY_CHANGE is called is returned
Boolean be it is true, then judge current network can use;
If method wifiNetInfo.isConnected () that the broadcast CONNECTIVITY_CHANGE is called is returned
Boolean be it is true, then judge current network it is unavailable.
In another preferred embodiment of the invention, it is described second if the second terminal equipment is computing device
The step of terminal equipment side monitors network state includes:
Network interface API is called to inquire about current network state in second terminal equipment side.
It should be noted that the first server is file server, the second server is application server, the
Three servers are push server.
With reference to Fig. 5, show the present invention a kind of offline file transmission embodiment of the method five the step of flow chart, at this
In inventive embodiments, the first terminal equipment is the sender of file destination resource, and the second terminal equipment is target text
The recipient of part resource, the first terminal equipment and/or the second terminal equipment can be mobile device or computing device,
Wherein, the computing device is that one kind can be run according to program, the automatic, intelligent electronic device of high speed processing mass data,
Such as desktop computer, notebook computer.The mobile device is a kind of computing device that can be used in movement, such as mobile phone,
The embodiment of the present invention need not be any limitation as to the type of first terminal equipment and second terminal equipment.
The embodiment of the present invention may include steps of:
Step 501, selectes instruction and obtains corresponding target in first terminal equipment side according to the file resource that user sends
File resource;
In one preferred embodiment of the invention, the file resource is selected instruction and can be set in first terminal for user
The download instruction to certain file resource selected in the file resource download list that standby side shows.Specifically, in first terminal
Equipment side is provided with the first client-side program, in first client-side program show have the free file resource of magnanimity for
Family is downloaded, and user can select the file resource oneself liked to be downloaded from the file resource of first client-side program.
In practice, select in the download list of the file resource that the first client-side program shows when user touches operation by mouse or point
After the fixed file resource oneself liked, that is, corresponding file resource download instruction is generated, the first client-side program receives described
After file resource download instruction, corresponding file resource is downloaded from server and is stored to first terminal as file destination resource
Equipment side.
In practice, first client-side program opens a suspension windows in computer-side is used for file destination resource
Transmission, when user opens the first client-side program in first terminal equipment side, the first client-side program can be in suspension windows
In or in the predeterminated position of first terminal equipment eject pop-up and remind user to send off-line files resource and set to second terminal
It is standby upper, i.e., first terminal equipment be not connected to second terminal equipment also can fat file resource at any time(As shown in Figure 6).
Specifically, the effect of suspension windows is, when the window of mastery routine is when minimizing, user can also to be pointed out to see
To the running status of the program, it is possible to by clicking on these wickets, the window of mastery routine is quickly opened.Suspension windows bag
Contained one can for user access default entrance, after showing suspension windows on screen, user can by this preset into
Predetermined registration operation is perhaps performed in mouth access preset.For example, user can start the behaviour of delivery fat file by clicking on default entrance
Make.
In another preferred embodiment of the invention, the selected instruction of the file resource can be user in first terminal
The selected instruction to certain file resource selected in the file resource of equipment side storage.Specifically, user can be with first
In the existing file resource of end side storage certain file resource is selected as file destination resource.
Used as a kind of preferred exemplary of the present embodiment, the file destination resource has file attribute information, the file
Attribute information can include size, the type of file destination resource, the version number of file destination resource, the mesh of file destination resource
Mark of mark file resource etc..Wherein, the type of the file destination resource can include theme, wallpaper, the tinkle of bells, software,
The polytypes such as music, game, video, e-book.
Step 502, when first terminal equipment is not detected by the access of second terminal equipment, in first terminal equipment side
The file destination resource is sent into file server by suspension windows;
Specifically, after first terminal equipment side gets file destination resource, first terminal equipment is using described the
One client-side program has detected whether that second terminal equipment is accessed, and in the case where accessing without second terminal equipment, first is objective
Family end Programmable detection user initiates assigned operation either with or without for suspension windows.Wherein, the finger initiated for suspension windows
Fixed operation can have various ways, the suspension windows assigned operation schematic diagram with reference to shown in Fig. 7, as a kind of excellent of the present embodiment
Select example, the user file destination resource can be drawn into suspension including user for the assigned operation that suspension windows are initiated
In the file resource that the operation of window, i.e. user are stored from first terminal side after selection target file resource, directly by target text
Part resource is dragged to the operation in suspension windows.Used as another kind of preferred exemplary of the present embodiment, the user is directed to suspension windows
The assigned operation of initiation can include that user clicks on the file in suspension windows and selectes button, in the text that first terminal equipment is ejected
The operation in the path of selection target file resource in part Path selection window, for example, it can be Fig. 7 institutes that the file selectes button
The functional keyss of " selecting the file to be sent " for showing, click on file and select after button, and first terminal equipment side can eject file
Path selection window, user can in this document Path selection window selection target file resource path.
First client-side program detects user when initiating assigned operation for suspension windows, and the first client-side program can be with
Send reminder message to ask the user whether to need to send file destination resource offline, specifically, the reminder message can be with
By showing user in suspension windows or in the predeterminated position ejection pop-up of first terminal equipment, user's choosing is being received
After fixed offline confirmation instruction, the file destination resource is sent offline.Wherein, the offline confirmation instruction is indicated for user
Confirmation sends offline the instruction of the file destination resource.The offline confirmation instruction can be presented as that user is clicked in pop-up
Similar functions buttons such as " confirm send off-line files " and the instruction that triggers.
On the other hand, if user indicates offline send file destination resource, " not sending in pop-up can be clicked on
The similar functions such as off-line files " button does not send the instruction of off-line files to trigger, and now, the file destination resource is described
In suspension windows in etc. state to be sent.
In actual applications, user's triggering it is offline confirm that instruction or triggering do not send the mode of the instruction of off-line files can be with
Have various, except similar functions buttons such as above-mentioned click " confirming to send off-line files ", " not sending off-line files ", to realize
Whether the offline transmission of file destination resource triggers outer, if being provided with gravity sensing device in first terminal equipment, can also lead to
Cross shake first terminal equipment to trigger gravity sensing device, and then whether realize the offline transmission to the file destination resource
Triggering.In the embodiment of the present invention, the shake can be understood as that any operation of gravity sensing device can be triggered, such as up and down
Or mobile device described in double swerve etc., the embodiment of the present invention is not limited specific operation.
In one preferred embodiment of the invention, after the offline confirmation for receiving user's transmission is instructed, step 502 is entered
One step can be that generating file transmission for the assigned operation of suspension windows according to the user in first terminal equipment side please
Ask;The file is sent into request in first terminal equipment side to send into file server;Receive in first terminal equipment side joint
The file response message that the file server is returned;In first terminal equipment side according to the file response message by the mesh
Mark file resource is sent into file server.Specifically, the file sends request can include file destination resource
Size, file server receives the file and sends after request, and according to the size of the file destination resource itself is judged
Whether memory size is more than the size of the file destination resource, if being more than, file server returns file response message, with
Notify that first terminal equipment uploads file destination resource;Otherwise, file server does not return file response message.If first terminal
Equipment receives file response message in preset time period, then will provide the file destination according to the file response message
Source is sent into file server;If first terminal equipment is not received by file response message in preset time period, no
The file destination resource is sent into file server, now, the file destination resource is located in the suspension windows
In etc. state to be sent.
In practice, in order to ensure the safety of file destination resource, the first client-side program is uploading the file destination
Before resource, file server is uploaded to again after first being encrypted to the file destination resource according to the first preset rules
In, first preset rules can be the encrypting and decrypting rule that first client-side program is made an appointment with background server
Then.
Step 503, file server generates the download address of the file destination resource and returns to first terminal equipment side;
Specifically, the file server is the server of shared file, for storing file destination resource.In reality
Using in, the file destination resource in preset time period is only preserved in the file server, file server can be to storage
File destination resource carry out periodically or aperiodically detecting, if the time for detecting the storage of file destination resource exceedes
Preset time period, then delete the file destination resource.Wherein, the preset time period can be for each file destination money
The access time in source is the time period that the time started is arranged(Such as one month, more than the file destination resource of one month access time
To be deleted);Or, the Preset Time can also for the unification setting of file resource that file server is all storages when
Between boundary(File destination resource as stored before in July, 2013 No. 10 will be deleted).
File server is received after file destination resource, obtains storage of the file destination resource in file server side
Address, generates the download address of the file destination resource according to the second preset rules, to the target by the storage address
The download address of file resource is according to return first terminal equipment side after the encryption of the first preset rules.
In implementing, user can select one or more file destination resources, and be entered by the suspension windows
Row sends, and now first terminal equipment can generate file transmission list using first client-side program, and the file is sent out
Send the list that list is that the file destination resource for carrying out offline transmission by the suspension windows is organized into, first terminal side is by institute
State file transmission list and be illustrated in the predeterminated position of suspension windows or other predeterminated positions of first terminal equipment interface.The text
There is the file for each file destination resource to send status information, the file sends status information can in part transmission list
With including be successfully transmitted state, sending state, etc. state to be sent and send status of fail.Wherein, the file is sent out
Status information is sent to refer to that file is sent to the status information of file server, the state that is successfully transmitted is in preset time period
Receive the state of the corresponding download address of file server return;The transmission status of fail is do not have in preset time period
There is the state of the corresponding download address for receiving file server return.
In actual applications, can also show in file statuss list and check guide information, it is described to check that guide information is used
In instructing the user how that off-line files resource is received and checked in second terminal equipment.
Step 504, in first terminal equipment side download address and the file category of the file destination resource is built
The packet of property information is simultaneously sent into application server;
The embodiment of the present invention is applied to, first terminal equipment side receives file server and returns using the first client-side program
After the download address of the file destination resource returned, the download address of the file destination resource is solved according to the first preset rules
It is close, the download address of the file destination resource and the packet of the file attribute information are then built, and to the letter
Breath bag is sent into application server after being encrypted using the first preset rules.
It should be noted that described information bag is actually a kind of download address and institute for recording and having file destination resource
State the data structure of file attribute information.
Step 505, application server obtains the mark of the first terminal equipment, and in default incidence relation list
There is the mark of the second terminal equipment of incidence relation with the mark of the first terminal equipment in lookup;
Specifically, be stored with the default incidence relation list occurred connect first terminal equipment mark
And the incidence relation between the mark of second terminal equipment.The process that the incidence relation is generated can be(Set with first terminal
Standby is computing device, and second terminal equipment is illustrated for the situation of mobile device):
First computing device receives the notification message of the long connection of foundation that mobile device sends, and notification message includes movement
The mark of equipment;If computing device allows to set up long connection, computing device is by the mark of mobile device and the mark of computing device
Know and send to application server, the association that mobile device and computing device are recorded in incidence relation list by application server is closed
System.
Specifically, the incidence relation set up between mobile device and computing device, mainly comprises the steps:
1st, mobile device is authenticated on the application server;
1.1 start the second client-side program in mobile device(That is mobile phone assistant);
1.2 on the mobile apparatus after input handset number, and mobile device is in the lump sent to the IMEI and cell-phone number of the equipment
Application server;
1.3 application servers to mobile device sends the note with authentication code;
1.4 are input on the mobile apparatus the authentication code, are then issued to application server;
1.5 application servers determine being designated for the mobile device according to the authentication code, mobile device number and IMEI
The mobile device is possessed.
2. at computing device
2.1 start on the computing device mobile phone assistant;
After the cell-phone number of 2.2 input mobile devices, computing device is in the lump sent to the cell-phone number and MID of mobile device should
Use server;
2.3 application servers inquire about the cell-phone number institute according to MID, the cell-phone number of the computing device for receiving in data base
Whether corresponding mobile device is authenticated at the application server, if be authenticated, in incidence relation list
The middle MID for setting up computing device, cell-phone number, the corresponding relation of the IMEI of the mobile device, such as using them as a record
In being stored in incidence relation list;Otherwise invitation is sent to mobile device, invite flow process as follows:
2.3.1 application server sends an invitation note to mobile device, invites in note as an activation chained address;
2.3.2 when mobile device receives the note, can eject a binding allows dialog box, user to click on after determining,
Information in the activation link can be sent to application server, application server receives after binding acknowledgement request, this is moved
Dynamic equipment and correspondence computing device binding.
Incidence relation list structure is
CREATE TABLE`client`(
`id`INT(10)UNSIGNED NOT NULL AUTO_INCREMENT,
`clientid`VARCHAR (64) NOT NULL DEFAULT''COMMENT' client ids ',
`mid`VARCHAR (32) NOT NULL DEFAULT''COMMENT' machine IDs ',
`toid`INT (10) NOT NULL DEFAULT'0'COMMENT' device ids ',
`appid`INT (10) NOT NULL DEFAULT'0'COMMENT' device types ',
`createtime`DATETIME NOT NULL COMMENT' creation times ',
The `updatetime`DATETIME NOT NULL COMMENT' final updating times ',
PRIMARY KEY(`id`),
UNIQUE INDEX`clientid`(`clientid`),
INDEX`toid`(`toid`)
)
COMMENT=' client device contingency tables '
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 deliveries number of `toid`INT (10) UNSIGNED NOT NULL DEFAULT'0'COMMENT'【Divide table
KEY】',
`title`CHAR (255) NOT NULL DEFAULT''COMMENT' message headers ',
`content`TEXT NOT NULL,
Whether `isupload`TINYINT (4) UNSIGNED NOT NULL COMMENT' locally upload ',
`signature`CHAR (255) NOT NULL DEFAULT''COMMENT' senders signature `,
`fileurl`VARCHAR (2800) NOT NULL DEFAULT''COMMENT' file download url',
`filename`VARCHAR (1200) NOT NULL DEFAULT''COMMENT' filenames ',
`filetype`TINYINT (3) UNSIGNED NOT NULL DEFAULT'0'COMMENT' files classes models ',
`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 chains connect ',
`filesize`INT (10) UNSIGNED NOT NULL DEFAULT'0'COMMENT' file sizes ',
`status`TINYINT(4)NOT NULL DEFAULT'0',
`createtime`DATETIME NOT NULL COMMENT' creation times ',
The `updatetime`DATETIME NOT NULL COMMENT' renewal times ',
`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 tables '
COLLATE='utf8_general_ci'
ENGINE=InnoDB。
Specifically, the mark of mobile device is mobile1, and the mark of computing device is desktop1, when mobile device will
When being associated with computing device, this association request is sent to computing device by long connection, and computing device is agreed to confirm
Afterwards this associates mobile1<-->Desktop1 sets up.After application server receives packet, in application server
It is also recorded for desktop1<-->The mapping relations of packet file1.Application server is carried out after packet is received to it
Decryption, and obtain the mark of the first terminal equipment, subsequently searches and described the in the default incidence relation list
The mark of the second terminal equipment of the mark association of one terminal unit.In actual applications, the default incidence relation list
Described in first terminal equipment mark and the mark of the second terminal equipment between incidence relation there is following situation:
(1)The mark of first terminal equipment is only corresponding with the mark of a second terminal equipment.In this case, apply
Server selects the mark of the second terminal equipment as the recipient of the file destination resource.
(2)The mark of first terminal equipment is corresponding with the mark of multiple stage second terminal equipment.In this case, due to
In practice, the mark and each second terminal equipment of the first terminal equipment can also be stored in default incidence relation list
The time of the newest generation connection of mark, now, application server can be according to the mark of the first terminal equipment and each the
The mark of the second terminal equipment that the selection of time for identifying newest generation connection of two terminal units occurs to connect recently(I.e. most
The latter second terminal equipment being connected with first terminal equipment)As the recipient of file destination resource.
Application server is got after the mark as the second terminal equipment of file destination resource recipient, generates information
Confirm instruction, and by push server(Push servers)Described information is confirmed into that instruction is sent to first terminal equipment side,
Described information confirms that instruction includes the mark of second terminal equipment, and described information confirms instruction for informing that first terminal equipment is true
Recognize and whether file destination resource is sent into the mark of the second terminal equipment of the selection.Offline prompting as shown in Figure 8
Schematic diagram, first terminal equipment can adopt the first client-side program by the mesh after described information confirmation instruction is received
The mark of the second equipment that mark file resource will send shows user in forms such as pop-ups, if user selects " to send out immediately
Send ", illustrate that user confirms that the file destination resource is sent to the mark of the second terminal equipment, then first terminal equipment side
Generate the first confirmation to send to application server side.If additionally, user's is not intended to the file destination resource
In delivering to the mark of the second terminal equipment, user can select the button of printed words such as " zapping equipment ", then first terminal sets
Standby side generates the second confirmation and sends into application server, and now, user will can need to receive file destination resource
Second terminal equipment is accessed in first terminal equipment, to receive file destination resource;If user does not access any second terminal
Equipment, then application server search again in the default incidence relation list with the presence or absence of other and the first terminal equipment
Mark association second terminal equipment mark, if existing, obtain the mark of the second terminal equipment for time connection occurring recently
Know and generate validation of information instruction and send to first terminal equipment side, by that analogy;Otherwise, application server generates connection prompting and disappears
Breath is sent to first terminal equipment side, to notify that user's connection needs to receive the second terminal equipment of file destination resource.
Step 506, generates file acquisition message and sends in application server side according to the mark of the second terminal equipment
Into push server;
Application server is received after the first confirmation of first terminal equipment side transmission, is set according to the second terminal
Standby mark generates file acquisition message, and the file acquisition message is sent to push server(Push servers)In.
Wherein, the file acquisition message is used to notify push server in the mark for detecting the second terminal equipment corresponding the
When two terminal units are online, file acquisition message is sent into the second terminal equipment, to notify that the second terminal sets
It is standby that described information bag is obtained in application server.
Step 507, push server side detects the corresponding second terminal equipment of mark of the second terminal equipment and exists
During line, the file acquisition message is sent to the second terminal equipment side;
In practice, push server is used to that file acquisition message to be pushed in corresponding second terminal equipment.Specifically
For, push server obtains second carried in the file acquisition message eventually after the file acquisition message is received
The mark of end equipment, and in the mark of all terminal units for having accessed(Terminal unit one will automatically connect online push
Server)Middle lookup and the mark identical terminal unit of the second terminal equipment, if searching successfully, illustrate described second
Terminal unit is online, otherwise, then illustrates that the second terminal equipment is not online.
Push server when the second terminal equipment on-line is detected, then directly by the file acquisition message send
Into the second terminal equipment;If it is not online to detect the second terminal equipment(It is i.e. offline), then described second is waited until eventually
End equipment on line again sends the file acquisition message into the second terminal equipment.
In implementing, depending on the whether online audible network state according to prison of second terminal equipment.It is concrete and
Speech, in one preferred embodiment of the invention, if the second terminal equipment is the mobile device for being provided with Android system, its
Network state is monitored as follows:
Network state is a SystemService, can pass through context.getSystemService (String
Name) obtain, when network state changes, SystemServic can send
Android.net.conn.CONNECTIVITY_CHANGE is broadcasted, and now mobile device side only needs to register a service
(Service), just the broadcast of network state change can be received on backstage, this service can be
ConnctionChangeReceiver;The broadcast that process is received, implementation method is as follows, adds network-like in onReceive
State judges:
ConnectivityManager connectMgr=(ConnectivityManager)
context.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo mobNetInfo=connectMgr.getNetworkInfo
(ConnectivityManager.TYPE_MOBILE);
NetworkInfo wifiNetInfo=connectMgr.getNetworkInfo
(ConnectivityManager.TYPE_WIFI);
Wherein, ConnectivityManager is acquisition current system information on services;
GetNetworkInfo obtains respectively the information that type is two kinds of networking modes of MOBILE and WIFI;
By judging what mobNetInfo.isConnected () and wifiNetInfo.isConnected () was returned
Boolean Booleans are determining current networking state, if the Boolean for returning is true(Or 1), then illustrate that current network can use,
Mobile device can be attached;If the Boolean for returning is false(Or 0), then illustrate that current network is unavailable, mobile device
It is not available for connection.
In another preferred embodiment of the invention, if the second terminal equipment is computing device, it is according to as follows
Mode monitors network state:If computing device needs connec-tionless network, network interface API can be called to obtain current net
Network state, if current network state is available, computing device connection current network otherwise, is not connected to current network.
Step 508, obtains corresponding according to the file acquisition message in second terminal equipment side from application server
Packet;
Specifically, second terminal equipment side is provided with the second client-side program, and the second terminal equipment is using described
Second client-side program receives the file acquisition message that push server sends, when the file acquisition message is received,
Can be by the file acquisition message display in the default display location of second terminal and logical in forms such as prompt tone or pop-ups
Know that user has an offline file resource, user clicks on and promotes second terminal equipment after the file acquisition message using described the
Two client-side program obtain packet in application server.
Step 509, second terminal equipment side according to the download address of the file destination resource from file server
Download corresponding file destination resource.
Second client-side program is got after packet, decrypts described information bag, obtains the file money in described information bag
The download address in source, and the download address according to the file resource obtains corresponding file destination money in file server
Source.
Further, after the second client-side program decryption described information bag, the file destination resource can also be obtained
Type, and proceeded as follows according to the type of the file destination resource:If the type of the file destination resource is the theme,
The types such as wallpaper, the tinkle of bells, music, video, e-book, then be stored in second terminal equipment side by the file destination resource;If
The type of the file destination resource is the Setup Type such as software and/or game, then be mounted directly the file destination resource.The
Two client-side program, can be in the default exhibition of second terminal equipment interface after having stored file resource or having installed file resource
Show that the file of the mounted file resource of user or the file resource for having stored is informed in position in the form of notification message or pop-up
Information, wherein, the fileinfo can be represented in the form of a list.
In embodiments of the present invention, first terminal equipment and second terminal equipment, can when the transmission of file resource is carried out
First file destination resource is uploaded to into background server when line states, i.e. first terminal equipment on-line are in during with difference, this
When second terminal equipment be not necessarily required to online, download in background server the target again when second terminal equipment on-line
File resource, so as to reduce the restriction of file resource transmission, improves Consumer's Experience.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of combination of actions, but this area
Technical staff should know that the present invention is not limited by described sequence of movement, because according to the present invention, some steps can
With using other order or while carry out.Secondly, those skilled in the art also should know, enforcement described in this description
Example belongs to preferred embodiment, and involved action and the module not necessarily present invention is necessary.
With reference to Fig. 9, a kind of structural frames of terminal unit embodiment one for offline file transmission of the present invention are shown
Figure, described terminal unit can be included such as lower module:
File destination resource sending module 601, is suitable to be not detected by connecing for second terminal equipment in first terminal equipment
It is fashionable, in first terminal equipment side file destination resource is sent into first server by suspension windows;
Download address receiver module 602, is suitable to be received described in the first server return in first terminal equipment side joint
The download address of file destination resource, the download address of the file destination resource is the first server according to the target
File resource is generated;
Download address sending module 603, is suitable to the download ground according to the file destination resource in first terminal equipment side
Location builds packet and sends into second server.
In one preferred embodiment of the invention, also include:
Detection module, is suitable to file destination resource be sent to by suspension windows in first terminal equipment side described
Before in one server, the assigned operation that user initiates for suspension windows is detected, the assigned operation includes user by target
File resource is drawn the operation of suspension windows, and/or, the file that user is clicked in suspension windows selectes button, first eventually
The operation in the path of selection target file resource in the file path selection window that end equipment is ejected;
Reminder message sending module, is suitable to, when the assigned operation is detected, send reminder message and ask the user whether
Need offline transmission file destination resource;
The file destination resource sending module is further adapted for:
Receive user transmission offline confirmation instruction after, by suspension windows by the file destination resource send to
In first server, the offline confirmation for confirming that instruction is user's instruction sends offline the instruction of the file destination resource.
In one preferred embodiment of the invention, the file destination resource sending module 601 is further adapted for:
File is generated in first terminal equipment side for the assigned operation of suspension windows according to the user send request;
The file is sent into request in first terminal equipment side to send into first server;
The file response message that the first server is returned is received in first terminal equipment side joint;
In first terminal equipment side the file destination resource is sent to first service according to the file response message
In device.
In one preferred embodiment of the invention, the file destination resource sending module is further adapted for:
In first terminal equipment side according to the file response message to the file destination resource is encrypted;
File destination resource after the encryption is sent into first server.
In one preferred embodiment of the invention, the file destination resource is that first terminal side sends according to user
File resource selectes the file resource that instruction is obtained;The file resource is selected instruction and is shown in first terminal equipment side for user
File resource download list in select the download instruction to certain file resource, or, the file resource select instruction be
The selected instruction to certain file resource that user selects in the file resource that first terminal equipment side stores.
In one preferred embodiment of the invention, the download address sending module is further adapted for:
The file attribute information of the file destination resource is obtained in first terminal equipment side;
The download address of the file destination resource and the file attribute information are built in first terminal equipment side
Packet;
Described information bag is sent into second server in first terminal equipment side.
In one preferred embodiment of the invention, also include:
Validation of information instruction sending module, is suitable to receive the validation of information that the 3rd server sends in first terminal equipment side joint
Instruction;
Display module, is suitable to that described information confirmation instruction is showed into user in first terminal equipment side;
Confirmation receiver module, is suitable to the confirmation of receive user selection, and the confirmation is sent to the
In two servers.
In one preferred embodiment of the invention, described information confirms that instruction includes the mark of second terminal equipment, institute
Confirmation is stated including the first confirmation and the second confirmation, first confirmation is to select really according to user
Recognize the information that the corresponding second terminal equipment of mark of the second terminal equipment is generated for file reception side;Described second is true
It is that the corresponding second terminal equipment of the mark for not confirming the second terminal equipment selected according to user connects for file to recognize information
Debit and the information that generates.
In one preferred embodiment of the invention, also include:
File transmission list generation module, is suitable to generate file transmission list in first terminal equipment side, and the file is sent out
Send the list that list is that the file destination resource for carrying out offline transmission by the suspension windows is organized into.
In one preferred embodiment of the invention, have for each file destination resource in the file transmission list
File sends status information, the file send status information include being successfully transmitted state, sending state, etc. shape to be sent
State and transmission status of fail.
In one preferred embodiment of the invention, the file attribute information of the file destination resource also includes target text
The size of part resource, the type of file destination resource, the version number of file destination resource, the mark of file destination resource.
In one preferred embodiment of the invention, the type of the file destination resource include theme, wallpaper, the tinkle of bells,
Software, music, game, video, e-book.
In one preferred embodiment of the invention, the first server be file server, the second server
For application server, the 3rd server is push server.
With reference to Figure 10, a kind of structural frames of server example one for offline file transmission of the present invention are shown
Figure, described server can be included such as lower module:
Packet receiver module 701, is suitable to receive the packet that first terminal equipment side sends in second server side joint;
Device identification acquisition module 702, is suitable to the mark that the second server obtains the first terminal equipment;
Device identification searching modul 703, is suitable to be searched and institute in the default incidence relation list of second server side
State first terminal equipment mark exist incidence relation second terminal equipment mark;
First file acquisition message transmission module 704, is suitable in second server side according to the second terminal equipment
Mark generates file acquisition message and sends into the 3rd server.
In one preferred embodiment of the invention, also include:
Validation of information directive generation module, is suitable to generate file acquisition in the mark according to the second terminal equipment
Before message is sent into the 3rd server, in second server side validation of information instruction is generated;
Validation of information instruction sending module, is suitable to that described information is confirmed into instruction is sent to the 3rd clothes in second server side
In business device, sent to first terminal equipment side by the 3rd server;
Confirm message reception module, be suitable to receive the confirmation that first terminal equipment is returned in second server side joint.
In one preferred embodiment of the invention, described information confirms that instruction includes the mark of second terminal equipment, institute
Confirmation is stated including the first confirmation and the second confirmation, first confirmation is to select really according to user
Recognize the information that the corresponding second terminal equipment of mark of the second terminal equipment is generated for file reception side;Described second is true
It is that the corresponding second terminal equipment of the mark for not confirming the second terminal equipment selected according to user connects for file to recognize information
Debit and the information that generates;
The server also includes:
Calling module, is suitable to, when the confirmation is the first confirmation, call the first file acquisition message to send
Module;
Identifier acquisition module, is suitable to, when the confirmation is the second confirmation, stress newly to obtain in second server
Take the mark of second terminal equipment.
In one preferred embodiment of the invention, the second server be application server, the 3rd server
For push server.
With reference to Figure 11, a kind of structural frames of server example two for offline file transmission of the present invention are shown
Figure, described server can be included such as lower module:
First file acquisition message reception module 801, is suitable to receive the text that second server sends in the 3rd server side
Part obtains message, and the file acquisition message includes the mark of second terminal equipment;
Second file acquisition message transmission module 802, is suitable to detect the second terminal equipment in the 3rd server side
Mark corresponding second terminal equipment on-line when, the file acquisition message is sent to the second terminal equipment side.
In one preferred embodiment of the invention, the second file acquisition message transmission module is further adapted for:
The mark of all terminal units for having accessed is obtained in the 3rd server side;
Judge in the 3rd server side all accesses terminal unit mark in whether there is and described second eventually
The mark identical terminal unit of end equipment;
If so, the corresponding second terminal equipment on-line of mark of the second terminal equipment is then judged.
In one preferred embodiment of the invention, also include:
Validation of information command reception module, the validation of information for being suitable to receive second server transmission in the 3rd server side refers to
Order;
Validation of information instruction sending module, is suitable to that described information is confirmed into instruction is sent to first eventually in the 3rd server side
In end equipment.
In one preferred embodiment of the invention, the second server be application server, the 3rd server
For push server.
With reference to Figure 12, a kind of structural frames of terminal unit embodiment two for offline file transmission of the present invention are shown
Figure, described terminal unit can be included such as lower module:
Second file acquisition message reception module 901, is suitable to receive what the 3rd server sent in second terminal equipment side joint
File acquisition message;
Packet acquisition module 902, is suitable in second terminal equipment side according to the file acquisition message from second service
Corresponding packet is obtained in device, described information bag includes the download address of file destination resource;
File destination resource downloading module 903, is suitable in second terminal equipment side according under the file destination resource
Set address downloads corresponding file destination resource from first server.
In one preferred embodiment of the invention, described information bag includes file attribute information, the file attribute letter
Breath includes the type of file destination resource, the type of the file destination resource including theme, wallpaper, the tinkle of bells, software, music,
Game, video, e-book, described terminal unit also includes:
If the type of the file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book, by the mesh
Mark file resource is stored in second terminal equipment side;
If the type of the file destination resource is software and/or game, the file destination resource is mounted directly.
In one preferred embodiment of the invention, the terminal unit also includes:
Monitor module, be suitable to it is described second terminal equipment side joint receive the 3rd server send file acquisition message it
Before, network state is monitored in second terminal equipment side, the network state is available including current network;
First link block, if be suitable to current network can use, in second terminal equipment side current network is connected;
Second link block, is suitable to connect the 3rd server in second terminal equipment side.
In one preferred embodiment of the invention, if the second terminal equipment is mobile device, the monitoring module
It is further adapted for:
Service ConnctionChangeReceiver is received in the second terminal equipment side registered network state change;
Service ConnctionChangeReceiver is received in second terminal equipment side using network state change to connect
Receive the broadcast CONNECTIVITY_CHANGE that system service SystemService sends;
If method wifiNetInfo.isConnected () that the broadcast CONNECTIVITY_CHANGE is called is returned
Boolean be it is true, then judge current network can use;
If method wifiNetInfo.isConnected () that the broadcast CONNECTIVITY_CHANGE is called is returned
Boolean be it is true, then judge current network it is unavailable.
In another preferred embodiment of the invention, if the second terminal equipment is mobile device, the monitoring mould
Block is further adapted for:
Network interface API is called to inquire about current network state in second terminal equipment side.
In one preferred embodiment of the invention, the first server be file server, the second server
For application server, the 3rd server is push server.
With reference to Figure 13, a kind of structured flowchart of the system embodiment of offline file transmission of the present invention is shown, it is described
System can include first terminal equipment 10, file server 20, application server 30, and push server 40, second terminal sets
Standby 50, wherein,
The first terminal equipment 10, is suitable to when first terminal equipment is not detected by the access of second terminal equipment,
File destination resource to be sent is sent into file server by suspension windows, and receives the file server and returned
The file destination resource download address, and, the download address of the file destination resource is built into packets
Into application server;
The file server 20, is suitable to receive the file destination resource, and it is right to generate according to the file destination resource
The download address of the file destination resource answered simultaneously is sent into first terminal equipment;
The application server 30, is suitable to receive described information bag, sets according to the first terminal carried in described information bag
Standby mark is searched in default incidence relation list has the second of incidence relation with the mark of the first terminal equipment
The mark of terminal unit, and, generate file acquisition message according to the mark of the second terminal equipment and send to Push Service
In device;
The push server 40, is suitable in the corresponding second terminal equipment of mark for detecting the second terminal equipment
When online, the file acquisition message is sent to the second terminal equipment side;
The second terminal equipment 50, is suitable to that corresponding letter is obtained from application server according to the file acquisition message
Breath bag, and, download from file server according to the download address of the file destination resource of described information bag carrying corresponding
File destination resource.
In one preferred embodiment of the invention, the first terminal equipment 10 is further adapted for:
File is generated according to user for the assigned operation of suspension windows send request;
The file is sent into request to send into file server;
Receive the file response message that the file server is returned;
The file destination resource is sent into file server according to the file response message.
In one preferred embodiment of the invention, the file attribute information of the file destination resource also includes target text
The size of part resource, the type of file destination resource, the version number of file destination resource, the mark of file destination resource.
In one preferred embodiment of the invention, the type of the file destination resource include theme, wallpaper, the tinkle of bells,
Software, music, game, video, e-book.
In one preferred embodiment of the invention, the second terminal equipment 50 is further adapted for:
Be the theme in the type of the file destination resource, wallpaper, the tinkle of bells, music, video, e-book when, by the mesh
Mark file resource is stored in second terminal equipment side;
When the type of the file destination resource is software and/or game, the file destination resource is mounted directly.
Provided herein algorithm and show not with the intrinsic phase of any particular computing device, virtual system or miscellaneous equipment
Close.Various general-purpose systems can also be used together based on teaching in this.As described above, construct this kind of system to want
The structure asked is obvious.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use it is each
The content that programming language realizes invention described herein is planted, and the description done to language-specific above is to disclose this
The preferred forms of invention.
In description mentioned herein, a large amount of details are illustrated.It is to be appreciated, however, that the enforcement of the present invention
Example can be put into practice in the case of without these details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand one or more in each inventive aspect, exist
Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
The more features of feature that the application claims ratio of shield is expressly recited in each claim.More precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as the separate embodiments of the present invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Unit or component are combined into a module or unit or component, and can be divided in addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit is excluded each other, can adopt any
Combination is to this specification(Including adjoint claim, summary and accompanying drawing)Disclosed in all features and so disclosed appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification(Including adjoint power
Profit requires, makes a summary and accompanying drawing)Disclosed in each feature can by provide it is identical, equivalent or similar purpose alternative features carry out generation
Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection appoint
One of meaning can in any combination mode using.
The present invention all parts embodiment can be realized with hardware, or with one or more processor operation
Software module realize, or with combinations thereof realization.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor(DSP)In to realize offline file transmission equipment according to embodiments of the present invention one
The some or all functions of a little or whole parts.The present invention is also implemented as performing method as described herein
Some or all equipment or terminal unit program(For example, first terminal device program and first terminal device program
Product).Such program for realizing the present invention can be stored in first terminal device-readable medium, or can be with one
Or the form of multiple signals.Such signal can be downloaded from internet website and obtained, or be provided on carrier signal,
Or provide in any other form.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability
Field technique personnel can design without departing from the scope of the appended claims alternative embodiment.In the claims,
Any reference markss between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not
Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of the hardware for including some different elements and by means of properly programmed first terminal equipment
To realize.In the unit claim for listing some terminal units, several in these terminal units can be passed through
Same hardware branch is embodying.The use of word first, second, and third does not indicate that any order.Can be by these
Word is construed to title.
Embodiment of the invention discloses that A1, a kind of method of offline file transmission, including:
When first terminal equipment is not detected by the access of second terminal equipment, in first terminal equipment side by suspending
Window sends file destination resource into first server;
The download address of the file destination resource that the first server is returned, institute are received in first terminal equipment side joint
The download address for stating file destination resource is generated for the first server according to the file destination resource;
Packet is built in first terminal equipment side according to the download address of the file destination resource and send to second
In server.
A2, the method as described in A1, are sent out file destination resource by suspension windows in first terminal equipment side described
Before delivering to the step in first server, also include:
The assigned operation that detection user initiates for suspension windows, the assigned operation includes user by file destination resource
The operation of suspension windows is drawn, and/or, the file that user is clicked in suspension windows selectes button, in first terminal equipment bullet
The operation in the path of selection target file resource in the file path selection window for going out;
When the assigned operation is detected, send reminder message and ask the user whether to need to send file destination money offline
Source;
It is described that file destination resource is sent the step into first server by suspension windows in first terminal equipment side
Suddenly include:
Receive user transmission offline confirmation instruction after, by suspension windows by the file destination resource send to
In first server, the offline confirmation for confirming that instruction is user's instruction sends offline the instruction of the file destination resource.
A3, the method as described in A2, it is described to be sent file destination resource by suspension windows in first terminal equipment side
Step into first server includes:
File is generated in first terminal equipment side for the assigned operation of suspension windows according to the user send request;
The file is sent into request in first terminal equipment side to send into first server;
The file response message that the first server is returned is received in first terminal equipment side joint;
In first terminal equipment side the file destination resource is sent to first service according to the file response message
In device.
A4, the method as described in A3, it is described in first terminal equipment side according to the file response message by the target
The step that file resource is sent into first server includes:
In first terminal equipment side according to the file response message to the file destination resource is encrypted;
File destination resource after the encryption is sent into first server.
A5, the method as described in A1, the file destination resource is the file resource that first terminal side sends according to user
Select the file resource that instruction is obtained;The file resource is selected instruction and is provided in the file that first terminal equipment side shows for user
The download instruction to certain file resource selected in the download list of source, or, it is user that the file resource selectes instruction
The selected instruction to certain file resource selected in the file resource of one terminal equipment side storage.
A6, the method as described in A1, it is described first terminal equipment side according to the file destination resource download address
Building packet and sending the step into second server includes:
The file attribute information of the file destination resource is obtained in first terminal equipment side;
The download address of the file destination resource and the file attribute information are built in first terminal equipment side
Packet;
Described information bag is sent into second server in first terminal equipment side.
A7, the method as described in A1, also include:
The validation of information instruction that the 3rd server sends is received in first terminal equipment side joint;
Described information confirmation instruction is showed into user in first terminal equipment side;
The confirmation that receive user is selected, and the confirmation is sent into second server.
A8, the method as described in A7, described information confirms that instruction includes the mark of second terminal equipment, the confirmation
Including the first confirmation and the second confirmation, first confirmation is the confirmation described second selected according to user
The information that the corresponding second terminal equipment of mark of terminal unit is generated for file reception side;Second confirmation be according to
The corresponding second terminal equipment of the mark for not confirming the second terminal equipment selected according to user is generated for file reception side
Information.
A9, the method as described in A1, also include:
File transmission list is generated in first terminal equipment side, the file transmission list is to enter by the suspension windows
The list that the offline file destination resource for sending of row is organized into.
A10, the method as described in A9, for each file destination resource there is file to send in the file transmission list
Status information, the file send status information include being successfully transmitted state, sending state, etc. state to be sent and send out
Send status of fail.
A11, the method as described in A1, the file attribute information of the file destination resource is also including file destination resource
Size, the type of file destination resource, the version number of file destination resource, the mark of file destination resource.
A12, the method as described in A11, the type of the file destination resource includes theme, wallpaper, the tinkle of bells, software, sound
Pleasure, game, video, e-book.
A13, the method as described in any one of A4 to 12, the first server be file server, the second service
Device is application server, and the 3rd server is push server.
Embodiments of the invention also disclose B14, a kind of method of offline file transmission, including:
The packet that first terminal equipment side sends is received in second server side joint;
The second server obtains the mark of the first terminal equipment;
Search in the default incidence relation list of second server side and exist with the mark of the first terminal equipment
The mark of the second terminal equipment of incidence relation;
File acquisition message is generated in second server side according to the mark of the second terminal equipment to send to the 3rd clothes
In business device.
B15, the method as described in B14, in the mark according to the second terminal equipment file acquisition message is generated
Before sending the step into the 3rd server, also include:
Validation of information instruction is generated in second server side;
Second server side by described information confirm instruction send into the 3rd server, by the 3rd server send to
First terminal equipment side;
The confirmation that first terminal equipment is returned is received in second server side joint.
B16, the method as described in B15, described information confirms that instruction includes the mark of second terminal equipment, the confirmation letter
Breath includes the first confirmation and the second confirmation, and first confirmation is confirmation that foundation user selectes described the
The information that the corresponding second terminal equipment of mark of two terminal units is generated for file reception side;Second confirmation is
The corresponding second terminal equipment of the mark for not confirming the second terminal equipment selected according to user is file reception Fang Ersheng
Into information;
Methods described also includes:
If the confirmation is the first confirmation, in second server side according to the second terminal described in execution
The mark of equipment generates file acquisition message and sends the step into the 3rd server;
If the confirmation is the second confirmation, in second server side the mark of second terminal equipment is reacquired
Know.
Embodiments of the invention also disclose C17, a kind of method of offline file transmission, including:
The file acquisition message that second server sends is received in the 3rd server side, the file acquisition message includes the
The mark of two terminal units;
In the corresponding second terminal equipment on-line of mark that the 3rd server side detects the second terminal equipment, will
The file acquisition message is sent to the second terminal equipment side.
C18, the method as described in C17, the corresponding second terminal equipment of mark of the detection second terminal equipment
Online step includes:
The mark of all terminal units for having accessed is obtained in the 3rd server side;
Judge in the 3rd server side all accesses terminal unit mark in whether there is and described second eventually
The mark identical terminal unit of end equipment;
If so, the corresponding second terminal equipment on-line of mark of the second terminal equipment is then judged.
C19, the method as described in C17, also include:
The validation of information instruction that second server sends is received in the 3rd server side;In the 3rd server side by the letter
Breath confirms that instruction is sent into first terminal equipment.
Embodiments of the invention also disclose D20, a kind of method of offline file transmission, including:
The file acquisition message that the 3rd server sends is received in second terminal equipment side joint;
Corresponding packet, institute are obtained from second server according to the file acquisition message in second terminal equipment side
State download address of the packet including file destination resource;
Correspondence is downloaded from first server according to the download address of the file destination resource in second terminal equipment side
File destination resource.
D21, the method as described in D20, described information bag includes file attribute information, and the file attribute information includes mesh
The type of mark file resource, the type of the file destination resource includes theme, wallpaper, the tinkle of bells, software, music, game, regards
Frequently, e-book, described method also includes:
If the type of the file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book, by the mesh
Mark file resource is stored in second terminal equipment side;
If the type of the file destination resource is software and/or game, the file destination resource is mounted directly.
D22, the method as described in D20, obtain in the file for receiving the transmission of the 3rd server in second terminal equipment side joint
Before the step of taking message, also include:
Network state is monitored in second terminal equipment side, the network state is available including current network;
If current network can use, in second terminal equipment side current network is connected;
Connect the 3rd server in second terminal equipment side.
D23, the method as described in D22, it is described in second terminal equipment side if the second terminal equipment is mobile device
The step of monitoring network state includes:
Service ConnctionChangeReceiver is received in the second terminal equipment side registered network state change;
Service ConnctionChangeReceiver is received in second terminal equipment side using network state change to connect
Receive the broadcast CONNECTIVITY_CHANGE that system service SystemService sends;
If method wifiNetInfo.isConnected () that the broadcast CONNECTIVITY_CHANGE is called is returned
Boolean be it is true, then judge current network can use;
If method wifiNetInfo.isConnected () that the broadcast CONNECTIVITY_CHANGE is called is returned
Boolean be it is true, then judge current network it is unavailable.
D24, the method as described in D22, it is described in second terminal equipment side if the second terminal equipment is computing device
The step of monitoring network state includes:
Network interface API is called to inquire about current network state in second terminal equipment side.
Embodiments of the invention are also disclosed E25, a kind of terminal unit for offline file transmission, including:
File destination resource sending module, is suitable to be not detected by the access of second terminal equipment in first terminal equipment
When, in first terminal equipment side file destination resource is sent into first server by suspension windows;
Download address receiver module, is suitable to receive the target that the first server is returned in first terminal equipment side joint
The download address of file resource, the download address of the file destination resource is the first server according to the file destination
Resource is generated;
Download address sending module, is suitable to the download address structure according to the file destination resource in first terminal equipment side
Build packet and send into second server.
E26, the terminal unit as described in E25, also include:
Detection module, is suitable to file destination resource be sent to by suspension windows in first terminal equipment side described
Before in one server, the assigned operation that user initiates for suspension windows is detected, the assigned operation includes user by target
File resource is drawn the operation of suspension windows, and/or, the file that user is clicked in suspension windows selectes button, first eventually
The operation in the path of selection target file resource in the file path selection window that end equipment is ejected;
Reminder message sending module, is suitable to, when the assigned operation is detected, send reminder message and ask the user whether
Need offline transmission file destination resource;
The file destination resource sending module is further adapted for:
Receive user transmission offline confirmation instruction after, by suspension windows by the file destination resource send to
In first server, the offline confirmation for confirming that instruction is user's instruction sends offline the instruction of the file destination resource.
E27, the terminal unit as described in E26, the file destination resource sending module is further adapted for:
File is generated in first terminal equipment side for the assigned operation of suspension windows according to the user send request;
The file is sent into request in first terminal equipment side to send into first server;
The file response message that the first server is returned is received in first terminal equipment side joint;
In first terminal equipment side the file destination resource is sent to first service according to the file response message
In device.
E28, the terminal unit as described in E27, the file destination resource sending module is further adapted for:
In first terminal equipment side according to the file response message to the file destination resource is encrypted;
File destination resource after the encryption is sent into first server.
E29, the terminal unit as described in E25, the file destination resource is the text that first terminal side sends according to user
Part resource selectes the file resource that instruction is obtained;The file resource selectes what instruction showed for user in first terminal equipment side
The download instruction to certain file resource selected in file resource download list, or, it is use that the file resource selectes instruction
The selected instruction to certain file resource that family selects in the file resource that first terminal equipment side stores.
E30, the terminal unit as described in E25, the download address sending module is further adapted for:
The file attribute information of the file destination resource is obtained in first terminal equipment side;
The download address of the file destination resource and the file attribute information are built in first terminal equipment side
Packet;
Described information bag is sent into second server in first terminal equipment side.
E31, the terminal unit as described in E25, also include:
Validation of information instruction sending module, is suitable to receive the validation of information that the 3rd server sends in first terminal equipment side joint
Instruction;
Display module, is suitable to that described information confirmation instruction is showed into user in first terminal equipment side;
Confirmation receiver module, is suitable to the confirmation of receive user selection, and the confirmation is sent to the
In two servers.
E32, the terminal unit as described in E31, described information confirms that instruction includes the mark of second terminal equipment, described true
Information is recognized including the first confirmation and the second confirmation, first confirmation selected by confirmation according to user
State the information that the corresponding second terminal equipment of mark of second terminal equipment is generated for file reception side;Second confirmation letter
It is file reception side that breath is the corresponding second terminal equipment of the mark for not confirming the second terminal equipment selected according to user
And the information for generating.
E33, the terminal unit as described in E25, also include:
File transmission list generation module, is suitable to generate file transmission list in first terminal equipment side, and the file is sent out
Send the list that list is that the file destination resource for carrying out offline transmission by the suspension windows is organized into.
E34, the terminal unit as described in E33, have text in the file transmission list for each file destination resource
Part sends status information, the file send status information include being successfully transmitted state, sending state, etc. state to be sent
And transmission status of fail.
E35, the terminal unit as described in E25, the file attribute information of the file destination resource also includes file destination
The size of resource, the type of file destination resource, the version number of file destination resource, the mark of file destination resource.
E36, the terminal unit as described in E35, the type of the file destination resource includes theme, wallpaper, the tinkle of bells, soft
Part, music, game, video, e-book.
E37, the terminal unit as described in any one of E28 to 36, the first server be file server, described second
Server is application server, and the 3rd server is push server.
Embodiments of the invention also disclose F38, a kind of server for offline file transmission, including:
Packet receiver module, is suitable to receive the packet that first terminal equipment side sends in second server side joint;
Device identification acquisition module, is suitable to the mark that the second server obtains the first terminal equipment;
Device identification searching modul, is suitable to search in the default incidence relation list of second server side and described
There is the mark of the second terminal equipment of incidence relation in the mark of one terminal unit;
First file acquisition message transmission module, is suitable to the mark according to the second terminal equipment in second server side
Generate file acquisition message to send into the 3rd server.
F39, the server as described in F38, also include:
Validation of information directive generation module, is suitable to generate file acquisition in the mark according to the second terminal equipment
Before message is sent into the 3rd server, in second server side validation of information instruction is generated;
Validation of information instruction sending module, is suitable to that described information is confirmed into instruction is sent to the 3rd clothes in second server side
In business device, sent to first terminal equipment side by the 3rd server;
Confirm message reception module, be suitable to receive the confirmation that first terminal equipment is returned in second server side joint.
F40, the server as described in F39, described information confirms that instruction includes the mark of second terminal equipment, the confirmation
Information includes the first confirmation and the second confirmation, and first confirmation is described in the confirmation selected according to user
The information that the corresponding second terminal equipment of mark of second terminal equipment is generated for file reception side;Second confirmation
It is the corresponding second terminal equipment of the mark for not confirming the second terminal equipment selected according to user for file reception side
The information of generation;
The server also includes:
Calling module, is suitable to, when the confirmation is the first confirmation, call the first file acquisition message to send
Module;
Identifier acquisition module, is suitable to, when the confirmation is the second confirmation, stress newly to obtain in second server
Take the mark of second terminal equipment.
Embodiments of the invention also disclose G41, a kind of server for offline file transmission, including:
First file acquisition message reception module, the file for being suitable to receive second server transmission in the 3rd server side is obtained
Message is taken, the file acquisition message includes the mark of second terminal equipment;
Second file acquisition message transmission module, is suitable to detect the mark of the second terminal equipment in the 3rd server side
When knowing corresponding second terminal equipment on-line, the file acquisition message is sent to the second terminal equipment side.
G42, the server as described in G41, the second file acquisition message transmission module is further adapted for:
The mark of all terminal units for having accessed is obtained in the 3rd server side;
Judge in the 3rd server side all accesses terminal unit mark in whether there is and described second eventually
The mark identical terminal unit of end equipment;
If so, the corresponding second terminal equipment on-line of mark of the second terminal equipment is then judged.
G43, the server as described in G41, also include:
Validation of information command reception module, the validation of information for being suitable to receive second server transmission in the 3rd server side refers to
Order;
Validation of information instruction sending module, is suitable to that described information is confirmed into instruction is sent to first eventually in the 3rd server side
In end equipment.
Embodiments of the invention also disclose H44, a kind of terminal unit for offline file transmission, including:
Second file acquisition message reception module, is suitable to receive the file that the 3rd server sends in second terminal equipment side joint
Obtain message;
Packet acquisition module, be suitable to second terminal equipment side according to the file acquisition message from second server
Corresponding packet is obtained, described information bag includes the download address of file destination resource;
File destination resource downloading module, is suitable to the download ground according to the file destination resource in second terminal equipment side
Corresponding file destination resource is downloaded from first server in location.
H45, the terminal unit as described in H44, described information bag includes file attribute information, the file attribute information bag
Include the type of file destination resource, the type of the file destination resource include theme, wallpaper, the tinkle of bells, software, music, game,
Video, e-book, described terminal unit also includes:
If the type of the file destination resource is the theme, wallpaper, the tinkle of bells, music, video, e-book, by the mesh
Mark file resource is stored in second terminal equipment side;
If the type of the file destination resource is software and/or game, the file destination resource is mounted directly.
H46, the terminal unit as described in H44, also include:
Monitor module, be suitable to it is described second terminal equipment side joint receive the 3rd server send file acquisition message it
Before, network state is monitored in second terminal equipment side, the network state is available including current network;
First link block, if be suitable to current network can use, in second terminal equipment side current network is connected;
Second link block, is suitable to connect the 3rd server in second terminal equipment side.
H47, the terminal unit as described in H46, the second terminal equipment is mobile device, and the monitoring module is also fitted
In:
Service ConnctionChangeReceiver is received in the second terminal equipment side registered network state change;
Service ConnctionChangeReceiver is received in second terminal equipment side using network state change to connect
Receive the broadcast CONNECTIVITY_CHANGE that system service SystemService sends;
If method wifiNetInfo.isConnected () that the broadcast CONNECTIVITY_CHANGE is called is returned
Boolean be it is true, then judge current network can use;
If method wifiNetInfo.isConnected () that the broadcast CONNECTIVITY_CHANGE is called is returned
Boolean be it is true, then judge current network it is unavailable.
H48, the method as described in H46, it is described in second terminal equipment side if the second terminal equipment is computing device
The step of monitoring network state includes:
Network interface API is called to inquire about current network state in second terminal equipment side.
Embodiments of the invention also disclose I49, a kind of system of offline file transmission, including:First terminal equipment, text
Part server, application server, push server, second terminal equipment, wherein,
The first terminal equipment, is suitable to, when first terminal equipment is not detected by the access of second terminal equipment, lead to
Cross suspension windows file destination resource to be sent to be sent into file server, and receive what the file server was returned
The download address of the file destination resource, and, the download address of the file destination resource is built into packets extremely
In application server;
The file server, is suitable to receive the file destination resource, and according to the file destination resource correspondence is generated
File destination resource download address and send into first terminal equipment;
The application server, is suitable to receive described information bag, according to the first terminal equipment carried in described information bag
Mark there is incidence relation with the mark of the first terminal equipment second is searched in default incidence relation list eventually
The mark of end equipment, and, generate file acquisition message according to the mark of the second terminal equipment and send to push server
In;
The push server, is suitable to exist in the corresponding second terminal equipment of mark for detecting the second terminal equipment
During line, the file acquisition message is sent to the second terminal equipment side;
The second terminal equipment, is suitable to that corresponding information is obtained from application server according to the file acquisition message
Bag, and, the download address of the file destination resource carried according to described information bag downloads corresponding mesh from file server
Mark file resource.
I50, the system as described in I49, the first terminal equipment is further adapted for:
File is generated according to user for the assigned operation of suspension windows send request;
The file is sent into request to send into file server;
Receive the file response message that the file server is returned;
The file destination resource is sent into file server according to the file response message.
I51, the system as described in I49, the file attribute information of the file destination resource also includes file destination resource
Size, the type of file destination resource, the version number of file destination resource, the mark of file destination resource.
I52, the system as described in I51, the type of the file destination resource includes theme, wallpaper, the tinkle of bells, software, sound
Pleasure, game, video, e-book.
I53, the system as described in I52, the second terminal equipment is further adapted for:
Be the theme in the type of the file destination resource, wallpaper, the tinkle of bells, music, video, e-book when, by the mesh
Mark file resource is stored in second terminal equipment side;
When the type of the file destination resource is software and/or game, the file destination resource is mounted directly.
Claims (29)
1. a kind of method of offline file transmission, including:
When first terminal equipment is not detected by the access of second terminal equipment, in first terminal equipment side suspension windows are passed through
File destination resource is sent into first server;
The download address of the file destination resource that the first server is returned, the mesh are received in first terminal equipment side joint
The download address of mark file resource is generated for the first server according to the file destination resource;
Packet is built in first terminal equipment side according to the download address of the file destination resource and send to second service
In device;
Methods described also includes:
The validation of information instruction that the 3rd server sends is received in first terminal equipment side joint;
Described information confirmation instruction is showed into user in first terminal equipment side;
The confirmation that receive user is selected, and the confirmation is sent into second server.
2. the method for claim 1, it is characterised in that it is described in first terminal equipment side by suspension windows by mesh
Mark file resource is sent before the step into first server, is also included:
The assigned operation that detection user initiates for suspension windows, the assigned operation is drawn file destination resource including user
To the operation of suspension windows, and/or, the file that user is clicked in suspension windows selectes button, ejects in first terminal equipment
The operation in the path of selection target file resource in file path selection window;
When the assigned operation is detected, send reminder message and ask the user whether to need to send file destination resource offline;
It is described that file destination resource is sent the step bag into first server by suspension windows in first terminal equipment side
Include:
After the offline confirmation instruction for receiving user's transmission, the file destination resource is sent to first by suspension windows
In server, the offline confirmation for confirming that instruction is user's instruction sends offline the instruction of the file destination resource.
3. method as claimed in claim 2, it is characterised in that it is described in first terminal equipment side by suspension windows by target
The step that file resource is sent into first server includes:
File is generated in first terminal equipment side for the assigned operation of suspension windows according to the user send request;
The file is sent into request in first terminal equipment side to send into first server;
The file response message that the first server is returned is received in first terminal equipment side joint;
In first terminal equipment side the file destination resource is sent into first server according to the file response message.
4. method as claimed in claim 3, it is characterised in that described to disappear according to file response in first terminal equipment side
The file destination resource is sent the step into first server by breath to be included:
In first terminal equipment side according to the file response message to the file destination resource is encrypted;
File destination resource after the encryption is sent into first server.
5. the method for claim 1, it is characterised in that the file destination resource is that first terminal side is sent out according to user
The file resource for going out selectes the file resource that instruction is obtained;The selected instruction of the file resource is user in first terminal equipment side
The download instruction to certain file resource selected in the file resource download list of displaying, or, the file resource is selected and referred to
Make the selected instruction to certain file resource selected in the file resource that first terminal equipment side stores for user.
6. the method for claim 1, it is characterised in that described to provide according to the file destination in first terminal equipment side
The download address in source builds packet and sends the step into second server to be included:
The file attribute information of the file destination resource is obtained in first terminal equipment side;
The download address of the file destination resource and the information of the file attribute information are built in first terminal equipment side
Bag;
Described information bag is sent into second server in first terminal equipment side.
7. the method for claim 1, it is characterised in that described information confirms that instruction includes the mark of second terminal equipment
Know, the confirmation includes the first confirmation and the second confirmation, first confirmation is according to user's choosing
The information that the corresponding second terminal equipment of mark of the fixed confirmation second terminal equipment is generated for file reception side;It is described
Second confirmation is that the corresponding second terminal equipment of the mark for not confirming the second terminal equipment selected according to user is
File reception side and the information that generates.
8. the method for claim 1, it is characterised in that also include:
First terminal equipment side generate file transmission list, the file transmission list be by the suspension windows carry out from
The list that the file destination resource that line sends is organized into.
9. method as claimed in claim 8, it is characterised in that each file destination resource is directed in the file transmission list
Send status information with file, the file send status information include being successfully transmitted state, sending state, etc. it is pending
Send state and send status of fail.
10. the method for claim 1, it is characterised in that the file attribute information of the file destination resource also includes
The size of file destination resource, the type of file destination resource, the version number of file destination resource, the mark of file destination resource
Know.
11. methods as claimed in claim 10, it is characterised in that the type of the file destination resource include theme, wallpaper,
The tinkle of bells, software, music, game, video, e-book.
12. methods as described in any one of claim 3 to 11, it is characterised in that the first server is file server,
The second server is application server, and the 3rd server is push server.
A kind of 13. terminal units for offline file transmission, including:
File destination resource sending module, is suitable to when first terminal equipment is not detected by the access of second terminal equipment,
First terminal equipment side is sent file destination resource into first server by suspension windows;
Download address receiver module, is suitable to receive the file destination that the first server is returned in first terminal equipment side joint
The download address of resource, the download address of the file destination resource is the first server according to the file destination resource
Generate;
Download address sending module, is suitable to build letter according to the download address of the file destination resource in first terminal equipment side
Breath is wrapped and sent into second server;
The download address sending module is further adapted for:
Validation of information instruction sending module, the validation of information for being suitable to receive the transmission of the 3rd server in first terminal equipment side joint refers to
Order;
Display module, is suitable to that described information confirmation instruction is showed into user in first terminal equipment side;
Confirmation receiver module, is suitable to the confirmation of receive user selection, and the confirmation is sent to the second clothes
In business device.
14. terminal units as claimed in claim 13, it is characterised in that also include:
Detection module, is suitable to file destination resource be sent to the first clothes by suspension windows in first terminal equipment side described
Before in business device, the assigned operation that user initiates for suspension windows is detected, the assigned operation includes user by file destination
Resource is drawn the operation of suspension windows, and/or, the file that user is clicked in suspension windows selectes button, sets in first terminal
The operation in the path of selection target file resource in the standby file path selection window for ejecting;
Reminder message sending module, is suitable to, when the assigned operation is detected, send reminder message and ask the user whether needs
It is offline to send file destination resource;
The file destination resource sending module is further adapted for:
After the offline confirmation instruction for receiving user's transmission, the file destination resource is sent to first by suspension windows
In server, the offline confirmation for confirming that instruction is user's instruction sends offline the instruction of the file destination resource.
15. terminal units as claimed in claim 14, it is characterised in that the file destination resource sending module is further adapted for:
File is generated in first terminal equipment side for the assigned operation of suspension windows according to the user send request;
The file is sent into request in first terminal equipment side to send into first server;
The file response message that the first server is returned is received in first terminal equipment side joint;
In first terminal equipment side the file destination resource is sent into first server according to the file response message.
16. terminal units as claimed in claim 15, it is characterised in that the file destination resource sending module is further adapted for:
In first terminal equipment side according to the file response message to the file destination resource is encrypted;
File destination resource after the encryption is sent into first server.
17. terminal units as claimed in claim 13, it is characterised in that the file destination resource is first terminal side foundation
The file resource that user sends selectes the file resource that instruction is obtained;The selected instruction of the file resource is user in first terminal
The download instruction to certain file resource selected in the file resource download list that equipment side shows, or, the file resource
Select the selected instruction to certain file resource that instruction is selected for user in the file resource that first terminal equipment side stores.
18. terminal units as claimed in claim 13, it is characterised in that the download address sending module is further adapted for:
The file attribute information of the file destination resource is obtained in first terminal equipment side;
The download address of the file destination resource and the information of the file attribute information are built in first terminal equipment side
Bag;
Described information bag is sent into second server in first terminal equipment side.
19. terminal units as claimed in claim 18, it is characterised in that described information confirms that instruction includes second terminal equipment
Mark, the confirmation includes the first confirmation and the second confirmation, and first confirmation is according to using
The information that the corresponding second terminal equipment of mark of the confirmation second terminal equipment that family is selected is generated for file reception side;
Second confirmation is that the corresponding second terminal of mark for not confirming the second terminal equipment selected according to user sets
The standby information generated for file reception side.
20. terminal units as claimed in claim 13, it is characterised in that also include:
File transmission list generation module, is suitable to generate file transmission list in first terminal equipment side, and the file sends row
Table is the list that the file destination resource for carrying out offline transmission by the suspension windows is organized into.
21. terminal units as claimed in claim 20, it is characterised in that for each target text in the file transmission list
There is part resource file to send status information, the file send status information include being successfully transmitted state, sending state,
Etc. state to be sent and transmission status of fail.
22. terminal units as claimed in claim 13, it is characterised in that the file attribute information of the file destination resource is also
Size, the type of file destination resource, the version number of file destination resource, file destination resource including file destination resource
Mark.
23. terminal units as claimed in claim 22, it is characterised in that the type of the file destination resource include theme,
Wallpaper, the tinkle of bells, software, music, game, video, e-book.
24. terminal units as described in any one of claim 16 to 23, it is characterised in that the first server is file clothes
Business device, the second server is application server, and the 3rd server is push server.
A kind of 25. systems of offline file transmission, including:First terminal equipment, file server, application server, push clothes
Business device, second terminal equipment, wherein,
The first terminal equipment, is suitable to when first terminal equipment is not detected by the access of second terminal equipment, by outstanding
Floating window mouth sends file destination resource to be sent into file server, and receives the described of the file server return
The download address of file destination resource, and, the download address of the file destination resource is built into packets to application
In server, the validation of information instruction that the 3rd server sends is received, and described information confirmation instruction is showed into user, received
The confirmation that user selects, and the confirmation is sent into second server;
The file server, is suitable to receive the file destination resource, and according to the file destination resource corresponding mesh is generated
The download address of mark file resource is simultaneously sent into first terminal equipment;
The application server, is suitable to receive described information bag, according to the mark of the first terminal equipment carried in described information bag
Knowledge is searched the second terminal that there is incidence relation with the mark of the first terminal equipment in default incidence relation list and is set
Standby mark, and, generate file acquisition message according to the mark of the second terminal equipment and send into push server;
The push server, is suitable in the corresponding second terminal equipment on-line of mark for detecting the second terminal equipment
When, the file acquisition message is sent to the second terminal equipment side;
The second terminal equipment, is suitable to that corresponding packet is obtained from application server according to the file acquisition message,
And, the download address of the file destination resource carried according to described information bag downloads corresponding target text from file server
Part resource.
26. systems as claimed in claim 25, it is characterised in that the first terminal equipment is further adapted for:
File is generated according to user for the assigned operation of suspension windows send request;
The file is sent into request to send into file server;
Receive the file response message that the file server is returned;
The file destination resource is sent into file server according to the file response message.
27. systems as claimed in claim 25, it is characterised in that the file attribute information of the file destination resource also includes
The size of file destination resource, the type of file destination resource, the version number of file destination resource, the mark of file destination resource
Know.
28. systems as claimed in claim 27, it is characterised in that the type of the file destination resource include theme, wallpaper,
The tinkle of bells, software, music, game, video, e-book.
29. systems as claimed in claim 28, it is characterised in that the second terminal equipment is further adapted for:
Be the theme in the type of the file destination resource, wallpaper, the tinkle of bells, music, video, e-book when, by target text
Part resource is stored in second terminal equipment side;
When the type of the file destination resource is software and/or game, the file destination resource is mounted directly.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610278618.3A CN105978956B (en) | 2013-11-26 | 2013-11-26 | A kind of method of offline file transmission, system, terminal device and server |
CN201610279801.5A CN105763650B (en) | 2013-11-26 | 2013-11-26 | A kind of method of offline file transmission, system, terminal device and server |
CN201310612011.0A CN103634392B (en) | 2013-11-26 | 2013-11-26 | Method, system, terminal equipment and servers for offline file transmission |
CN201610274784.6A CN106027597B (en) | 2013-11-26 | 2013-11-26 | A kind of method and server of offline file transmission |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310612011.0A CN103634392B (en) | 2013-11-26 | 2013-11-26 | Method, system, terminal equipment and servers for offline file transmission |
Related Child Applications (3)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610279801.5A Division CN105763650B (en) | 2013-11-26 | 2013-11-26 | A kind of method of offline file transmission, system, terminal device and server |
CN201610278618.3A Division CN105978956B (en) | 2013-11-26 | 2013-11-26 | A kind of method of offline file transmission, system, terminal device and server |
CN201610274784.6A Division CN106027597B (en) | 2013-11-26 | 2013-11-26 | A kind of method and server of offline file transmission |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103634392A CN103634392A (en) | 2014-03-12 |
CN103634392B true CN103634392B (en) | 2017-04-19 |
Family
ID=50215008
Family Applications (3)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610278618.3A Active CN105978956B (en) | 2013-11-26 | 2013-11-26 | A kind of method of offline file transmission, system, terminal device and server |
CN201310612011.0A Active CN103634392B (en) | 2013-11-26 | 2013-11-26 | Method, system, terminal equipment and servers for offline file transmission |
CN201610274784.6A Active CN106027597B (en) | 2013-11-26 | 2013-11-26 | A kind of method and server of offline file transmission |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610278618.3A Active CN105978956B (en) | 2013-11-26 | 2013-11-26 | A kind of method of offline file transmission, system, terminal device and server |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610274784.6A Active CN106027597B (en) | 2013-11-26 | 2013-11-26 | A kind of method and server of offline file transmission |
Country Status (1)
Country | Link |
---|---|
CN (3) | CN105978956B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103916311B (en) * | 2014-04-21 | 2016-01-20 | 腾讯科技(深圳)有限公司 | A kind of information transmission and control method, Apparatus and system |
CN105407147B (en) * | 2015-10-27 | 2018-11-20 | 北京金山安全软件有限公司 | Method and device for downloading theme pack |
CN107786425A (en) * | 2016-09-12 | 2018-03-09 | 平安科技(深圳)有限公司 | Information off-line treating method and apparatus |
CN107995247B (en) * | 2016-10-27 | 2020-07-14 | 腾讯科技(深圳)有限公司 | File transmission method, server and system |
CN107193981A (en) * | 2017-05-26 | 2017-09-22 | 腾讯科技(深圳)有限公司 | Collection file is shown, processing method and processing device, computer-readable storage medium and equipment |
CN108322544A (en) * | 2018-02-13 | 2018-07-24 | 合肥联宝信息技术有限公司 | A kind of file management method and electronic equipment |
CN108737505A (en) * | 2018-04-27 | 2018-11-02 | 厦门理工学院 | A kind of method of resource downloading, system and terminal device |
US11010486B2 (en) * | 2018-12-18 | 2021-05-18 | Citrix Systems, Inc. | Secure offline streaming of content |
CN110460678A (en) * | 2019-08-29 | 2019-11-15 | 湖南新云网科技有限公司 | A kind of information transferring method, interactive device and server |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103051520A (en) * | 2013-01-05 | 2013-04-17 | 北京小米科技有限责任公司 | Method and device for synchronizing offline session messages in instant messaging tool |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6757705B1 (en) * | 1998-08-14 | 2004-06-29 | Microsoft Corporation | Method and system for client-side caching |
US7461378B2 (en) * | 2002-06-11 | 2008-12-02 | Siemens Communications, Inc. | Methods and apparatus for processing an instant message |
CN100558086C (en) * | 2007-06-01 | 2009-11-04 | 腾讯科技(深圳)有限公司 | A kind of transmission of off-line files, reception, transmission method and system |
CN101170523B (en) * | 2007-12-05 | 2010-09-29 | 腾讯科技(深圳)有限公司 | File transmission system, method and file forward decision server |
CN101184055B (en) * | 2007-12-11 | 2010-12-22 | 腾讯科技(深圳)有限公司 | Method and device of delivering, receiving, transmitting off-line files |
CN101977228B (en) * | 2010-10-29 | 2013-04-24 | 优视科技有限公司 | Off-line downloading method for mobile communication equipment terminal and system thereof |
CN102821057A (en) * | 2011-06-09 | 2012-12-12 | 腾讯科技(深圳)有限公司 | File sending method, device and system |
CN102355426B (en) * | 2011-06-30 | 2015-01-14 | 北京神州泰岳软件股份有限公司 | Method for transmitting off-line file and system |
CN102664823A (en) * | 2012-04-17 | 2012-09-12 | 上海量明科技发展有限公司 | Method, client and system for offline receiving of data in instant message |
CN103248678A (en) * | 2013-04-24 | 2013-08-14 | 天脉聚源(北京)传媒科技有限公司 | Data resource sharing method, server-side and client-side |
-
2013
- 2013-11-26 CN CN201610278618.3A patent/CN105978956B/en active Active
- 2013-11-26 CN CN201310612011.0A patent/CN103634392B/en active Active
- 2013-11-26 CN CN201610274784.6A patent/CN106027597B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103051520A (en) * | 2013-01-05 | 2013-04-17 | 北京小米科技有限责任公司 | Method and device for synchronizing offline session messages in instant messaging tool |
Also Published As
Publication number | Publication date |
---|---|
CN103634392A (en) | 2014-03-12 |
CN106027597B (en) | 2019-07-09 |
CN106027597A (en) | 2016-10-12 |
CN105978956B (en) | 2019-03-08 |
CN105978956A (en) | 2016-09-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103634392B (en) | Method, system, terminal equipment and servers for offline file transmission | |
US11853320B2 (en) | Mobile platform file and folder selection functionalities for offline access and synchronization | |
JP5833178B2 (en) | Cellular mobile phone terminal, software application, and music track distribution system | |
CN103493048B (en) | File internal is stored metadata in provide the reference of the shared vision of file | |
US20110167357A1 (en) | Scenario-Based Content Organization and Retrieval | |
CN103888505B (en) | A kind of method, system, terminal device and the server of file transmission | |
CN103678487B (en) | Method and device for generating web page snapshot | |
CN103944944B (en) | Method, electronic equipment and the system of sharing web page link | |
US9286644B2 (en) | Method for sharing multiple data items using a single URL | |
CN107038044A (en) | The discrete loading method of game resource and system based on Unity3D | |
US11356498B2 (en) | Method and a device for sharing a hosted application | |
CN104462570B (en) | Web page contents acquisition methods and device | |
CN103873575B (en) | The method and apparatus of application operating is carried out based on wifi user interfaces | |
CN103687059B (en) | Set up the method and device connected between computing device and mobile device | |
CN104780209A (en) | Portable equipment and server for realizing sharing interface scenario | |
US9424364B2 (en) | Integrated context-driven information search and interaction | |
US20190182191A1 (en) | Embedding actionable content in electronic communication | |
US10218769B2 (en) | Monitoring digital images on mobile devices | |
JP2012524346A (en) | Online content service using catalog-based interactive operations | |
WO2019003222A1 (en) | Captured content sharing interface | |
CN105763650B (en) | A kind of method of offline file transmission, system, terminal device and server | |
US20120117197A1 (en) | Content auto-discovery | |
KR101522728B1 (en) | Data transmission method and device based on slide detection | |
CN104168670A (en) | Data obtaining method, device and system | |
US11553316B2 (en) | Method and apparatus for storing and sending a computer location |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220715 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |
|
TR01 | Transfer of patent right |