Patent ID: 9621704
Date: 2017-04-11
CPC Classifications: H04L,H04M

Claim:
1. A system for file synchronization, characterized by comprising a first device, a server and at least one second device; wherein the first device comprises: a first sending module, configured to send a file synchronization request to the server, the file synchronization request comprising a file identifier of a file to be synchronized and an identifier of the first device; wherein the server comprises: a first receiving module, configured to receive the file synchronization request from the first device; a search module, configured to search, according to the file synchronization request, first file synchronization information sent by the first device and at least one piece of second file synchronization information sent by the at least one second device, which are both stored locally, wherein the first file synchronization information comprises the file identifier of the file to be synchronized, first state information of the file to be synchronized and the identifier of the first device, and the second file synchronization information comprises the file identifier of the file to be synchronized, second state information of the file to be synchronized and an identifier of the second device; a determination module, configured to determine, according to the first file synchronization information and the at least one piece of second file synchronization information, latest state information of the file to be synchronized among the first state information and the at least one piece of second state information; and a first sending module, configured to send the latest state information of the file to be synchronized to the first device; wherein the first device further comprises: a receiving module, configured to receive the latest state information of the file to be synchronized sent by the server; and a synchronization module, configured to perform synchronization operations on the file according to the latest state information of the file to be synchronized; wherein the first device further comprises: a second sending module, configured to send the first file synchronization information to the server; wherein the server further comprises: a second receiving module, configured to receive the first file synchronization information sent by the first device and store the first file synchronization information locally; wherein the at least one second device comprises: a sending module, configured to send the at least one piece of second file synchronization information to the server; and wherein the server further comprises: a third receiving module, configured to receive the at least one piece of second file synchronization information sent by the at least one second device and store the at least one piece of second file synchronization information locally.