The present disclosure relates to the field of Instant Messaging (IM), and in particular to a method and system for file transfer each of which enables automatic resumption of sending and receiving, an instant messaging terminal, and a computer storage medium.
All existing instant messaging systems can transfer files. Thus, a user of an instant messaging system may send a file to a friend or receive a file from a friend, wherein a basic process is that:
(1) a sender sends a file transfer request to a receiver, then waits for a response of the receiver;
(2) after an instant messaging client of the receiver receives the file transfer request, the client prompts the receiver user on the screen to receive the file, and after the receiver user clicks on a receiving button to confirm to receive, the receiver sends the sender a response to agree to receive;
(3) after receiving the response to agree to receive, the sender starts to transmit the file to the receiver;
(4) during the file transfer, if a network connection is accidentally interrupted, then after detecting the transfer disconnection, the sender prompts the sender user to retransfer or to resumption of the transfer, and after the sender user clicks on a retransfer or resuming-transfer button, the sender sends the receiver a retransfer or resuming-transfer request;
(5) after the receiver detects the transfer disconnection, the receiver user is prompted of the transfer disconnection; after the receiver detects the retransfer or resuming-transfer request from the sender, the receiver user is prompted whether to agree to retransfer or to resumption of the transfer; after the receiver user confirms, a retransfer or resuming-transfer response is sent to the sender;
(6) when receiving a response from the sender to agree to retransfer or resumption of the transfer, the receiver retransfers the file, or resumes the transfer of the interrupted file to the sender.
On-line file transfer refers to file transfer through a network connection established directed between the sender and the receiver when both the sender and the receiver of the file are online. Off-line file transfer refers to that when the receiver of the file is offline, the file to be transferred is stored by a server, and is forwarded by the server to the receiver after the receiver goes online.
In such a way, file transfer between friends can be implemented. In a case of a poor network environment in which the transfer is susceptible to interruption, the existing instant messaging system requires manual confirmation from both the sender and the receiver to determine whether a retransfer or resumption of the transfer is needed. The retransfer refers to transferring the whole file once again, whereas the resumption of the transfer refers to resumption of the transfer at a point of interruption, namely, transfer of the remaining part that is not transferred is continued at a location of interruption based on the transferred part of the file.
However, when the transfer is interrupted frequently due to poor network environment, the file sender has to initiate a file sending operation frequently; meanwhile, the file receiver has to initiate a file receiving operation frequently, which is very inconvenient for users. Particularly, when a user at one party is not on scene, the file transfer is unable to be completed.
Therefore, in case of a poor network environment, too much manual intervention is required when file transfer by an existing instant messaging software encounters a network connection interruption, leading to a low transfer efficiency.
In view of this, it is desired to provide in the present disclosure a method and system for file transfer as well as an instant messaging terminal, so as to enhance efficiency in file transfer.
To this end, a technical solution of the present disclosure is implemented as follows.
According to an aspect of an embodiment of the present disclosure, a method for file transfer which is applied to an instant messaging system includes:
when transfer of a file is interrupted, and when a sender is configured with an option of automatic retransfer upon disconnection, the sender sends an online file-retransfer or resuming-file-transfer request to a receiver; and
when transfer of a file is interrupted, and when the receiver is configured with an option of automatic reception upon disconnection, the receiver makes automatically response to a file-retransfer or resuming-file-transfer request from the sender, then the file is retransferred; alternatively, the transfer of the file is resumed.
According to an aspect of an embodiment of the present disclosure, a method for file transfer includes:
when transfer of a file is interrupted, and when a sender is configured with an option of automatic retransfer upon disconnection, an instant messaging terminal which serves as the sender sends automatically an online file-retransfer or resuming-file-transfer request to a receiver, and retransfers the file on line or resumes on line the interrupted transfer of the file to the receiver after a response to confirm receiving by the receiver is received.
According to an aspect of an embodiment of the present disclosure, an instant messaging terminal includes:
a first configuring module arranged to configure or cancel an option of automatic retransfer upon disconnection; and
an automatic retransferring module arranged to, when the option of automatic retransfer upon disconnection is configured and when transfer of a file is interrupted, send automatically an online file-retransfer or resuming-file-transfer request to a receiver, and retransfer the file on line or resume on line the interrupted transfer of the file to the receiver after a response to confirm receiving by the receiver is received.
According to an aspect of an embodiment of the present disclosure, another method for file transfer includes:
when an instant messaging terminal at a receiver is configured with an option of automatic reception upon disconnection, and when transfer of a file is interrupted, the instant messaging terminal which serves as the receiver makes automatically response to a file-retransfer or resuming-file-transfer request from the sender by sending the sender a response to confirm receiving, and receives again the file, or resumes reception of the interrupted file.
According to an aspect of an embodiment of the present disclosure, another instant messaging terminal includes:
a second configuring module arranged to configure or cancel an option of automatic reception upon disconnection; and
an automatic receiving module arranged to, when the option of automatic reception upon disconnection is configured and when transfer of a file is interrupted, make automatically response to a file-retransfer or resuming-file-transfer request from the sender by sending the sender a response to confirm receiving, and receive again the file, or resume reception of the interrupted file.
According to an aspect of an embodiment of the present disclosure, an instant messaging terminal includes: the first configuring module, the automatic retransferring module, the second configuring module and the automatic receiving module.
According to an aspect of an embodiment of the present disclosure, a system for file transfer includes: a first instant messaging terminal serving as a file sender, including the first configuring module and the automatic retransferring module; a server; and an second instant messaging terminal serving as a file receiver including the second configuring module and the automatic receiving module.
According to an aspect of an embodiment of the present disclosure, a computer storage medium is provided, in which a computer program is stored, which computer program is for executing an aforementioned method for file transfer.
With the embodiments of the present disclosure, an instant messaging terminal is provided with an option of automatic retransfer upon disconnection, an option of automatic reception upon disconnection, an option of automatic offline-file forwarding upon disconnection, such that when transfer of a file is interrupted, an instant messaging system can automatically retransfer the file or resume the interrupted transfer of the file, thus enhancing efficiency in file transfer.
In step 101, a sender sends a file transfer request to a receiver, and after receiving a response to confirm receiving from the receiver, transmits a file to the receiver in a transfer mode such as TCP.
The receiver may be an instant messaging client or an instant messaging server (referred to as a server hereinafter).
In step 102, if during the file transfer, it is detected that the file transfer is accidentally interrupted, for example due to a factor such as a network problem, step 104 is executed, otherwise step 103 is executed.
In step 103, when no accidental interruption of the file transfer is detected, the file transfer between the sender and the receiver is completed normally, and the flow ends.
In step 104, when it is detected that the file transfer is interrupted, it is determined whether the sender is configured with an option of automatic retransfer upon disconnection. If the sender is configured with the option, step 106 is executed, otherwise step 105 is executed.
In step 105, a user is prompted that file transfer fails, and the flow ends.
In some examples, in a case that the sender is not configured with the option of automatic retransfer upon disconnection, instant messaging terminals at both the sender and the receiver may prompt respective users that file transmission fails, the sender user may manually initiate the retransfer or resuming-transfer request again, the receiver user may manually accept the request. If the receiver is configured with an option of automatic reception upon disconnection, when the receiver receives a retransfer or resuming-transfer request sent by the sender, the receiver may automatically send the sender a response to proceed with online file retransfer or resumption of the transfer at an interrupted point.
In step 106, the sender initiates automatically an online file-retransfer or resuming-file-transfer request to the receiver.
In some examples, after the sender is configured with the option of automatic retransfer upon disconnection, when transfer of a file is interrupted, the sender will monitor in real time whether the network is back to normal, and once the network is back to normal, the sender will automatically send the receiver the online file-retransfer or resuming-file-transfer request.
In step 107, after the sender initiates automatically an online file-retransfer or resuming-file-transfer request, the sender waits for a confirming response of the receiver; if no confirming response is received from the receiver within a set period, step 109 is executed, otherwise step 108 is executed.
In step 108, after a confirming response of the receiver is received, online file retransfer or resumption of the transfer may be performed between the sender and the receiver, and the flow ends after transfer completes.
In step 109, the sender determines whether it is configured with an option of automatic offline-file forwarding upon disconnection; if it is configured with the option, step 110 is executed, otherwise a user is prompted that automatic retransfer or resumption of the transfer fails; and the flow ends.
In step 110, the sender initiates automatically an offline file-retransfer or resuming-file-transfer request to a server; after the server returns an acknowledgement, the sender may send the file first to the server for cache; and after the receiver goes on line again, the receiver may receive the file of which transfer is interrupted or resume the interrupted transfer of the file from the server.
With the method for sending a file by a sender according to the embodiments, when accidentally interrupted, a transfer will not be affected negatively as in prior art, as when it is detected that file transfer is accidentally interrupted for example due to a factor such as a network problem, it will be determined whether the sender is configured with the option of automatic retransfer upon disconnection. When the sender is configured with the option, the sender initiates automatically an online file-retransfer or resuming-file-transfer request to the receiver, thus enhancing efficiency in file transfer.
In step 201, after a receiver receives a file transfer request from a sender and sends the sender a confirming response, file transfer starts between the sender and the receiver.
In step 202, if during the file transfer, it is detected that the file transfer is interrupted, for example due to a network problem, step 204 is executed, otherwise step 203 is executed.
In step 203, when there is no interruption during the file transfer, the file transfer between the sender and the receiver is completed normally, and the flow ends.
In step 204, it is determined whether the receiver is configured with an option of automatic reception upon disconnection. When the receiver is configured with the option, step 206 is executed, otherwise step 105 is executed.
In step 205, a user is prompted that file transfer fails, and the flow ends.
In some examples, when the receiver is not configured with the option of automatic reception upon disconnection and the receiver is a server, the flow ends. When the receiver is not configured with the option of automatic reception upon disconnection and the receiver is an instant messaging terminal, the instant messaging terminal will prompt its user that file transmission fails, and after the receiver receives a file-retransfer or resuming-file-transfer request from the sender, the request may be manually accepted by a user, so as to complete file transfer.
In step 206, when the receiver receives the file-retransfer or resuming-file-transfer request from the sender, the receiver automatically accepts the request of the sender by sending the sender a response to confirm receiving, and a file is retransferred or the file transfer is resumed at an interrupted point.
In some examples, in the flow shown in
With the method for receiving a file by a receiver according to the embodiments, when accidentally interrupted, a transfer will not be affected negatively as in prior art, as when it is detected that file transfer is interrupted for example due to a network problem, it will be determined whether the receiver is configured with the option of automatic reception upon disconnection. If the receiver is configured with such an option, then when the receiver receives a file-retransfer or resuming-file-transfer request initiated by the sender, the receiver automatically accepts the request of the sender by sending the sender a response to confirm receiving, and a file is retransferred or the file transfer is resumed at an interrupted point, thus enhancing efficiency in file transfer.
An instant messaging terminal which may serve as the sender 300 may include:
a first configuring module 301 arranged to configure or cancel an option of automatic retransfer upon disconnection; and
an automatic retransferring module 302 arranged to, when the option of automatic retransfer upon disconnection is configured and when transfer of a file is interrupted, send automatically an online file-retransfer or resuming-file-transfer request to a receiver, and retransfer the file on line or resume on line the interrupted transfer of the file to the receiver after a response to confirm receiving by the receiver is received.
In some examples, in the instant messaging terminal serving as the sender 300, the first configuring module 301 may be further arranged to configure a n option of automatic offline-file forwarding. In some examples, the automatic retransferring module may be further arranged to, when the option of automatic offline-file forwarding is configured and in case that no response to confirm receiving by the receiver is received within a set period after the online file-retransfer or resuming-file-transfer request is sent, send automatically an offline file-retransfer or resuming-file-transfer request to the server 310.
An instant messaging terminal which may serve as the receiver 320 may include:
a second configuring module 321 arranged to configure or cancel an option of automatic reception upon disconnection; and
an automatic receiving module 322 arranged to, when the option of automatic reception upon disconnection is configured and when transfer of a file is interrupted, make automatically response to a file-retransfer or resuming-file-transfer request from the sender by sending the sender a response to confirm receiving, and receive again, or resume reception of, the file of which transfer is interrupted.
In some examples, opposite to an instant messaging terminal which serves as the receiver, the sender of the file may be an instant messaging terminal or a server.
In some embodiments of the present disclosure, function modules included in an instant messaging terminal which serves as the sender and function modules included in an instant messaging terminal which serves as the receiver are integrated together to implement automatic retransfer (or resumption of the transfer) and automatic reception of a disconnected file.
When implemented in form of a software functional module and sold or used as an independent product, integrated modules of embodiments of the present disclosure may also be stored in a computer-readable storage medium. Based on such an understanding, an essential part of embodiments of the present disclosure or a part contributing to the prior art may appear in form of a software product, which software product is stored in a storage medium, and includes a number of instructions for allowing a computer equipment (such as a personal computer, a server, a network equipment, or the like) to execute all or part of the methods in various embodiments of the present disclosure. The storage medium include various media that can store program codes such as a U disk, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, a CD, and the like. Thus, embodiments of the present disclosure are not limited to any specific combination of hardware and software.
An embodiment of the present disclosure provides a computer storage medium in which a computer program is stored, which computer program is for executing the method for file transfer according to an embodiment of the present disclosure.
What described are various embodiments of the disclosure, and are not intended to limit the scope of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
2012 1 0044496 | Feb 2012 | CN | national |
This is a continuation application of International Patent Application No.:PCT/CN2013/071409, filed on Feb. 5, 2013, which claims priority to Chinese Patent Application No.:201210044496.3 filed on Feb. 24, 2012, the disclosure of which is incorporated by reference herein in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
6175933 | Cadden | Jan 2001 | B1 |
7500010 | Harrang | Mar 2009 | B2 |
7921196 | Harrang | Apr 2011 | B2 |
8359358 | Bai | Jan 2013 | B2 |
8510401 | Bai | Aug 2013 | B2 |
8583820 | Harrang | Nov 2013 | B2 |
8589508 | Harrang | Nov 2013 | B2 |
8589585 | Harrang | Nov 2013 | B2 |
8671203 | Harrang | Mar 2014 | B2 |
8719399 | Harrang | May 2014 | B2 |
8745260 | Harrang et al. | Jun 2014 | B2 |
8812722 | Harrang | Aug 2014 | B2 |
8832305 | Harrang | Sep 2014 | B2 |
8909807 | Harrang | Dec 2014 | B2 |
20040010626 | Gillam | Jan 2004 | A1 |
20050187959 | Jung | Aug 2005 | A1 |
20070211674 | Ragnar Karlberg | Sep 2007 | A1 |
20080040501 | Harrang | Feb 2008 | A1 |
20080126517 | Nakatsuka | May 2008 | A1 |
20080313297 | Heron et al. | Dec 2008 | A1 |
20090024634 | Harrang | Jan 2009 | A1 |
20090024749 | Harrang | Jan 2009 | A1 |
20090164603 | Harrang | Jun 2009 | A1 |
20090254675 | Harrang | Oct 2009 | A1 |
20090265429 | Gestsson | Oct 2009 | A1 |
20100161387 | Harrang | Jun 2010 | A1 |
20100161679 | Harrang | Jun 2010 | A1 |
20100198943 | Harrang | Aug 2010 | A1 |
20100205539 | Gestsson et al. | Aug 2010 | A1 |
20100274871 | Harrang | Oct 2010 | A1 |
20100274872 | Harrang | Oct 2010 | A1 |
20110029619 | Bai | Feb 2011 | A1 |
20110029664 | Harrang | Feb 2011 | A1 |
20120278418 | Heron et al. | Nov 2012 | A1 |
20130073596 | Bai | Mar 2013 | A1 |
20130124679 | Harrang et al. | May 2013 | A1 |
20130124747 | Harrang et al. | May 2013 | A1 |
20130275478 | Bai | Oct 2013 | A1 |
20140143361 | Gestsson et al. | May 2014 | A1 |
Number | Date | Country |
---|---|---|
101064910 | Oct 2007 | CN |
101150540 | Mar 2008 | CN |
101510893 | Aug 2009 | CN |
101867619 | Oct 2010 | CN |
102355426 | Feb 2012 | CN |
2009121057 | Oct 2009 | WO |
Entry |
---|
Notification of the First Office Action of ARIPO application No. AP/P/2014/007375, dated Oct. 8, 2015. |
FileZilla resuming from breakpoint [online], [retrieved on: Apr. 4, 2013] Retrieved from the Internet: <URL: http://web.archive.org/web/201100508040036/http://os.51cto.com/art/201103/247424/>. May 8, 2011. (2 pages—see entire document). |
International Search Report in international application No. PCT/CN2013/071409, dated May 16, 2013. (2 pages—see entire document). |
English Translation of the Written Opinion of the International Search Authority in international application No. PCT/CN2013/071409, dated May 16, 2013. (14 pages—see entire document). |
Notification of the First Office Action of Chinese application No. 201210044496.3 , dated Nov. 23, 2016. |
Notification of the Second Office Action of Chinese application No. 201210044496.3 , dated Apr. 19, 2017. |
English translation of the Notification of the Second Office Action of Chinese application No. 201210044496.3 , dated Apr. 19, 2017. |
“FTP instrument FTPRush picture and text operation instruction”, ren19890419; Baidu Library; Jul. 19, 2011. |
Search Report in Singapore application No. 2013094438, dated Jan. 30, 2015. |
Notification to Grant Patent Right for Invention of Chinese application No. 201210044496.3 , dated Sep. 21, 2017. |
English translation of the Notification to Grant Patent Right for Invention of Chinese application No. 201210044496.3 , dated Sep. 21, 2017. |
Number | Date | Country | |
---|---|---|---|
20140108575 A1 | Apr 2014 | US |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2013/071409 | Feb 2013 | US |
Child | 14105125 | US |