Summary of the invention
The present invention provides a kind of for realizing in instant messaging to the method for user's transfer files and device, it is possible to transmitted to multiple user by file fast and efficiently.
The present invention provides following scheme:
For realizing a method for transfer files in instant messaging, comprising: the indication information receiving user, described indication information indicates the first instant messaging IM client terminal by file transfer at least two the 2nd IM client terminals; A described IM client terminal is to the file index information of file described in described at least two the 2nd IM client transmissions; Described 2nd IM client terminal, according to described file index information, obtains the file section of the described file of part from the offer source of file described at least one; The reception information that the file of described file is cut into slices by described 2nd IM client terminal circular separately, and know the reception information that the file of described file is cut into slices by the 2nd IM client terminal described in other; The reception information that the file of described file is cut into slices by described 2nd IM client terminal according to other the 2nd IM client terminal known separately, each other the file section of mutual described file required separately.
Optionally, the file section that described 2nd IM client terminal obtains the described file of part according to described index information from the offer source of file described at least one comprises: described 2nd IM client terminal according to described file index information from the file section with file described in the first server fetching portion of described file.
Optionally, also comprise: described file cutting is the section of multiple file by a described IM client terminal; The file section of described file is transferred to described first server by a described IM client terminal successively, receiving after the section of at least one complete described file until described first server, described first server can provide its described file section received for described 2nd IM client terminal.
Optionally, the file section that described 2nd IM client terminal obtains the described file of part according to described index information from the offer source of file described at least one comprises: described 2nd IM client terminal obtains the file section of the described file of part according to described index information from a described IM client terminal.
Optionally, when described 2nd IM client terminal and a described IM client terminal belong to an Intranet, described 2nd IM client terminal obtains the file section of the described file of part according to described index information from a described IM client terminal.
Optionally, also comprise: other servers that described 2nd IM client terminal has described file from network side obtain described file.
Optionally, the reception information that the file of described file is cut into slices by described 2nd IM client terminal circular separately, and know the reception information that the file of described file is cut into slices by other the 2nd IM client terminal: the reception information that the file of described file is cut into slices separately by described 2nd IM client terminal to the 2nd server circular; The summary information that described 2nd IM client terminal issues according to described 2nd server, knows the reception situation that the file of described file is cut into slices by other the 2nd IM client terminal.
Optionally, described 2nd IM client terminal is according to described file index information, the file section obtaining the described file of part from the offer source of file described at least one comprises: described each 2nd IM client terminal, according to described file index information, obtains the file section of the different part of described file from the offer source of file described at least one.
Optionally, the indication information of described reception user, file transfer comprises at least two the 2nd IM client terminals by described indication information instruction the one IM client terminal: receiving user needs the first indication information by immediate communication tool transfer files; Described first indication information triggers the information calling an IM client terminal, for described user provides the candidate information of the 2nd IM client terminal that can be used as described file reception side; Receive the 2nd indication information that described user provides according to described candidate information, described 2nd indication information indicate that described user selects as described at least two the 2nd IM client terminals of file reception side.
Optionally, the indication information of described reception user, file transfer comprises at least two the 2nd IM client terminals by described indication information instruction the one IM client terminal: the 3rd indication information being received user by an entrance of an IM client terminal, described 3rd indication information indicating user file waiting for transmission; Receiving the 4th indication information of user, described 4th indication information indicates at least two the 2nd IM client terminals as file reception side that described user selects.
For realizing a device for transfer files in instant messaging, comprising: instruction unit, for receiving the indication information of user, file transfer is given at least two the 2nd IM client terminals by described indication information instruction the one IM client terminal; Indexing units, for the file index information of a described IM client terminal to file described in described at least two the 2nd IM client transmissions; First file obtaining unit, for described 2nd IM client terminal according to described file index information, obtains the file section of the described file of part from the offer source of file described at least one; Information circular unit, for the reception information that the file of described file is cut into slices by described 2nd IM client terminal circular separately, and knows the reception information that the file of described file is cut into slices by the 2nd IM client terminal described in other; 2nd file obtaining unit, for the reception information that the file of described file is cut into slices by described 2nd IM client terminal according to other the 2nd IM client terminal known separately, the file section of mutual described file required separately each other.
Optionally, described first file obtaining unit specifically comprises the first file and obtains subelement, described first file obtains subelement, specifically for described 2nd IM client terminal according to described file index information from the file section with file described in the first server fetching portion of described file.
Optionally, also comprise: file cutting unit, for a described IM client terminal by described file cutting be multiple file section; First file transfer unit, for a described IM client terminal, the file section of described file is transferred to described first server successively, receiving after the section of at least one complete described file until described first server, described first server can provide its described file section received for described 2nd IM client terminal.
Optionally, described first file obtaining unit specifically comprises the 2nd file and obtains subelement: described 2nd file obtains subelement, obtains the file section of the described file of part from a described IM client terminal according to described index information specifically for described 2nd IM client terminal.
Optionally, described 2nd file obtains subelement, specifically for when described 2nd IM client terminal and a described IM client terminal belong to an Intranet, described 2nd IM client terminal obtains the file section of the described file of part according to described index information from a described IM client terminal.
Optionally, also comprise: described 3rd file obtaining unit, obtain the file section of the described file of part specifically for described 2nd IM client terminal according to other servers that described index information has a described file from network side.
Optionally, described information circular unit comprises: self information circular unit, for the reception information that the file of described file is cut into slices separately by described 2nd IM client terminal to the 2nd server circular; Other client-side informations know unit, for the summary information that described 2nd IM client terminal issues according to described 2nd server, know the reception situation that the file of described file is cut into slices by other the 2nd IM client terminal.
Optionally, described first file obtaining unit, specifically for described each 2nd IM client terminal according to described file index information, obtains the file section of the different part of described file from the offer source of file described at least one.
Optionally, described instruction unit specifically comprises: the first instruction unit, needs the first indication information by immediate communication tool transfer files for receiving user; Unit is called in triggering, for triggering the information calling an IM client terminal when receiving described first indication information, for described user provides the candidate information of the 2nd IM client terminal that can be used as described file reception side; Take over party indicates unit, for receiving the 2nd indication information that described user provides according to described candidate information, described 2nd indication information indicate that described user selects as described at least two the 2nd IM client terminals of file reception side.
Optionally, described instruction unit comprises: the 3rd instruction unit, for being received the 3rd indication information of user by an entrance of an IM client terminal, described 3rd indication information indicating user file waiting for transmission; 4th instruction unit, for receiving the 4th indication information of described user, described 4th indication information indicates at least two the 2nd IM client terminals as file reception side that described user selects.
A kind of system for realizing transfer files in instant messaging, comprise: as an IM client terminal of transfer files transmission side, with at least two the 2nd IM client terminals as transfer files take over party, wherein, a described IM client terminal, for receiving the indication information of user, described indication information indicates the first instant messaging IM client terminal by file transfer at least two the 2nd IM client terminals; And the file index information to file described in described at least two the 2nd IM client transmissions; Described 2nd IM client terminal, for according to described file index information, obtaining the file section of the described file of part from the offer source of file described at least one; And the reception information that the file of described file is cut into slices by circular separately, and know the reception information that the file of described file is cut into slices by the 2nd IM client terminal described in other; According to the reception information that the file of described file is cut into slices by other the 2nd IM client terminal known separately, the file section of mutual described file required separately each other.
Optionally, also comprise first server: a described IM client terminal, also for being the section of multiple file by described file cutting, and the section of the file of described file is transferred to described first server successively; Described first server, for waiting receive at least one complete described file cut into slices after as one of the offer source of described file, for described 2nd IM client terminal provides its described file section received.
According to specific embodiment provided by the invention, the present invention discloses following technique effect:
Pass through the embodiment of the present invention, first by the IM client terminal as the side of transmissioning, the file index information of file to be transmitted is sent at least two the 2nd IM client terminals of take over party that user indicates-namely, instead of directly by file transfer in the shared server of certain group, therefore, take over party is not limited to the user of certain customer group, can being the user not belonging to same customer group, therefore the take over party of the embodiment of the present invention be by the restriction of customer group. and, after multiple 2nd IM client terminal receives portion's file section respectively, owing to each the 2nd IM client terminal can know that other the 2nd IM are to the file section reception information of this file, therefore each 2nd IM client terminal can be cut into slices by mutual file required separately each other, instead of can only from shared server file in download respectively as each the 2nd IM client terminal of prior art, so the present invention reaches the transmission efficiency that improve and transmit identical file (mass-sending file) to multiple user, if the 2nd IM client terminal especially as take over party is more many, just can obtain different file parts respectively from more many 2nd IM client terminals, and then the advantage of transmission efficiency is more obvious.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only the present invention's part embodiment, instead of whole embodiments. Based on the embodiment in the present invention, other embodiments all that those of ordinary skill in the art obtain, all belong to the scope of protection of the invention.
In order to more clearly introduce the technical scheme of the embodiment of the present invention, below in conjunction with the environment of system schematic diagram of the application embodiment of the present invention, introduce the present invention for realizing the technical scheme of the embodiment of the method for transfer files in instant messaging.
Please first consult Fig. 1, its environment of system schematic diagram provided for the application embodiment of the present invention. An IM client terminal 110 is comprised, multiple 2nd IM client terminal 120 at native system environment, and first server 130, the 2nd server 140, the 3rd server 150 and the 4th server 160, they are all connected with internet. Referring to Fig. 2, it is a kind of method first implementing procedure figure for realizing transfer files in instant messaging provided by the invention.
Step 210: the indication information receiving user, file transfer is given at least two the 2nd IM client terminals by described indication information instruction the one IM client terminal.
Under many circumstances, user has the demand that identical file is transferred to multiple user, all the more so at instant communication field. As at least two the 2nd IM client terminals of transfer files take over party, it is possible to be two the 2nd IM client terminals that user directly selects, it is also possible to be that user selects certain customer group, because a customer group just comprises multiple 2nd IM client terminal. Or, it is also possible to be the 2nd IM client terminal both having selected some independent as file reception side, select again one or several group (each group all comprises multiple 2nd IM client terminal) as the take over party of file.
In concrete practical application, user indicates an IM client terminal to have a variety of by file transfer to the mode of at least two the 2nd IM client terminals, and the embodiment of the present invention, to this not restriction, only provides two kinds below and compares common implementation example.
The first example, user have selected a certain file in this locality, it is desirable to this file is transmitted (can also be called " sharing ") to multiple user by immediate communication tool. Specifically, first receive user and need the first indication information by immediate communication tool transfer files, described first indication information triggers the information calling an IM client terminal, for described user provides the candidate information of the 2nd IM client terminal that can be used as described file reception side; Then receive the 2nd indication information that described user provides according to described candidate information, described 2nd indication information indicate that described user selects as described at least two the 2nd IM client terminals of file reception side.
It will be appreciated by those skilled in the art that, when specific implementation product form, design varied, therefore when specific implementation by which kind of mode, at the first indication information, the 2nd indication information that where receive user, the embodiment of the present invention is restriction not. As long as an IM client terminal can be allowed to know, and user needs by immediate communication tool transfer files, then by calling the information of an IM client terminal, there is provided as the candidate information of the 2nd IM client terminal of file reception side, user can be allowed to select final at least two the 2nd IM client terminals as take over party to user. Such as under the environment of system of Fig. 1, user have selected a certain file, click right ejects right button menu, and user chooses (being such as a similar function button option shared) of right button menu, and user needs to transmit this file by immediate communication tool to choose this just to show; Then the information calling an IM client terminal 110 is triggered (if being now also not activated an IM client terminal 110, then need first to start an IM client terminal 110, then information wherein can just be called), such as recall the information such as good friend of user, allow user select to wish file transfer to which good friend (such as user have selected multiple 2nd IM client terminal 120).
2nd kind of example, a certain user has started instant communication client program, in the process of instant messaging, it is desirable to transmit identical file to multiple user. Specifically, the 3rd indication information of user is received by an entrance of an IM client terminal, described 3rd indication information indicating user file waiting for transmission; Receiving the 4th indication information of user, described 4th indication information indicates at least two the 2nd IM client terminals as file reception side that described user selects. It should be noted that, it is first receive the 3rd indication information or first receive the 4th indication information, not restriction, can be different according to practical situation. Such as under the environment of system described in Fig. 1, user can first indicate wish by file transfer to which the 2nd IM client terminal 120, and then instruction wish transmission be which file; Can also first indicate which file of transmission, then which the 2nd IM client terminal 120 instruction to be transferred to. With reason, it will be appreciated by those skilled in the art that, when specific implementation product form, design varied, therefore when specific implementation by which kind of mode, at the 3rd indication information and the 4th indication information that where receive user, the embodiment of the present invention is restriction not.
Step 220: an IM client terminal is to the file index information of file described at least two the 2nd IM client transmissions.
When specific implementation, in order to show what the file oneself sent is to each take over party, and being convenient to take over party and obtain this file from the offer source of file, the IM client terminal as transmission side can first send file index information to each take over party. In the embodiment of the present invention, file can be split as multiple file is cut into slices before being transmitted, each file section record MD5 value, certain whole file also records MD5 value, and described index information can comprise some information such as file identifies, the associated viscera of file section, MD5.
Step 230: the 2nd IM client terminal, according to described file index information, obtains the file section of the described file of part from the offer source of file described at least one.
Owing to the 2nd IM client terminal is according to the file index information received, just can know what the file that transmission side transmits is, and then just can determine that oneself receives this file the need of real, and receive whole or part, if needing to receive, the content that the offer source from least one this file obtains this file so just can be started. It is all a process successively owing to which offer source to obtain file from, receives the file section of this file successively, therefore in the file section starting usually just to obtain this file of a part.
The offer source of file can have multiple when specific implementation, such as:
The first, owing to an IM client terminal is the transmission side of this file, therefore, the offer source of an IM client terminal inherently this file, therefore, the 2nd IM client terminal can obtain the file section of the described file of part according to described index information from an IM client terminal. Corresponding to the environment of system of Fig. 1, the offer source of an an IM client terminal 110 inherently file, each 2nd IM client terminal 120 can obtain this file from an IM client terminal 110. In order to obtain transmission efficiency faster, it is possible to when certain or when a few the 2nd IM client terminals 120 as take over party belong to an Intranet with an IM client terminal 110, it is preferable that select the file obtaining partial document from an IM client terminal 110 to cut into slices.
2nd kind, file waiting for transmission can be first transferred to a server by an IM client terminal, and then this server also becomes the offer source of this file. Such as under the environment of system shown in Fig. 1, concrete implementation can be: file cutting waiting for transmission is the section of multiple file by an IM client terminal 110, then the file section of this file is transferred to first server 130 successively, receiving after the section of at least one complete file until first server 130, first server 130 just can provide its file received to cut into slices for the 2nd IM client terminal 120. When specific implementation, can after each 2nd IM client terminal 120 receives file index information, inquiry is sent to first server 130 according to file index information, inquiry first server 130 whether can file needed for its offer, or say that first server 130 can be it provides which file section of this file. If first server 130 can provide, the file section of correspondence so just can be sent to the 2nd IM client terminal of inquiry.
It should be noted that, in embodiments of the present invention, it is after file is cut into slices due to an IM client terminal 110, file section is sent to first server 130 successively, therefore, the one IM client terminals 110 such as the 2nd IM client terminal 120 does not need could obtain the content of this file after file is all transferred to first server 130 from first server. And in the prior art, it is all that file waiting for transmission is not carried out slicing treatment by transmission side, directly by the file transfer without cutting to shared server (being such as transferred in certain group of communal spaces), therefore each take over party could start to download after must waiting transmission side that all file is transferred to shared server. Visible, inventive embodiments by first cutting into slices to file before transfer files, transfer files successively is adopted to cut into slices the technical scheme of server, reach transmission side in the process to server transport file (file section), take over party also can synchronously from the technique effect of server downloading files (file section), hinge structure, it is to increase by the efficiency of transit server file transfer in instant messaging.
Part or all of file can be obtained, when specific implementation, it is possible to select parallel use according to practical situation, or be used alone from the offer source of above-mentioned two kinds of files. Such as, the 2nd IM client terminal 120 having both can obtain a file section (such as the 1-5 file section) from first server 130, obtains again the file section (such as the 6-10 file section) of other a part from an IM client terminal 110. The 2nd IM client terminal 120 having then only obtains partial document section from first server 130, and does not obtain file section from an IM client terminal 110. The present invention is to this not restriction.
Optionally, in order to better improve file transmission efficiency, the information that file is respectively cut into slices can be not only provided, it is also possible to provide suggestion or indicate each the 2nd IM client terminal preferentially should obtain the section of which part from the offer source (such as an IM client terminal or first server or other server etc.) of aforementioned document in file index information. Preferably, obtain file section from described offer source different for different 2nd IM client terminal. Such as, initial user first (one of the 2nd IM client terminal) is indicated to obtain the section of 1-3 file from an IM client terminal or first server; Instruction initial user second (another the 2nd IM client terminal) obtains the section of 4-6 file from an IM client terminal or first server; Instruction initial user third (another the 2nd IM client terminal) obtains the section of 7-10 file from an IM client terminal or first server; Etc., the rest may be inferred, and generally speaking, what each 2nd IM client terminal obtained from file offer source is the file section of the different part of this file at first. Be conducive to follow-up each 2nd IM client terminal mutual (see step 250) each other like this. Certainly, it will be appreciated by those skilled in the art that, if it is also feasible for not obtaining different file section partly in each 2nd IM client terminal of initial instruction from the offer source of file, due to different, the required file section of each 2nd IM client downloads speed also may the file section downloaded of different, override requests also may be different, so the file section that follow-up each 2nd IM client terminal obtained in certain moment is also in most cases also not quite similar, therefore or can each other mutual separately needed for.
Step 240: the reception information that the file of described file is cut into slices by the 2nd IM client terminal circular separately, and know the reception information that the file of described file is cut into slices by the 2nd IM client terminal described in other.
This step has multiple mode when specific implementation, carries out message as by a server and gathers. Specifically, such as under the environment of system shown in Fig. 1, some the 2nd IM client terminal 120 is made to have obtained partial document section by step 230, so these IM client terminals 120 just circulate a notice of the reception information cut into slices by the file of described file separately to the 2nd server 140, such as circulate a notice of oneself to have received which file section of this file; Then the reception information that each 2nd IM client terminal is just reported by the 2nd server 140 gathers (such as currently has at this file of reception for which the 2nd IM client terminal 120, have received which file section respectively), summary information is handed down to each 2nd IM client terminal by the 2nd server 140 again, make the summary information that the 2nd IM client terminal issues according to the 2nd server 140, so that it may to know the reception situation that the file of described file is cut into slices by other the 2nd IM client terminal 120. Such as a certain the 2nd IM client terminal 120 just knows that other one the 2nd IM client terminal 120 have received the 5th file section of this file, also has a 2nd IM client terminal 120 to have received the 6-9 file section etc. Generally speaking, be just equivalent to each 2nd IM client terminal all knows which the file section that have received this file each other.
Step 250: the reception information that the file of described file is cut into slices by the 2nd IM client terminal according to other the 2nd IM client terminal known separately, each other the file section of mutual described file required separately.
Owing to each the 2nd IM client terminal 120 has known other the 2nd IM client terminals 120 have received which file section of this file, so, these the 2nd IM client terminals 120 each other just can by connecting, mutual file required separately section. such as, first the 2nd IM client terminal 120 has received the 1-5 file section of file from first server 130, the 6-10 file section of this file is also needed to obtain all files, and know that the 2nd the 2nd IM client terminal 120 has received the 6-8 file section of this file, 3rd the 2nd IM client terminal 120 has received the 9-10 file section of this file, so this first the 2nd IM client terminal 120 just can respectively with the 2nd IM client terminal 120, 3rd IM client terminal 120 connects, the 6-8 file section is obtained from the 2nd the 2nd IM client terminal 120, the 9-10 file section is obtained from the 3rd IM client terminal 120. this first the 2nd IM client terminal 120 final obtains whole contents of this file respectively from first server 130, the 2nd the 2nd IM client terminal 120, the 3rd IM client terminal more than 120 approach. other the 2nd IM client terminals are also analogize with this, are equivalent to each the 2nd IM client terminal 120 and both can obtain the section of the file needed for oneself from other the 2nd IM client terminal 120, it is possible to think that other the 2nd IM client terminal provides the file section oneself received.
Concrete example corresponding to providing in step 230: user's first (one of the 2nd IM client terminal) obtains the section of 1-3 file from an IM client terminal or first server; User's second (another the 2nd IM client terminal) obtains the section of 4-6 file from an IM client terminal or first server; User third (another the 2nd IM client terminal) obtains the section of 7-10 file from an IM client terminal or first server. And then, in this step 250, user's first just can obtain the 4-6 file section of this file from user's second, obtains the 7-10 file section of this file from user third; With reason, user's second can obtain the 1-3 file section of this file from user's first, obtains the 7-10 file section of this file from user third; User third obtains the 1-3 file section of this file from user's first, obtains the 4-6 file section of this file from user's second. It thus is seen that in this case, each 2nd IM client terminal well achieves mutual file required separately section each other.
It should be noted that, while cut into slices mutually by mutual file required each other for each 2nd IM client terminal, can also continue to obtain required file section from first server or an IM client terminal, that is step 230 can be a lasting process, in certain stage, it is possible to step 250 executed in parallel. Namely, each 2nd IM client terminal can obtain the section of the file needed for oneself by some each approach (an IM client terminal, first server, other server or other the 2nd IM client terminal) simultaneously, as long as obtain the file section of different part from different approaches, so just can reach the effect of many approach complementations, thus reach higher transmission efficiency. Certainly, also likely certain the 2nd IM client terminal need obtain file last file cut into slices time, which approach to obtain faster because uncertain by, and do not have other file section needs to obtain, so the section of this file may be asked for by multiple approach simultaneously, to ensure to obtain the section of this last file the soonest. So, in most cases, in order to ensure the fastest file transfer rate, the file section obtained from different approaches is different by the embodiment of the present invention, but obtains same file section from different approaches under also not getting rid of individual cases.
Optionally, each the 2nd IM client terminal is except obtaining the file part needed for oneself from an IM client terminal, first server or other the 2nd IM client terminals, it is also possible to other servers from network side with described file obtain the file part needed for oneself. Because if the file of transmission is common file, so may also have in network side and other servers can be downloaded this file, the 3rd server 150 and the 4th server 160 etc. in such as Fig. 1. During specific implementation, the download address of some common files can be collected by multiple means by an instant communication server, and then certain the 2nd IM client terminal 120 is when needing certain file, which server can be also had according to file index information can to provide the download of this file to the inquiry of this instant communication server, if instant communication server can inquire, then the relevant informations such as the download address inquired are returned to the 2nd IM client terminal 120, and then the 2nd IM client terminal 120 just can go to obtain described file from the server that these download address are pointed to.
As seen through the above description of the embodiments, the technician of this area can be well understood to the present invention and can realize by the mode that software adds required general hardware platform. Based on such understanding, the technical scheme of the present invention in essence or says that part prior art contributed can embody with the form of software product, this computer software product can be stored in storage media, such as ROM/RAM, magnetic disc, CD etc., comprise some instructions with so that a computer equipment (can be Personal Computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
Corresponding with aforementioned embodiment of the method, present invention also offers a kind of device embodiment for realizing transfer files in instant messaging, comprise instruction unit 310, indexing units 320, first file obtaining unit 330, information circular unit 340 and the 2nd file obtaining unit 350.
Wherein, instruction unit 310, for receiving the indication information of user, file transfer is given at least two the 2nd IM client terminals by described indication information instruction the one IM client terminal; Indexing units 320, for the file index information of a described IM client terminal to file described in described at least two the 2nd IM client transmissions; First file obtaining unit 330, for described 2nd IM client terminal according to described file index information, obtains the file section of the described file of part from the offer source of file described at least one; Information circular unit 340, for the reception information that the file of described file is cut into slices by described 2nd IM client terminal circular separately, and knows the reception information that the file of described file is cut into slices by the 2nd IM client terminal described in other; 2nd file obtaining unit 350, for the reception information that the file of described file is cut into slices by described 2nd IM client terminal according to other the 2nd IM client terminal known separately, the file section of mutual described file required separately each other.
Optionally, described first file obtaining unit 330 specifically comprises the first file and obtains subelement, specifically for described 2nd IM client terminal according to described file index information from the file section with file described in the first server fetching portion of described file.
Optionally, the device in the embodiment of the present invention can also comprise: file cutting unit, for a described IM client terminal by described file cutting be multiple file section; And the first file transfer unit, for a described IM client terminal, the file section of described file is transferred to described first server successively, receiving after the section of at least one complete described file until described first server, described first server can provide its described file section received for described 2nd IM client terminal.
Optionally, described first file obtaining unit 330 specifically comprises the 2nd file and obtains subelement, obtains the file section of the described file of part from a described IM client terminal according to described index information for described 2nd IM client terminal.
Optionally, described first file obtaining unit 330, specifically for described each 2nd IM client terminal according to described file index information, obtains the file section of the different part of described file from the offer source of file described at least one.
Optionally, described 2nd file obtains subelement, specifically for when described 2nd IM client terminal and a described IM client terminal belong to an Intranet, described 2nd IM client terminal obtains the file section of the described file of part according to described index information from a described IM client terminal.
Optionally, the device described in the embodiment of the present invention also comprises the 3rd file obtaining unit, obtains the file section of the described file of part according to other servers that described index information has a described file from network side specifically for described 2nd IM client terminal.
Optionally, described information circular unit 340 specifically comprises: self information circular unit, for the reception information that the file of described file is cut into slices separately by described 2nd IM client terminal to the 2nd server circular; Other client-side informations know unit, for the summary information that described 2nd IM client terminal issues according to described 2nd server, know the reception situation that the file of described file is cut into slices by other the 2nd IM client terminal.
Optionally, described instruction unit 310 specifically comprises: the first instruction unit, needs the first indication information by immediate communication tool transfer files for receiving user; Unit is called in triggering, for triggering the information calling an IM client terminal when receiving described first indication information, for described user provides the candidate information of the 2nd IM client terminal that can be used as described file reception side; Take over party indicates unit, for receiving the 2nd indication information that described user provides according to described candidate information, described 2nd indication information indicate that described user selects as described at least two the 2nd IM client terminals of file reception side.
Optionally, described instruction unit 310 can specifically comprise: the 3rd instruction unit, for being received the 3rd indication information of user by an entrance of an IM client terminal, described 3rd indication information indicating user file waiting for transmission; 4th instruction unit, for receiving the 4th indication information of described user, described 4th indication information indicates at least two the 2nd IM client terminals as file reception side that described user selects.
Further, present invention also offers a kind of system for realizing transfer files in instant messaging, specifically can referring to the environment of system schematic diagram described in Fig. 1.
System in the embodiment of the present invention comprises: as an IM client terminal 110 of transfer files transmission side, and at least two the 2nd IM client terminals 120 as transfer files take over party. Wherein, a described IM client terminal 110, for receiving the indication information of user, described indication information indicates the first instant messaging IM client terminal 110 by file transfer at least two the 2nd IM client terminals 120; And the file index information of described file is transmitted to described at least two the 2nd IM client terminals 120; Described 2nd IM client terminal 120, for according to described file index information, obtaining the file section of the described file of part from the offer source of file described at least one; And the reception information that the file of described file is cut into slices by circular separately, and know the reception information that the file of described file is cut into slices by the 2nd IM client terminal 120 described in other; According to the reception information that the file of described file is cut into slices by other the 2nd IM client terminal 120 known separately, the file section of mutual described file required separately each other.
Optionally, described system also comprises first server 130, an IM client terminal 110, also for being the section of multiple file by described file cutting, and the section of the file of described file is transferred to first server 120 successively; First server 130, for waiting receive at least one complete described file cut into slices after as one of the offer source of described file, for the 2nd IM client terminal 120 provides its described file section received.
It should be noted that, for aforementioned means or system embodiment, owing to it is substantially similar to embodiment of the method, so describing fairly simple, relevant part illustrates see the part of embodiment of the method. Apparatus and system embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or can also be distributed on multiple NE. Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme. Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Can be found out by the description of foregoing embodiments, hinge structure is first dealt into group communal space (i.e. a shared server) to the file of multiple user by be transmitted, after treating that this file all transmits, the user of this group could go the technology downloading this file to compare from shared server, and the embodiment of the present invention has many useful effects:
Owing to the file index information of file to be transmitted is first sent at least two the 2nd IM client terminals of take over party that user indicates-namely by the IM client terminal as the side of transmissioning by the embodiment of the present invention, instead of directly by file transfer in the shared server of certain group, therefore, take over party is not limited to the user of certain customer group, and can be the user not belonging to same customer group, not by the restriction of customer group.
And, after multiple 2nd IM client terminal receives branch file section respectively, can cut into slices by mutual file required separately each other, instead of can only from shared server file in download respectively as each the 2nd IM client terminal of prior art, so reaching the transmission efficiency that improve and transmit identical file (mass-sending file) to multiple user, if the 2nd IM client terminal especially as take over party is more many, just can obtain different file parts respectively from more many 2nd IM client terminals, and then the advantage of transmission efficiency is more obvious.
Further, owing to the IM client terminal as transmission side is before sending file to be transmitted, can first by file cutting to be transmitted be multiple file section, therefore no matter it is the 2nd IM client terminal or first server, the file section that just can provide for other the 2nd IM client terminals after a complete file is cut into slices and receive can waiting be provided, and need not wait receive all files after just can be supplied to other client terminals in need, therefore almost can reach in the process of an IM client transmissions file (namely file does not also transmit complete), 2nd IM client terminal has started to be received the technique effect of this file by multiple support channels, thus the further mass-sending transmission efficiency that improve the embodiment of the present invention.
Further, file section that not only can be required separately alternately each other as each 2nd IM client terminal of take over party, required file section (namely an IM client transmissions is to the file first server) can also be obtained from first server, and/or, directly can also obtain the section of some files from an IM client terminal, and/or, it is also possible to have from network side other servers of this file and obtain partial document, thus further improve file transfer rate. Generally speaking, when an IM client terminal needs to multiple 2nd IM client transmissions file, 2nd IM client terminal can pass through number of ways, the parallel different parts obtaining file from the offer source (such as other the 2nd IM client terminals, first server, other webservers, an IM client terminal etc.) of multiple file, finally can obtain all files within the relatively short time, substantially increase the transmission efficiency transmitting identical file in instant messaging to multiple user.
It should be noted that, each embodiment in this specification sheets all adopts the mode gone forward one by one to describe, and what between each embodiment, identical similar part illustrated see, each embodiment emphasis mutually is the difference with other embodiments.
Above to a kind of method, Apparatus and system realizing transfer files in instant messaging provided by the present invention, it is described in detail, apply specific case herein the principle of the present invention and enforcement mode to have been set forth, illustrating just for helping the method understanding the present invention and core concept thereof of above embodiment; Meanwhile, for one of ordinary skill in the art, according to the thought of the present invention, all will change in specific embodiments and applications. In sum, this description should not be construed as limitation of the present invention.