[go: up one dir, main page]

CN103491055B - A kind of method of the synchronizing information between multiple client, client and server - Google Patents

A kind of method of the synchronizing information between multiple client, client and server Download PDF

Info

Publication number
CN103491055B
CN103491055B CN201210191904.8A CN201210191904A CN103491055B CN 103491055 B CN103491055 B CN 103491055B CN 201210191904 A CN201210191904 A CN 201210191904A CN 103491055 B CN103491055 B CN 103491055B
Authority
CN
China
Prior art keywords
server
client
update operation
clients
operation instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210191904.8A
Other languages
Chinese (zh)
Other versions
CN103491055A (en
Inventor
姜济军
张少林
杜立文
符伟松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xingyun Numerical Technology Co ltd
Original Assignee
Nanjing ZTE New Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing ZTE New Software Co Ltd filed Critical Nanjing ZTE New Software Co Ltd
Priority to CN201210191904.8A priority Critical patent/CN103491055B/en
Publication of CN103491055A publication Critical patent/CN103491055A/en
Application granted granted Critical
Publication of CN103491055B publication Critical patent/CN103491055B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

一种在多个客户端间同步信息的方法、客户端和服务器,所述方法包括:各客户端在用户登录时向服务器发送订阅请求,建立会话;与服务器已建立会话的第一客户端在检测到本地的需与其他使用相同账号登陆的客户端同步的列表中发生记录更新时,向服务器发送修改请求,其中至少携带更新操作指示信息,用于指示其他客户端按照本信息进行相应的更新操作;服务器在收到修改请求后,向与第一客户端使用相同账号登陆的其他客户端发送变更通知消息,其中携带上述更新操作指示信息;收到变更通知消息的客户端根据其中携带的更新操作指示信息对本地的指定列表进行更新。本发明通过增量的方式实现多终端间的数据同步,节省了宝贵的网络资源。而且适用范围较广。

A method for synchronizing information between multiple clients, a client and a server, the method comprising: each client sends a subscription request to the server when a user logs in, and establishes a session; the first client that has established a session with the server When it is detected that a record update occurs in the local list that needs to be synchronized with other clients that use the same account to log in, a modification request is sent to the server, which contains at least update operation instruction information, which is used to instruct other clients to perform corresponding updates according to this information Operation: After receiving the modification request, the server sends a change notification message to other clients that log in with the same account as the first client, which carries the above-mentioned update operation instruction information; The operation instruction information updates the local designation list. The present invention realizes data synchronization between multiple terminals in an incremental manner, saving precious network resources. And it has a wide range of applications.

Description

一种在多个客户端间同步信息的方法、客户端和服务器A method, client and server for synchronizing information among multiple clients

技术领域technical field

本发明涉及通信领域相关技术,尤其涉及一种在多个客户端间同步信息的方法、客户端和服务器。The invention relates to related technologies in the communication field, and in particular to a method for synchronizing information among multiple clients, a client and a server.

背景技术Background technique

在现有的同步技术中,在基于客户端/服务器(Client/Server,简称为C/S)的架构中,多客户端同步的方法一般采用多终端状态的同步方法,即在一个终端的状态发生改变时,服务器会通知与这个终端相关联的其他终端。由于状态的数据量比较大,当只修改状态的一个字段时也需要通过服务器下发整个数据包,这样消耗的带宽会比较大,增加了网络的负担。In the existing synchronization technology, in the architecture based on client/server (Client/Server, referred to as C/S), the multi-client synchronization method generally adopts the synchronization method of the multi-terminal state, that is, in the state of a terminal When a change occurs, the server notifies other terminals associated with this terminal. Due to the relatively large amount of state data, when only one field of the state is modified, the entire data packet needs to be delivered through the server, which consumes a relatively large bandwidth and increases the burden on the network.

发明内容Contents of the invention

本发明所要解决的问题是提供在多个客户端间同步信息的方法、客户端和服务器,以克服现有同步方法占用带宽较多的缺陷。The problem to be solved by the present invention is to provide a method for synchronizing information among multiple clients, a client and a server, so as to overcome the defect that the existing synchronization method occupies more bandwidth.

为解决上述问题,本发明提供了一种在多个客户端间同步信息的方法,包括:In order to solve the above problems, the present invention provides a method for synchronizing information among multiple clients, including:

各客户端在用户登录时向服务器发送订阅请求,建立会话;Each client sends a subscription request to the server when the user logs in, and establishes a session;

与所述服务器已建立会话的第一客户端在检测到本地的需与其他使用相同账号登陆的客户端同步的列表中发生记录更新时,向所述服务器发送修改请求,其中至少携带更新操作指示信息,用于指示其他客户端按照本信息进行相应的更新操作;When the first client that has established a session with the server detects that a record update occurs in the local list that needs to be synchronized with other clients that use the same account to log in, it sends a modification request to the server, which at least carries an update operation instruction Information, used to instruct other clients to perform corresponding update operations according to this information;

所述服务器在收到所述修改请求后,向与所述第一客户端使用相同账号登陆的其他客户端发送变更通知消息,其中携带上述更新操作指示信息;After receiving the modification request, the server sends a change notification message to other clients logged in with the same account as the first client, which carries the above update operation instruction information;

收到所述变更通知消息的客户端根据其中携带的更新操作指示信息对本地的指定列表进行更新。The client that receives the change notification message updates the local specified list according to the update operation instruction information carried in it.

进一步地,further,

当更新操作为新增记录时,所述更新操作指示信息中包括:增加标识及新增的记录;When the update operation is to add a new record, the update operation instruction information includes: adding an identifier and a newly added record;

当更新操作为删除记录时,所述更新操作指示信息中包括删除标识及删除前的记录。When the update operation is to delete a record, the update operation indication information includes a deletion identifier and a record before deletion.

进一步地,further,

所述修改请求采用可扩展标记语言配置访问协议(XCAP)格式。The modification request is in Extensible Markup Language Configuration Access Protocol (XCAP) format.

进一步地,further,

所述向与所述第一客户端使用相同账号登陆的其他客户端发送变更通知消息,具体包括:The sending a change notification message to other clients logged in with the same account as the first client specifically includes:

所述服务器使用所述其他客户端在用户登录时与所述服务器间建立的会话发送所述变更通知消息。The server sends the change notification message using the session established between the other client and the server when the user logs in.

进一步地,further,

所述变更通知消息为差异的XCAP文档(XCAP Diff Document)格式的初始会话协议通知(SIP NOTIFY)消息。The change notification message is an initial session protocol notification (SIP NOTIFY) message in a format of a difference XCAP document (XCAP Diff Document).

相应地,本发明还提供了一种客户端,多个使用相同账号登陆服务器的客户端上需要同步指定的列表,该客户端包括:Correspondingly, the present invention also provides a client, multiple clients using the same account to log in to the server need to synchronize the specified list, the client includes:

请求发送模块,用于在用户登录时向所述服务器发送订阅请求,与所述服务器建立会话;还用于在检测到本客户端的所述列表中发生记录更新时,向所述服务器发送修改请求,其中至少携带更新操作指示信息,用于指示其他客户端按照本信息进行相应的更新操作;The request sending module is used to send a subscription request to the server when the user logs in, and establish a session with the server; it is also used to send a modification request to the server when a record update in the list of the client is detected , which at least carries update operation instruction information, which is used to instruct other clients to perform corresponding update operations according to this information;

更新模块,用于在收到服务器发来的变更通知消息后,根据其中携带的更新操作指示信息对本地的指定列表进行更新。The update module is configured to update the local designated list according to the update operation instruction information carried in the change notification message sent by the server.

进一步地,further,

当更新操作为新增记录时,所述请求发送模块发送的更新操作指示信息中包括:增加标识及新增的记录;When the update operation is adding a new record, the update operation indication information sent by the request sending module includes: adding an identifier and a newly added record;

当更新操作为删除记录时,所述请求发送模块发送的更新操作指示信息中包括删除标识及删除前的记录。When the update operation is to delete a record, the update operation indication information sent by the request sending module includes a deletion identifier and a record before deletion.

进一步地,further,

所述修改请求采用可扩展标记语言配置访问协议(XCAP)格式。The modification request is in Extensible Markup Language Configuration Access Protocol (XCAP) format.

相应地,本发明还提供了一种服务器,应用于客户端/服务器架构系统中,包括:Correspondingly, the present invention also provides a server, which is applied in a client/server architecture system, including:

接收模块,用于接收客户端发来的订阅请求,与所述客户端建立会话;还用于接收所述客户端发来的修改请求,其中所述修改请求中至少携带更新操作指示信息,用于指示其他客户端按照本信息进行相应的更新操作;The receiving module is configured to receive the subscription request sent by the client, and establish a session with the client; it is also configured to receive the modification request sent by the client, wherein the modification request carries at least update operation instruction information, and is used to To instruct other clients to perform corresponding update operations according to this information;

发送模块,用于在所述接收模块接收到所述修改请求后,向与所述客户端使用相同账号登陆的其他客户端发送变更通知消息,其中携带所述更新操作指示信息。The sending module is configured to send a change notification message to other clients logged in with the same account as the client after the receiving module receives the modification request, which carries the update operation instruction information.

进一步地,further,

所述发送模块用于向与所述客户端使用相同账号登陆的其他客户端发送变更通知消息,具体包括:The sending module is used to send a change notification message to other clients logged in with the same account as the client, specifically including:

所述发送模块用于使用所述其他客户端在用户登录时与所述服务器间建立的会话发送所述变更通知消息。The sending module is configured to use the session established between the other client and the server when the user logs in to send the change notification message.

进一步地,further,

所述变更通知消息为差异的XCAP文档(XCAP Diff Document)格式的初始会话协议通知(SIP NOTIFY)消息。The change notification message is an initial session protocol notification (SIP NOTIFY) message in a format of a difference XCAP document (XCAP Diff Document).

本发明通过增量的方式实现多终端间的数据同步,只需要通过增删标记下发增删的数据,数据量较小,节省了宝贵的网络资源。而且,可通过扩展支持各类数据的同步,适用范围较广。The present invention realizes data synchronization between multiple terminals in an incremental manner, and only needs to send the added and deleted data through the addition and deletion marks, the amount of data is small, and precious network resources are saved. Moreover, it can support the synchronization of various types of data through expansion, and has a wide range of applications.

附图说明Description of drawings

图1为本发明实施例中一种在多个客户端间同步信息的方法流程图;FIG. 1 is a flowchart of a method for synchronizing information among multiple clients in an embodiment of the present invention;

图2为本发明应用示例1中一种实现多客户端联系人列表同步的方法流程图;Fig. 2 is a flow chart of a method for synchronizing contact lists of multiple clients in application example 1 of the present invention;

图3为本发明应用示例2中利用SUBSCRIBE和NOTIFY进行多客户端联系人列表同步的方法流程图;Fig. 3 is the method flow chart that utilizes SUBSCRIBE and NOTIFY to carry out multi-client contact list synchronization in application example 2 of the present invention;

图4为本发明实施例中客户端的结构示意图;FIG. 4 is a schematic structural diagram of a client in an embodiment of the present invention;

图5为本发明实施例中服务器的结构示意图。FIG. 5 is a schematic structural diagram of a server in an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

在本实施例中,一种在多个客户端间同步信息的方法,应用于C/S架构系统中,在该系统中,多个使用相同账号登陆的客户端上需要同步指定的列表,如图1所示,该同步方法包括:In this embodiment, a method for synchronizing information among multiple clients is applied to a C/S architecture system, in which multiple clients logging in with the same account need to synchronize a specified list, such as As shown in Figure 1, the synchronization method includes:

步骤10、各客户端在用户登录时向服务器发送订阅请求,建立会话;Step 10, each client sends a subscription request to the server when the user logs in, and establishes a session;

步骤20、与上述服务器已建立会话的第一客户端在检测到本地的上述指定列表中发生记录更新时,向服务器发送修改请求,其中至少携带更新操作指示信息,用于指示其他客户端按照本信息进行相应的更新操作;Step 20. When the first client that has established a session with the above server detects that a record update occurs in the local specified list, it sends a modification request to the server, which at least carries update operation instruction information, and is used to instruct other clients to follow this rule. update the information accordingly;

其中,当更新操作为新增记录时,该更新操作指示信息中包括:增加标识及新增的记录;当更新操作为删除记录时,该更新操作指示信息中包括删除标识及删除前的记录;Wherein, when the update operation is to add a record, the update operation instruction information includes: adding an identifier and the newly added record; when the update operation is to delete a record, the update operation instruction information includes a deletion identifier and a record before deletion;

此外,该修改请求可采用XCAP(XML Configuration Access Protocol,可扩展标记语言配置访问协议)格式;In addition, the modification request may adopt the XCAP (XML Configuration Access Protocol, Extensible Markup Language Configuration Access Protocol) format;

步骤30、服务器在收到上述修改请求后,向与该第一客户端使用相同账号登陆的其他客户端发送变更通知消息,其中携带上述更新操作指示信息;在具体实现时,该变更通知消息可使用客户端在用户登录时与服务器间建立的会话进行发送,其可采用XCAP DiffDocument(差异的XCAP文档)格式的SIP(Session Initiation Protocol,初始会话协议)NOTIFY(通知)消息;Step 30: After receiving the modification request above, the server sends a change notification message to other clients logged in with the same account as the first client, which carries the above update operation instruction information; in specific implementation, the change notification message can be Use the session established between the client and the server when the user logs in to send, which can use the SIP (Session Initiation Protocol, initial session protocol) NOTIFY (notification) message in the XCAP DiffDocument (different XCAP document) format;

步骤40、其他客户端在收到上述变更通知消息后,根据其中携带的更新操作指示信息对本地的指定列表进行更新。Step 40: After receiving the above-mentioned change notification message, other clients update the local designation list according to the update operation instruction information carried therein.

下面用本发明的几个应用示例对本发明进行进一步说明。The present invention will be further described below with several application examples of the present invention.

应用示例1Application example 1

在本应用示例中,提供了一个同步多客户端联系人列表的方法,如图2所示,包括以下步骤:In this application example, a method for synchronizing contact lists of multiple clients is provided, as shown in Figure 2, including the following steps:

步骤101,一用户关联的多个客户端登录,发送XCAP Diff Document格式的订阅请求到服务器;Step 101, multiple clients associated with a user log in, and send a subscription request in XCAP Diff Document format to the server;

步骤102,该用户的客户端B1检测到联系人列表发生修改后,向服务器发送修改请求;其中,该修改请求可以是XCAP消息,其中至少携带更新操作指示信息;Step 102, after the user's client B1 detects that the contact list has been modified, it sends a modification request to the server; wherein, the modification request can be an XCAP message, which at least carries update operation instruction information;

步骤103,服务器根据接收到的修改请求中的更新操作指示信息构造相应的变更通知消息,该消息体的格式按照XCAP Diff Document格式来构造;Step 103, the server constructs a corresponding change notification message according to the update operation indication information in the received modification request, and the format of the message body is constructed according to the XCAP Diff Document format;

步骤104,服务器在内存中查找当前在线的该用户的所有相关的客户端信息,根据客户端的SUBSCRIBE(订阅)消息来下发变更通知消息。In step 104, the server searches the memory for all relevant client information of the currently online user, and sends a change notification message according to the SUBSCRIBE (subscription) message of the client.

服务器在每个客户端注册时通过用户的Public User Identity(公共用户标识)来保存用户的注册信息,属于同一客户的多个客户端的注册信息通过一定的数据结构来保存。每个客户端在发起订阅请求时会在自身的内存中保存订阅标识。服务器根据修改请求中携带的Public User Identity查找到已注册的该用户的所有客户端的信息,通过相应地订阅标识下发变更通知消息。When each client registers, the server saves the user's registration information through the user's Public User Identity (public user identity), and the registration information of multiple clients belonging to the same client is saved through a certain data structure. Each client will save the subscription ID in its own memory when it initiates a subscription request. The server finds information about all registered clients of the user according to the Public User Identity carried in the modification request, and sends a change notification message through the corresponding subscription ID.

应用示例2Application example 2

在本应用示例中,用户B的所有客户端B1,B2,B3分别向服务器发送订阅联系人列表变更的通知。如图3所示,利用SIP SUBSCRIBE和SIP NOTIFY进行多客户端信息同步的方法,包括:In this application example, all clients B1, B2, and B3 of user B send notifications of changes to the subscription contact list to the server respectively. As shown in Figure 3, the method for multi-client information synchronization using SIP SUBSCRIBE and SIP NOTIFY includes:

步骤201,当用户在客户端B1修改了联系人列表时,客户端B1以XCAP消息发送修改请求;其中,新增记录操作发送PUT请求,删除记录操作发送DELETE请求,修改联系人信息的XCAP消息体中包含联系人的昵称等;Step 201, when the user modifies the contact list on the client B1, the client B1 sends a modification request with an XCAP message; among them, the operation of adding a record sends a PUT request, the operation of deleting a record sends a DELETE request, and the XCAP message of modifying the contact information The body contains the contact's nickname, etc.;

步骤202,服务器S1向客户端B1返回200 OK响应;Step 202, the server S1 returns a 200 OK response to the client B1;

步骤203,服务器S1解析上述修改请求,根据修改请求构造对应的NOTIFY消息,消息体格式按照XCAP Diff Document构造;Step 203, the server S1 parses the modification request above, constructs a corresponding NOTIFY message according to the modification request, and the format of the message body is constructed according to the XCAP Diff Document;

步骤204,客户端B2在线,并且订阅了联系人列表改变的通知,因此,服务器S1将所构造的联系人列表改变的通知以NOTIFY方式发送给客户端B2;Step 204, the client B2 is online and has subscribed to the notification of the change of the contact list, therefore, the server S1 sends the constructed notification of the change of the contact list to the client B2 in NOTIFY mode;

步骤205,客户端B2更新自己的联系人列表,并向服务器S1返回200 OK响应。Step 205, the client B2 updates its contact list, and returns a 200 OK response to the server S1.

步骤204’,客户端B3在线,并且订阅了联系人列表改变的通知,因此,服务器S1将所构造的联系人列表改变的通知以NOTIFY方式发送给客户端B3。Step 204', the client B3 is online and has subscribed to the notification of the change of the contact list, therefore, the server S1 sends the constructed notification of the change of the contact list to the client B3 in NOTIFY mode.

步骤205’,客户端B3更新自己的联系人列表,并向服务器S1返回200OK响应。Step 205', the client B3 updates its own contact list, and returns a 200 OK response to the server S1.

此外,在本实施例中,一种客户端,多个使用相同账号登陆服务器的客户端上需要同步指定的列表,如图4所示,该客户端包括:In addition, in this embodiment, a client needs to synchronize a specified list on multiple clients that use the same account to log in to the server. As shown in FIG. 4, the client includes:

请求发送模块,用于在用户登录时向所述服务器发送订阅请求,与所述服务器建立会话;还用于在检测到本客户端的所述列表中发生记录更新时,向所述服务器发送修改请求,其中至少携带更新操作指示信息,用于指示其他客户端按照本信息进行相应的更新操作;The request sending module is used to send a subscription request to the server when the user logs in, and establish a session with the server; it is also used to send a modification request to the server when a record update in the list of the client is detected , which at least carries update operation instruction information, which is used to instruct other clients to perform corresponding update operations according to this information;

更新模块,用于在收到服务器发来的变更通知消息后,根据其中携带的更新操作指示信息对本地的指定列表进行更新。The update module is configured to update the local designated list according to the update operation instruction information carried in the change notification message sent by the server.

较佳地,Preferably,

当更新操作为新增记录时,所述请求发送模块发送的更新操作指示信息中包括:增加标识及新增的记录;When the update operation is adding a new record, the update operation indication information sent by the request sending module includes: adding an identifier and a newly added record;

当更新操作为删除记录时,所述请求发送模块发送的更新操作指示信息中包括删除标识及删除前的记录。When the update operation is to delete a record, the update operation indication information sent by the request sending module includes a deletion identifier and a record before deletion.

较佳地,Preferably,

所述修改请求采用可扩展标记语言配置访问协议(XCAP)格式。The modification request is in Extensible Markup Language Configuration Access Protocol (XCAP) format.

相应地,一种服务器,应用于客户端/服务器架构系统中,如图5所示,包括:Correspondingly, a server, which is applied to a client/server architecture system, as shown in Figure 5, includes:

接收模块,用于接收客户端发来的订阅请求,与所述客户端建立会话;还用于接收所述客户端发来的修改请求,其中所述修改请求中至少携带更新操作指示信息,用于指示其他客户端按照本信息进行相应的更新操作;The receiving module is configured to receive the subscription request sent by the client, and establish a session with the client; it is also configured to receive the modification request sent by the client, wherein the modification request carries at least update operation instruction information, and is used to To instruct other clients to perform corresponding update operations according to this information;

发送模块,用于在所述接收模块接收到所述修改请求后,向与所述客户端使用相同账号登陆的其他客户端发送变更通知消息,其中携带所述更新操作指示信息。The sending module is configured to send a change notification message to other clients logged in with the same account as the client after the receiving module receives the modification request, which carries the update operation instruction information.

较佳地,Preferably,

所述发送模块用于向与所述客户端使用相同账号登陆的其他客户端发送变更通知消息,具体包括:The sending module is used to send a change notification message to other clients logged in with the same account as the client, specifically including:

所述发送模块用于使用所述其他客户端在用户登录时与所述服务器间建立的会话发送所述变更通知消息。The sending module is configured to use the session established between the other client and the server when the user logs in to send the change notification message.

较佳地,Preferably,

所述变更通知消息为差异的XCAP文档(XCAP Diff Document)格式的初始会话协议通知(SIP NOTIFY)消息。The change notification message is an initial session protocol notification (SIP NOTIFY) message in a format of a difference XCAP document (XCAP Diff Document).

本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。Those skilled in the art can understand that all or part of the steps in the above method can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, and the like. Optionally, all or part of the steps in the foregoing embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiments may be implemented in the form of hardware, or may be implemented in the form of software function modules. The present invention is not limited to any specific combination of hardware and software.

以上所述仅为本发明的优选实施例而已,并非用于限定本发明的保护范围。根据本发明的发明内容,还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. According to the content of the present invention, there can also be other various embodiments. Those skilled in the art can make various corresponding changes and deformations according to the present invention without departing from the spirit and essence of the present invention. Within the spirit and principles of the present invention, any modifications, equivalent replacements, improvements, etc., shall be included within the protection scope of the present invention.

Claims (9)

1. a kind of method of the synchronizing information between multiple client, including:
Each client sends to server when user logs in and subscribes to request, establishes session;
The first client of session has been established with the server local to log in using identical account with other detecting Client synchronization list in occurrence record update when, to the server send modification request, wherein at least carry update Operation instruction information is used to indicate other clients and carries out corresponding update operation according to this information;
The server is after receiving the modification request, to other visitors logged in using identical account with first client Family end sends Notification of Changes message, wherein carrying above-mentioned update operation instruction information;
Receive specified row of the client of the Notification of Changes message according to the update operation instruction information wherein carried to local Table is updated;Wherein, specified list specifically includes:Contacts list;
Wherein, the server is asked according to the subscription of client to issue Notification of Changes message;
It is described to send Notification of Changes message using other clients that identical account logs in first client, it is specific to wrap It includes:
Described in the session that the server is established when user logs between the server using other described clients is sent Notification of Changes message.
2. the method as described in claim 1, it is characterised in that:
When update operation is increases record newly, the update operation instruction information includes:Increase mark and newly-increased record;
When update operation is deletion record, the update operation instruction information includes the record before deleting mark and deleting.
3. method as claimed in claim 1 or 2, it is characterised in that:
The modification request uses extensible markup language configuration access protocol (XCAP) format.
4. the method as described in claim 1, it is characterised in that:
The Notification of Changes message is that the initial session protocol of XCAP documents (XCAP Diff Document) format of difference is logical Know (SIP NOTIFY) message.
5. a kind of client, need to synchronize specified list in multiple clients using identical account game server, the visitor Family end includes:
Request sending module, request is subscribed to for being sent to the server when user logs in, and meeting is established with the server Words;When being additionally operable to the occurrence record update in the list for detecting this client, modification request is sent to the server, Update operation instruction information is wherein at least carried, other clients is used to indicate and carries out corresponding update operation according to this information;
Update module, for after receiving the Notification of Changes message that server is sent, according to the update operation instruction wherein carried Information is updated local specified list;Wherein, specified list specifically includes:Contacts list;
Wherein, the server asks, to issue Notification of Changes message, to specifically include according to the subscription:The server uses The session that other described clients are established when user logs between the server sends the Notification of Changes message.
6. client as claimed in claim 5, it is characterised in that:
When update operation is increases record newly, the update operation instruction information that the request sending module is sent includes:Increase Mark and newly-increased record;
When update operation is deletion record, the update operation instruction information that the request sending module is sent includes deleting mark Record before knowing and deleting.
7. client as claimed in claim 5, it is characterised in that:
The modification request uses extensible markup language configuration access protocol (XCAP) format.
8. a kind of server is applied in user terminal/server framework system, including:
Receiving module, the subscription request sent for receiving client, session is established with the client;It is additionally operable to described in reception The modification request that client is sent is used to indicate other wherein at least carrying update operation instruction information in modification request Client carries out corresponding update operation according to this information;
Sending module, for after the receiving module receives the modification request, identical account to be used to the client Number other clients logged in send Notification of Changes message, wherein carrying the update operation instruction information;So that:Other visitors Family end is after receiving the Notification of Changes message that server is sent, according to the update operation instruction information wherein carried to local finger Determine list to be updated;Wherein, specified list specifically includes:Contacts list;
Wherein, the sending module is asked according to the subscription of client to issue Notification of Changes message;
The sending module, which is used to send Notification of Changes to other clients logged in using identical account with the client, to disappear Breath, specifically includes:
The sending module is used to send out using the session that other described clients are established when user logs between the server Send the Notification of Changes message.
9. server as claimed in claim 8, it is characterised in that:
The Notification of Changes message is that the initial session protocol of XCAP documents (XCAP Diff Document) format of difference is logical Know (SIP NOTIFY) message.
CN201210191904.8A 2012-06-12 2012-06-12 A kind of method of the synchronizing information between multiple client, client and server Active CN103491055B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210191904.8A CN103491055B (en) 2012-06-12 2012-06-12 A kind of method of the synchronizing information between multiple client, client and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210191904.8A CN103491055B (en) 2012-06-12 2012-06-12 A kind of method of the synchronizing information between multiple client, client and server

Publications (2)

Publication Number Publication Date
CN103491055A CN103491055A (en) 2014-01-01
CN103491055B true CN103491055B (en) 2018-08-07

Family

ID=49831019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210191904.8A Active CN103491055B (en) 2012-06-12 2012-06-12 A kind of method of the synchronizing information between multiple client, client and server

Country Status (1)

Country Link
CN (1) CN103491055B (en)

Families Citing this family (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580085B (en) * 2013-10-17 2019-12-13 腾讯科技(深圳)有限公司 service data updating method, system, client and server
CN105337926B (en) * 2014-06-18 2020-01-24 阿里巴巴集团控股有限公司 Multi-terminal linkage method and related equipment and system
CN104320447B (en) * 2014-10-15 2017-12-19 新疆同晨信息技术有限公司 A kind of middle-size and small-size cloud storage method of data synchronization and computer-readable medium, system
CN104615916B (en) * 2014-12-12 2018-06-19 腾讯科技(深圳)有限公司 Account management method and device, account authority control method and device
CN104618439A (en) * 2014-12-29 2015-05-13 深圳市中兴移动通信有限公司 File sharing method, terminal, server and system
CN104601678B (en) * 2014-12-31 2018-10-09 江苏中科梦兰电子科技有限公司 A kind of big concurrent blank remote real-time synchronous method
CN104954482A (en) * 2015-06-29 2015-09-30 上海瀚之友信息技术服务有限公司 Configuration management system and method
CZ306210B6 (en) * 2015-07-07 2016-09-29 Aducid S.R.O. A method of assigning at least two authentication devices to a single user account using an authentication server
CN106802762B (en) * 2015-11-26 2020-09-11 思杰系统有限公司 Synchronize server-side keyboard layout with client-side layout in a virtual session
CN105871997A (en) * 2015-12-15 2016-08-17 乐视致新电子科技(天津)有限公司 Synchronous attention method and system, intelligent terminal in support of synchronous attention, synchronous attention methods executed by intelligent terminal and attention center server, attention center server
CN105915661A (en) * 2015-12-15 2016-08-31 乐视致新电子科技(天津)有限公司 Electronic contact list display method and device
CN105871996A (en) * 2015-12-15 2016-08-17 乐视致新电子科技(天津)有限公司 Message pushing system and method
CN106027677A (en) * 2016-07-13 2016-10-12 浪潮通用软件有限公司 Distributed Web application program session management method
CN105959420A (en) * 2016-07-15 2016-09-21 浪潮(北京)电子信息产业有限公司 Multi-client metadata synchronous update method and device
US10153993B2 (en) * 2016-07-18 2018-12-11 T-Mobile Usa, Inc. RCS origination forking
CN106230908A (en) * 2016-07-24 2016-12-14 乐视控股(北京)有限公司 Pay close attention to state synchronization method and terminal unit
CN106375417B (en) * 2016-08-30 2019-07-30 北京北信源软件股份有限公司 Extensive organization's update method in instant messaging
CN106453037B (en) * 2016-09-14 2019-05-24 Oppo广东移动通信有限公司 Group message processing method, device, server and group message processing system
CN108933724A (en) * 2017-05-24 2018-12-04 中兴通讯股份有限公司 A kind of information sharing method and system, terminal and server
CN107087038A (en) * 2017-06-29 2017-08-22 珠海市魅族科技有限公司 A kind of method of data syn-chronization, synchronizer, device and storage medium
CN109698784A (en) * 2017-10-20 2019-04-30 阿里巴巴集团控股有限公司 A kind of message cancelling method and device
CN108197892A (en) * 2018-01-09 2018-06-22 论客科技(广州)有限公司 A kind of agenda managing method and system
CN110198335A (en) * 2018-08-30 2019-09-03 腾讯科技(深圳)有限公司 Message synchronization method and device, electronic equipment and storage medium
CN109857747B (en) * 2018-12-18 2021-07-13 百度在线网络技术(北京)有限公司 Data synchronous updating method, system and computer equipment
CN109818967B (en) * 2019-02-28 2021-07-20 努比亚技术有限公司 Notification method, server, mobile terminal and computer readable storage medium
CN110086861B (en) * 2019-04-19 2021-12-14 山东欧倍尔软件科技有限责任公司 Collaborative simulation method, system, server and client
CN111142684B (en) * 2019-11-28 2023-04-18 武汉兴图新科电子股份有限公司 Information synchronization method for on-demand resources among multiple devices of distributed KVM display control system
CN114095511B (en) * 2020-07-31 2023-03-10 华为技术有限公司 Method and equipment for data synchronization of mobile distributed system
CN112769677B (en) * 2020-12-30 2023-05-23 北京达佳互联信息技术有限公司 Data synchronization method, apparatus, electronic device, storage medium, and program product
CN113360509A (en) * 2021-06-03 2021-09-07 广州小鹏智慧充电科技有限公司 Collected music synchronization method and device
CN114172957B (en) * 2021-12-02 2024-05-14 Oppo广东移动通信有限公司 Subscription system, method, electronic device, server, storage medium and product
CN115174386B (en) * 2022-06-30 2023-06-16 中国联合网络通信集团有限公司 Method, UICC, terminal and system for configuring access policy application

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159910A (en) * 2007-10-30 2008-04-09 中兴通讯股份有限公司 Synchronous present state method and cluster server and terminal for implementing the method
CN101257375A (en) * 2006-12-31 2008-09-03 华为技术有限公司 Method and device for realizing message synchronization of multiple terminals
CN101287007A (en) * 2008-05-12 2008-10-15 华为技术有限公司 XML document management method, system and XML document management server
CN102299810A (en) * 2011-09-29 2011-12-28 北京新媒传信科技有限公司 Method and system for notifying group change event

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080101410A1 (en) * 2006-10-25 2008-05-01 Microsoft Corporation Techniques for managing output bandwidth for a conferencing server
CN101071457B (en) * 2007-04-28 2010-05-26 腾讯科技(深圳)有限公司 Network game role image changing method, device and server
CN101388895A (en) * 2008-11-04 2009-03-18 中国网络通信集团公司 Enterprise address book update method and system, enterprise address book update server and client

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257375A (en) * 2006-12-31 2008-09-03 华为技术有限公司 Method and device for realizing message synchronization of multiple terminals
CN101159910A (en) * 2007-10-30 2008-04-09 中兴通讯股份有限公司 Synchronous present state method and cluster server and terminal for implementing the method
CN101287007A (en) * 2008-05-12 2008-10-15 华为技术有限公司 XML document management method, system and XML document management server
CN102299810A (en) * 2011-09-29 2011-12-28 北京新媒传信科技有限公司 Method and system for notifying group change event

Also Published As

Publication number Publication date
CN103491055A (en) 2014-01-01

Similar Documents

Publication Publication Date Title
CN103491055B (en) A kind of method of the synchronizing information between multiple client, client and server
CN107465767B (en) Data synchronization method and system
US9712632B2 (en) Method for receiving data, method for sending data, mobile terminal, and server
US8332468B2 (en) Method and system for processing an address book
AU2009296436B2 (en) Trickle sync protocol
CN104717314B (en) A kind of IP management method and system, client, server
CN101316221B (en) Notification message processing method and device
CN102299810B (en) Method and system for notifying group change event
CN110391974A (en) A message synchronization method, server, terminal and system
CN108200219A (en) Method of data synchronization, device, server and storage medium
RU2608469C2 (en) Method and apparatus for high performance low latency real time notification delivery
WO2014029276A1 (en) Communication method and device
US20240298196A1 (en) Methods and Apparatuses for Enhanced 5GC Restoration When a Network Function (NF) Set is Deployed in the Network
CN101296507B (en) Method and system and server for implementing list information synchronization
US20150032828A1 (en) Friendly Names for Stored CPM Conversation Histories
US20250024398A1 (en) Api driven subscriber ims registration status changes and ims routing steering
CN101516131A (en) Method, system and device for data synchronization
EP2847931B1 (en) Method and apparatus for updating personal information in communication system
CN107770033A (en) A kind of method and device to be communicated between terminal in multisystem
CN1852322B (en) An information synchronization method, system and terminal equipment
CN107342965A (en) Rich media communications method, system and server
CN117097744B (en) Information synchronization method, controlled equipment, control equipment and electronic equipment
WO2021110693A1 (en) Network aggregation system
CN101610225A (en) Synchronous processing method, system and device
KR20240099420A (en) Method and apparatus for subscribing to the same event for multiple sessions of one UE

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180425

Address after: 210012 No. 68, Bauhinia Road, Ningnan street, Yuhuatai District, Nanjing, Jiangsu

Applicant after: Nanjing Zhongxing Software Co.,Ltd.

Address before: 518057 Nanshan District high tech Industrial Park, Shenzhen, Guangdong, Ministry of justice, Zhongxing Road, South China road.

Applicant before: ZTE Corp.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191104

Address after: 518057 Nanshan District science and Technology Industrial Park, Guangdong high tech Industrial Park, ZTE building

Patentee after: ZTE Corp.

Address before: 210012 Nanjing, Yuhuatai District, South Street, Bauhinia Road, No. 68

Patentee before: Nanjing Zhongxing Software Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20250322

Address after: Room 1603, 16th Floor, Building 8, No. 10 Kegu 1st Street, Beijing Economic and Technological Development Zone, Daxing District, Beijing 100176

Patentee after: Beijing Xingyun Numerical Technology Co.,Ltd.

Country or region after: China

Address before: 518057 Zhongxing building, science and technology south road, Nanshan District hi tech Industrial Park, Guangdong, Shenzhen

Patentee before: ZTE Corp.

Country or region before: China