A kind of method of downloaded resources, terminal, server and systemTechnical field
The present invention relates to field of Internet communication, particularly a kind of method of downloaded resources, terminal, server and system.
Background technology
Development along with Internet technology, occur multiple download protocol at present and gone downloaded resources for the user, for example, occur download protocol commonly used at present and comprise Http (Hypertext transport protocol, HTTP) agreement, BT (BitTorrent, bit stream) agreement and eD2k (eDonkey2000network, electric donkey 2000 networks) agreement etc.
Wherein, corresponding resource network of a kind of download protocol; When the user need download, the user selected a kind of download protocol, downloaded the resource that needs download from the resource network of this download protocol correspondence.For example, if the user uses Http agreement downloaded resources, then the user obtains the URL (UniversalResource Locator, URL(uniform resource locator)) of the resource that needs download, downloads the resource that needs are downloaded according to the URL that obtains from the resource network of Http agreement correspondence; If the user uses BT agreement downloaded resources, then the user obtains the Hash information of the resource that needs download, according to the Hash information of obtaining downloaded resources from the resource network of BT agreement correspondence; If the user uses the resource that the eD2k agreement is downloaded needs download, then the user obtains the eD2k cryptographic Hash of the resource that needs download, downloads the resource that needs are downloaded according to the eD2k cryptographic Hash of obtaining from the resource network of eD2k agreement correspondence.
In realizing process of the present invention, the inventor finds that there is following problem at least in prior art:
At present the user can only be from the resource network of the download protocol correspondence of its use downloaded resources, often the user is when downloaded resources, the leisureless resource node of resource network of the download protocol correspondence that the user uses can be for downloading in the user, and the resource network Luoque of other download protocol correspondences has a large amount of idling-resource nodes, so causes resource node rationally not use.
Summary of the invention
In order rationally to use the resource node in each resource network, the invention provides a kind of method, terminal, server and system of downloaded resources.Described technical scheme is as follows:
A kind of method of downloaded resources, described method comprises:
When downloading resource to be downloaded, send downloading request message to the resource mapping server, described downloading request message is carried resource to be downloaded resource location information in first resource network;
Receive the download response message that described resource mapping server sends, described download response message carries described resource to be downloaded resource location information in first and second resource networks respectively, and described second resource network is other one or more resource networks except described first resource network;
According to described resource to be downloaded resource location information in described first and second resource networks respectively, download described resource to be downloaded.
Described transmission downloading request message also comprises to before the resource mapping server:
Obtain the described resource location information of resource in described first resource network to be downloaded.
After the described resource to be downloaded of described download, also comprise:
The content that comprises according to described resource to be downloaded calculates the identification information of described resource to be downloaded, sends the identification information of described resource to be downloaded and resource location information to the resource mapping server.
A kind of method of downloaded resources, described method comprises:
The downloading request message that receiving terminal sends, described downloading request message is carried resource to be downloaded resource location information in first resource network;
According to the described resource location information of resource in first resource network to be downloaded, obtain described resource to be downloaded resource location information in first and second resource networks respectively, described second resource network is other one or more resource networks except described first resource network;
Send and download response message to described terminal, described download response message carries described resource to be downloaded resource location information in first and second resource networks respectively, make described terminal according to described resource to be downloaded respectively the resource location information in first and second resource networks download described resource to be downloaded.
Described according to the described resource location information of resource in first resource network to be downloaded, obtain the described resource to be downloaded resource location information of correspondence in first and second resource networks respectively, comprising:
According to the described resource location information of resource in first resource network to be downloaded, from the corresponding relation of the identification information stored and resource location information, obtain the identification information of described resource to be downloaded;
Identification information according to described resource to be downloaded obtains described resource to be downloaded resource location information in first and second resource networks respectively from the corresponding relation of the described identification information of having stored and resource location information.
Described method also comprises:
After the intact described resource to be downloaded of described terminal downloads, receive identification information and resource location information that described terminal sends described resource to be downloaded, set up the identification information of described resource to be downloaded and the corresponding relation of resource location information.
The described terminal of described reception sends after the identification information and resource location information of described resource to be downloaded, also comprises:
Obtain the download time of downloading described resource to be downloaded, set up the resource location information of described resource to be downloaded and the corresponding relation of described download time.
Described method also comprises:
The corresponding relation of stored resource locating information and download time is monitored, if monitor out the resource location information of download time before Preset Time, then deletion comprises the corresponding relation of the resource location information of described download time before Preset Time from the corresponding relation of the identification information stored and resource location information.
Described method also comprises:
If monitor out the resource location information of download time before Preset Time, then from the described locating information of stored resource and the corresponding relation of download time, delete the corresponding relation that comprises the resource location information of described download time before Preset Time.
A kind of terminal, described terminal comprises:
First sending module is used for when downloading resource to be downloaded, sends downloading request message to the resource mapping server, and described downloading request message is carried resource to be downloaded resource location information in first resource network;
First receiver module, be used for receiving the download response message that described resource mapping server sends, described download response message carries described resource to be downloaded resource location information in first and second resource networks respectively, and described second resource network is other one or more resource networks except described first resource network;
Download module is used for according to described resource to be downloaded downloading described resource to be downloaded respectively in the resource location information of first and second resource networks.
Described terminal also comprises:
First acquisition module is used for obtaining described resource to be downloaded in the resource location information of described first resource network.
Described terminal also comprises:
Computing module is used for calculating according to the content that described resource to be downloaded comprises the identification information of described resource to be downloaded, sends the identification information of described resource to be downloaded and resource location information to the resource mapping server.
A kind of resource mapping server, described server comprises:
Second receiver module is used for the downloading request message that receiving terminal sends, and described downloading request message is carried resource to be downloaded resource location information in first resource network;
Second acquisition module, be used for according to the resource location information of described resource to be downloaded at first resource network, obtain described resource to be downloaded resource location information in first and second resource networks respectively, described second resource network is other one or more resource networks except described first resource network;
Second sending module, be used for sending and download response message to described terminal, described download response message carries described resource to be downloaded resource location information in first and second resource networks respectively, make described terminal according to described resource to be downloaded respectively the resource location information in first and second resource networks download described resource to be downloaded.
Described second acquisition module comprises:
First searches module, is used for according to the resource location information of described resource to be downloaded at first resource network, obtains the identification information of described resource to be downloaded from the corresponding relation of the identification information stored and resource location information;
Second searches module, is used for the identification information according to described resource to be downloaded, obtains described resource to be downloaded resource location information in first and second resource networks respectively from the corresponding relation of the described identification information of having stored and resource location information.
Described server also comprises:
First sets up module, be used for after the intact described resource to be downloaded of described terminal downloads, receive identification information and resource location information that described terminal sends described resource to be downloaded, set up the identification information of described resource to be downloaded and the corresponding relation of resource location information.
Described server also comprises:
Second sets up module, is used for obtaining the download time of downloading described resource to be downloaded, sets up the resource location information of described resource to be downloaded and the corresponding relation of described download time.
Described server also comprises:
First removing module, be used for the corresponding relation of stored resource locating information and download time is monitored, if monitor out the resource location information of download time before Preset Time, then deletion comprises the corresponding relation of the resource location information of described download time before Preset Time from the corresponding relation of the identification information stored and resource location information.
Described server also comprises:
Second removing module, if be used for monitoring out the resource location information of download time before Preset Time, then from the described locating information of stored resource and the corresponding relation of download time, delete the corresponding relation that comprises the resource location information of described download time before Preset Time.
A kind of system of downloaded resources, described system comprise described terminal and described resource mapping server.
In embodiments of the present invention, terminal is when downloading resource to be downloaded, obtain resource to be downloaded resource location information in first and second resource networks respectively, second resource network is other one or more resource networks except first resource network, according to the resource to be downloaded download of resource location information in first and second resource networks resource to be downloaded respectively; So terminal can be from different resource networks downloaded resources, thereby can rationally use resource node in each resource network.
Description of drawings
Fig. 1 is the method flow diagram of a kind of downloaded resources of providing of the embodiment of the invention 1;
Fig. 2 is the method flow diagram of a kind of downloaded resources of providing of the embodiment of the invention 2;
Fig. 3 is the method flow diagram of a kind of downloaded resources of providing of the embodiment of the invention 3;
Fig. 4 is a kind of terminal structure schematic diagram that the embodiment of the invention 4 provides;
Fig. 5 is a kind of resource mapping server structural representation that the embodiment of the invention 5 provides;
Fig. 6 is the system configuration schematic diagram of a kind of downloaded resources of providing of the embodiment of the invention 6.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
Embodiment 1
As shown in Figure 1, the embodiment of the invention provides a kind of method of downloaded resources, comprising:
Step 101: when downloading resource to be downloaded, send downloading request message to the resource mapping server, this downloading request message is carried resource to be downloaded resource location information in first resource network;
Step 102: receive the download response message that the resource mapping server sends, this download response message carries resource to be downloaded resource location information in first and second resource networks respectively, and second resource network is other one or more resource networks except first resource network;
Step 103: according to resource to be downloaded resource location information in first and second resource networks respectively, download resource to be downloaded.
Wherein, the execution subject of present embodiment can be terminal.
In embodiments of the present invention, terminal is when downloading resource to be downloaded, obtain resource to be downloaded resource location information in first and second resource networks respectively, second resource network is other one or more resource networks except first resource network, downloads resource to be downloaded according to resource to be downloaded resource location information in first and second resource networks; So terminal can be from different resource networks downloaded resources, thereby can rationally use resource node in each resource network.
Embodiment 2
As shown in Figure 2, the embodiment of the invention provides a kind of method of downloaded resources, comprising:
Step 201: the downloading request message that receiving terminal sends, downloading request message is carried resource to be downloaded resource location information in first resource network;
Step 202: according to resource to be downloaded resource location information in first resource network, obtain resource to be downloaded resource location information in first and second resource networks respectively, second resource network is other one or more resource networks except first resource network;
Step 203: send and download response message to terminal, download response message and carry resource to be downloaded resource location information in first and second resource networks respectively, make terminal according to resource to be downloaded respectively the resource location information in first and second resource networks download resource to be downloaded.
Wherein, the execution subject of present embodiment can be the resource mapping server.
In embodiments of the present invention, the resource mapping server receives downloading request message, carry resource to be downloaded resource location information in first resource network according to this downloading request message, obtain resource to be downloaded resource location information in first and second resource networks respectively, send and download response message to terminal, and this download response message carries resource to be downloaded resource location information in first and second resource networks respectively, and make terminal according to resource to be downloaded respectively the resource location information in first and second resource networks download resource to be downloaded, so terminal can be from different resource networks downloaded resources, thereby can rationally use resource node in each resource network.
Embodiment 3
As shown in Figure 3, the embodiment of the invention provides a kind of method of downloaded resources, comprising:
Step 301: when downloading resource to be downloaded, terminal is obtained the resource location information of resource to be downloaded in first resource network of the download protocol correspondence that the user uses;
One or more resource location information that wherein, in the resource network of every kind of download protocol correspondence, may have resource correspondence to be downloaded; In the resource network of different download protocol correspondences, the resource location information of resource to be downloaded has nothing in common with each other; For example, in the resource network of Http agreement correspondence, may have one or more resource location information of resource correspondence to be downloaded, and the resource location information of resource to be downloaded is the URL of resource to be downloaded; One or more resource location information that in the resource network of BT agreement correspondence, may have resource correspondence to be downloaded, and the resource location information of resource to be downloaded is the Hash information (Information-hash) of resource to be downloaded; One or more resource location information that in the resource network of eD2k agreement correspondence, may have resource correspondence to be downloaded, and the resource location information of resource to be downloaded is the eD2k cryptographic Hash (eD2k-hash) of resource to be downloaded.
Wherein, the user uses a kind of download protocol to download resource to be downloaded in terminal, and terminal is obtained the resource location information of resource to be downloaded in first resource network of the download protocol correspondence that the user uses.Wherein, if the download protocol that the user uses in terminal is the Http agreement, then terminal can receive the URL that the resource location information of the resource to be downloaded of user input is resource to be downloaded; If the download protocol that the user uses in terminal is the BT agreement, then terminal is obtained the seed file of resource to be downloaded, the information such as address that comprise Hash information, check information and the node index server of resource to be downloaded in this seed file, terminal is obtained the Hash information that the resource location information of resource to be downloaded is resource to be downloaded from this seed file then; If the download protocol that the user uses in terminal is the eD2k agreement, then terminal gets access to the eD2k link information of resource to be downloaded earlier, this eD2k link information comprises the address etc. of eD2k cryptographic Hash, filename and the node index server of resource to be downloaded, and the resource location information of obtaining resource to be downloaded from this eD2k link information is the eD2k cryptographic Hash of resource to be downloaded.
For example, suppose in the present embodiment that the download protocol that the user uses is the Http agreement in terminal, and the resource location information of the resource to be downloaded that gets access to of terminal is URL1.
Step 302: terminal sends downloading request message to the resource mapping server, and resource to be downloaded resource location information in first resource network is carried in the request of obtaining of this location;
For example, terminal sends downloading request message to the resource mapping server, and this downloading request message to carry resource to be downloaded resource location information in first resource network be URL1.
Step 303: the resource mapping server receives this downloading request message, according to the resource to be downloaded resource location information in first resource network that this downloading request message is carried, obtains the identification information of resource to be downloaded;
Particularly, the resource mapping server receives this downloading request message, carry resource to be downloaded resource location information in first resource network according to this downloading request message, search the corresponding relation of its identification information of having stored and resource location information, find out corresponding identification information, and the identification information of searching is the identification information of resource to be downloaded.
Wherein, in the resource mapping server, store the corresponding relation of identification information and resource location information in advance; A kind of resource is corresponding identification information only, and in different resource networks every kind of corresponding one or more resource location information of resource, so in the resource mapping server, the corresponding one or more resource location information of the identification information of a resource.
Wherein, the resource publisher during resource, can calculate the identification information of this resource in issue according to the content that this resource comprises, sets up the corresponding relation of the resource location information of the identification information of this resource and this resource then in the resource mapping server.
Wherein, need to prove: the identification information of resource is to calculate according to the content that this resource comprises, so the only corresponding identification information of this resource.
For example, in the present embodiment, suppose that the resource mapping server exists identification information as shown in table 1 and the corresponding relation of resource location information, for certain resource, the corresponding identification information of this resource is ID1, and the resource location information of this resource in the resource network of Http agreement correspondence is URL1, resource location information in the resource network of BT agreement correspondence is Hash information Info_hash1, and the resource location information in the resource network of eD2k agreement correspondence is eD2k cryptographic Hash eD2k-hash1.
Table 1
| Identification information | Resource location information |
| ID1 | URL1 |
| ID1 | Info_hash1 |
| ID1 | eD2k-hash1 |
| …… | …… |
For example, the resource mapping server receives this downloading request message, carry resource to be downloaded resource location information URL1 in first resource network according to this downloading request message, search identification information as shown in table 1 and the corresponding relation of resource location information, and finding out corresponding identification information is ID1, and the identification information that so obtains resource to be downloaded is ID1.
Step 304: the resource mapping server obtains resource to be downloaded resource location information in first and second resource networks respectively according to the identification information of resource to be downloaded, and second resource network is other one or more resource networks except first resource network;
Particularly, the resource mapping server is according to the identification information of resource to be downloaded, from the corresponding relation of its identification information of having stored and resource location information, find out resource to be downloaded in first and second resource networks resource location information.
For example, the resource mapping server is according to the identification information ID1 of resource to be downloaded, search identification information as shown in table 1 and the corresponding relation of resource location information, and to find out resource to be downloaded resource location information in the resource network of Http agreement correspondence be URL1, resource location information in the resource network of Bt agreement correspondence is Info_hash1, resource location information in the resource network of eD2k agreement correspondence is eD2k-hash1, so obtain agreement to be downloaded respectively the resource location information in first and second resource networks be URL1, Info_hash1 and eD2k-hash1.
Step 305: the resource mapping server sends downloads response message to terminal, and this download response message carries resource to be downloaded resource location information in first and second resource networks respectively;
For example, the resource mapping server sends downloads response message to terminal, and this download response message carries resource to be downloaded resource location information URL1 in the resource network of Http agreement correspondence, resource location information Info_hash1 in the resource network of Bt agreement correspondence, the resource location information eD2k-hash1 in the resource network of eD2k agreement correspondence.
Step 306: terminal receives this download response message, carries the resource to be downloaded download of resource location information in first and second resource networks resource to be downloaded respectively according to this download response message;
For example, terminal receives this download response message, and this download response message carries resource to be downloaded resource location information URL1 in the resource network of Http agreement correspondence, resource location information Info_hash1 in the resource network of Bt agreement correspondence, the resource location information eD2k-hash1 in the resource network of eD2k agreement correspondence; Resource to be downloaded is divided into three parts, is respectively first, second portion and third part, download the first that resource to be downloaded comprises according to resource to be downloaded resource location information URL1 in the resource network of Http agreement correspondence then; Resource location information Info_hash1 in the resource network of Bt agreement correspondence downloads the second portion that resource to be downloaded comprises according to resource to be downloaded; Resource location information eD2k-hash1 in the resource network of eD2k agreement correspondence downloads the third part that resource to be downloaded comprises according to resource to be downloaded; First, second portion and the third part downloaded are formed resource to be downloaded.
Wherein, need to prove: terminal is being downloaded in the process of resource to be downloaded according to resource to be downloaded corresponding resource location information in one or more resource networks, may get access to new resource location information, and terminal can be downloaded resource to be downloaded with the new resource location information of obtaining according to resource to be downloaded corresponding resource location information in one or more resource networks.For example, suppose that terminal downloads the process of the first that resource to be downloaded comprises according to resource to be downloaded resource location information URL1 in the resource network of Http agreement correspondence, get access to new resource location information URL2, then terminal is downloaded the first that resource to be downloaded comprises according to resource to be downloaded resource location information URL1 in the resource network of Http agreement correspondence and the new resource location information URL2 that obtains.
Step 307: the content that terminal comprises according to resource to be downloaded calculates the identification information of resource to be downloaded, sends the resource location information of the identification information of resource to be downloaded and resource correspondence to be downloaded to the resource mapping server;
Wherein, the content that terminal can comprise according to resource to be downloaded, and calculate the identification information of resource to be downloaded by MD5 (Message DigestAlgorithm MD5, Message Digest Algorithm 5) algorithm.Wherein, the identification information of every kind of resource all is to calculate according to the content that every kind of resource comprises, so every kind of only corresponding identification information of resource.
For example, after terminal downloads is finished resource to be downloaded, the content that comprises according to resource to be downloaded, and be ID1 by the identification information that the MD5 algorithm calculates resource to be downloaded, send the identification information ID1 of resource to be downloaded and resource location information URL1, URL2, Info_hash1 and the eD2k-hash1 of resource to be downloaded then.
Step 308: the resource mapping server receives identification information and the resource location information of resource to be downloaded, and sets up the identification information of resource to be downloaded and the corresponding relation of resource location information.
Particularly, the resource mapping server receives identification information and the resource location information of resource to be downloaded, identification information according to resource to be downloaded, search the identification information stored and the corresponding relation of resource location information, if find out corresponding resource location information, from resource location information to be downloaded, remove the resource location information of searching, store the identification information of resource to be downloaded and the corresponding relation of the resource location information of being left; If do not find out corresponding resource location information, then store the identification information of resource to be downloaded and the corresponding relation of resource location information.
For example, the resource location information URL1 of the identification information ID1 of the resource to be downloaded that resource mapping server receiving terminal sends and resource to be downloaded, URL2, Info_hash1 and eD2k-hash1, identification information ID1 according to resource to be downloaded searches identification information as shown in table 1 and the corresponding relation of resource location information, and the resource location information that finds out correspondence is URL1, Info_hash1 and eD2k-hash1, resource location information URL1 from resource to be downloaded, URL2, Info_hash1 and eD2k-hash1 remove the resource location information URL1 that searches, Info_hash1 and eD2k-hash1, the corresponding relation of the resource location information URL2 that stores the identification information ID1 of resource to be downloaded and be left obtains identification information as shown in table 2 and the corresponding relation of resource location information.
Table 2
| Identification information | Resource location information |
| ID1 | URL1 |
| ID1 | Info_hash1 |
| ID1 | eD2k-hash1 |
| ID1 | URL2 |
| …… | …… |
Further, can also comprise the corresponding relation of resource location information and download time in the resource mapping server, correspondingly,
The resource mapping server obtains the download time of downloading resource to be downloaded after receiving the resource location information of the resource to be downloaded that terminal sends, and sets up the resource location information of resource to be downloaded and the corresponding relation of the download time of obtaining.
Particularly, the resource mapping server obtains the current time, and with the download time of current time as download resource to be downloaded, search stored resource locating information and the corresponding relation of download time according to resource location information to be downloaded, if find the corresponding download time, then be updated to the download time of downloading resource to be downloaded the download time of searching; If do not find the corresponding download time, then store the resource location information of resource to be downloaded and the corresponding relation of the download time of downloading resource to be downloaded.
Further, the resource mapping server is also monitored the corresponding relation of resource location information and download time, if monitor out the resource location information of download time before Preset Time, then from the corresponding relation of identification information and resource location information, delete the corresponding relation that comprises the resource location information of download time before Preset Time; Further, can also from the corresponding relation of resource location information and download time, delete the corresponding relation that comprises the resource location information of download time before Preset Time.
Particularly, the resource mapping server periodically scans every corresponding relation in the corresponding relation of resource location information and download time, the download time that the corresponding relation of calculating scanning comprises and the time difference of current time, if the time difference of calculating surpasses Preset Time, then monitoring out the resource location information that the corresponding relation of scanning comprises is the resource location information of download time before Preset Time, from the corresponding relation of resource location information and download time, delete the corresponding relation of scanning then, and from the corresponding relation of identification information and resource location information, search the corresponding relation that comprises the resource location information of download time before Preset Time, and delete the corresponding relation of searching; If the time difference of calculating surpasses Preset Time, then monitoring out the resource location information that the corresponding relation of scanning comprises is the resource location information of download time within Preset Time.
In embodiments of the present invention, the downloading request message that resource mapping server receiving terminal sends, carry resource to be downloaded resource location information in first resource network according to this downloading request message and obtain resource to be downloaded resource location information in first and second resource networks respectively, send and download response message to terminal, and this download response message carries resource to be downloaded resource location information in first and second resource networks respectively, terminal according to resource to be downloaded respectively the resource location information in first and second resource networks download resource to be downloaded, so terminal can be from different resource networks downloaded resources, thereby can rationally use resource node in each resource network.
Embodiment 4
As shown in Figure 4, the embodiment of the invention provides a kind of terminal, comprising:
First sending module 401 is used for when downloading resource to be downloaded, send downloading request message to the resource mapping server, and this downloading request message is carried resource to be downloaded resource location information in first resource network;
First receiver module 402, be used for receiving the download response message that the resource mapping server sends, this download response message carries resource to be downloaded resource location information in first and second resource networks respectively, and second resource network is other one or more resource networks except first resource network;
Download module 403 is used for according to resource to be downloaded downloading resource to be downloaded respectively in the resource location information of first and second resource networks.
Further enter ground, this terminal also comprises:
First acquisition module is used for obtaining resource to be downloaded in the resource location information of first resource network.
Further, this terminal also comprises:
Computing module is used for calculating according to the content that resource to be downloaded comprises the identification information of resource to be downloaded, sends the identification information of resource to be downloaded and resource location information to the resource mapping server.
In embodiments of the present invention, terminal is when downloading resource to be downloaded, obtain resource to be downloaded resource location information in first and second resource networks respectively, according to resource to be downloaded respectively the resource location information in first and second resource networks download resource to be downloaded; So terminal can be from different resource networks downloaded resources, thereby can rationally use resource node in each resource network.
Embodiment 5
As shown in Figure 5, the embodiment of the invention provides a kind of resource mapping server, comprising:
Second receiver module 501 is used for the downloading request message that receiving terminal sends, and this downloading request message is carried resource to be downloaded resource location information in first resource network;
Second acquisition module 502, be used for according to resource to be downloaded resource location information at first resource network, obtain resource to be downloaded resource location information in first and second resource networks respectively, second resource network is other one or more resource networks except first resource network;
Second sending module 503, be used for sending and download response message to terminal, this download response message carries resource to be downloaded resource location information in first and second resource networks respectively, make terminal according to resource to be downloaded respectively the resource location information in first and second resource networks download resource to be downloaded.
Wherein,second acquisition module 502 comprises:
First searches module, is used for according to resource to be downloaded resource location information at first resource network, obtains the identification information of resource to be downloaded from the corresponding relation of the identification information stored and resource location information;
Second searches module, is used for the identification information according to resource to be downloaded, obtains resource to be downloaded resource location information in first and second resource networks respectively from the corresponding relation of the identification information stored and resource location information.
Further, this server also comprises:
First sets up module, is used for after terminal downloads is finished resource to be downloaded, and receiving terminal sends identification information and the resource location information of resource to be downloaded, sets up the identification information of resource to be downloaded and the corresponding relation of resource location information.
Further, this server also comprises:
Second sets up module, is used for obtaining the download time of downloading resource to be downloaded, sets up the resource location information of resource to be downloaded and the corresponding relation of download time.
Further, this server also comprises:
First removing module, be used for the corresponding relation of stored resource locating information and download time is monitored, if monitor out the resource location information of download time before Preset Time, then deletion comprises the corresponding relation of the resource location information of download time before Preset Time from the corresponding relation of the identification information stored and resource location information.
Further, this server also comprises:
Second removing module, if be used for monitoring out the resource location information of download time before Preset Time, then from the corresponding relation of stored resource locating information and download time, delete the corresponding relation that comprises the resource location information of download time before Preset Time.
In embodiments of the present invention, the resource mapping server receives downloading request message, carry resource to be downloaded resource location information in first resource network according to this downloading request message and obtain resource to be downloaded resource location information in first and second resource networks respectively, send and download response message to terminal, and this download response message carries resource to be downloaded resource location information in first and second resource networks respectively, and make terminal according to resource to be downloaded respectively the resource location information in first and second resource networks download resource to be downloaded, so terminal can be from different resource networks downloaded resources, thereby can rationally use resource node in each resource network.
Embodiment 6
As shown in Figure 6, the embodiment of the invention provides a kind of system of downloaded resources, comprising:
As embodiment 4 described terminals 601 with as embodiment 5 described resource mapping servers 602.
In embodiments of the present invention, the downloading request message that resource mapping server receiving terminal sends, carry resource to be downloaded resource location information in first resource network according to this downloading request message and obtain resource to be downloaded resource location information in first and second resource networks respectively, send and download response message to terminal, and this download response message carries resource to be downloaded resource location information in first and second resource networks respectively, terminal according to resource to be downloaded respectively the resource location information in first and second resource networks download resource to be downloaded, so terminal can be from different resource networks downloaded resources, thereby can rationally use resource node in each resource network.
The all or part of step that one of ordinary skill in the art will appreciate that realization above-described embodiment can be finished by hardware, also can instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.