WO2013040934A1 - User session synchronization device and method in instant communication - Google Patents

User session synchronization device and method in instant communication Download PDF

Info

Publication number
WO2013040934A1
WO2013040934A1 PCT/CN2012/078253 CN2012078253W WO2013040934A1 WO 2013040934 A1 WO2013040934 A1 WO 2013040934A1 CN 2012078253 W CN2012078253 W CN 2012078253W WO 2013040934 A1 WO2013040934 A1 WO 2013040934A1
Authority
WO
WIPO (PCT)
Prior art keywords
connection
user
list
control unit
storage unit
Prior art date
Application number
PCT/CN2012/078253
Other languages
French (fr)
Chinese (zh)
Inventor
胡加明
Original Assignee
苏州阔地网络科技有限公司
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 苏州阔地网络科技有限公司 filed Critical 苏州阔地网络科技有限公司
Publication of WO2013040934A1 publication Critical patent/WO2013040934A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]

Definitions

  • the invention belongs to the field of network communication, and in particular relates to a device and method for realizing user session synchronization in instant communication. Background technique
  • connection data of the operation due to the complicated network environment, it is easy to cause the connection data of the operation to be inconsistent with the user data, thereby causing a large amount of redundant data to be accumulated, causing business logic processing errors. In this way, the processing efficiency of the business logic is reduced, and the user experience is affected, and even worse, the system is crashed.
  • the present invention provides a device and method for realizing user session synchronization in instant communication to solve the above problems.
  • the present invention provides a user session synchronization device for real-time communication, including a data transceiver and a processor.
  • the processor includes a control unit and a storage unit.
  • the data transceiver is connected to the processor, and the control unit is connected to the storage unit.
  • the control unit acquires the latest connection list from the data transceiver, and obtains a connection and user correspondence list from the storage unit, and the control unit updates the storage synchronously by comparing the latest connection list and the connection with the user correspondence list. A list of connections within the unit and the user.
  • the invention also provides a method for realizing user session synchronization in instant communication.
  • the above method comprises the steps of: triggering a user session synchronization operation; the control unit of the processor acquires the latest connection list from the data transceiver, and obtains a connection and user correspondence list from the storage unit of the processor; the control unit compares the latest connection list and Connect to the user correspondence list, and synchronize the connection and user correspondence list in the storage unit.
  • the user session synchronization device and method are implemented in the instant communication provided by the present invention.
  • the control unit of the processor synchronously updates the storage unit by comparing the latest connection list and the connection in the storage unit with the user correspondence list. Connect to the user's corresponding list. In this way, the connection between the data transceiver and the user data in the processor is realized, the backlog of redundant data is avoided, and the user experience is improved.
  • FIG. 1 is a schematic diagram of implementing a user session synchronization device in instant messaging according to a preferred embodiment of the present invention
  • FIG. 2 is a flow chart showing a method for implementing user session synchronization in instant messaging according to a preferred embodiment of the present invention. detailed description
  • a user session synchronization device implemented in instant messaging provided by a preferred embodiment of the present invention includes a data transceiver 10, a processor 12, and a memory 14.
  • a data transceiver 10 includes a data transceiver 10 and a processor 12.
  • the data transceiver 10 is coupled to the processor 12, and the processor 12 is coupled to the memory 14.
  • the processor 12 includes a control unit 120 and a storage unit 122, and the control unit 120 is coupled to the storage unit 122.
  • the control unit 120 acquires the latest connection list from the data transceiver 10, and acquires the connection and user correspondence list from the storage unit 122.
  • the control unit 120 compares the latest connection list and the connection and user correspondence list.
  • the connection and the user correspondence list in the storage unit 122 are synchronously updated. Further, when the control unit 120 synchronously updates the connection and user correspondence list in the storage unit 122, the control unit 120 synchronously updates the user list stored in the memory 14.
  • FIG. 2 is a flow chart showing a method for implementing user session synchronization in instant messaging according to a preferred embodiment of the present invention. As shown in FIG. 2, the method for implementing user session synchronization in instant messaging provided by the preferred embodiment of the present invention includes steps 101-103. The details will be described below with reference to Figs. 1 and 2.
  • a user session synchronization operation is triggered.
  • the manner of triggering the user session synchronization operation is exemplified by the timing trigger mode.
  • the user session synchronization device in the instant communication further includes a timer, and the timer is connected to the processor 12, for periodically triggering the user session synchronization operation.
  • the user session synchronization operation is started by the time point set by the timer.
  • the manner in which the user session synchronization operation is triggered may also be a command trigger mode, that is, the execution of the user session synchronization operation is controlled by an operation command.
  • step 102 the control unit 120 of the processor 12 acquires the latest connection list from the data transceiver 10, and acquires a connection and user correspondence list from the storage unit 122 of the processor 12. Specifically, after the user session synchronization operation is triggered, the control unit 120 acquires the latest connection list of the current time from the data transceiver 10. Wherein, during the user session synchronization, the control unit 120 stores the connection information received from the data transceiver 10 in a buffer. At the same time, the control unit 120 acquires the stored previous connection and user correspondence list from the storage unit 122.
  • the connection has a one-to-one correspondence with the user.
  • step 103 the control unit 120 synchronizes by comparing the latest connection list and the connection with the user correspondence list.
  • the connection within the new storage unit 122 corresponds to the user list.
  • the control unit 120 can synchronize the latest connection and user data to the storage unit 122 by comparing the latest connection list obtained from the data transceiver 10 and the connection and user correspondence list in the storage unit 122. In this way, synchronization of information in the data transceiver 10 and the processor 14 is achieved.
  • control unit 120 compares the latest connection list and the connection with the user, if the user corresponding to the connection in the latest connection list does not exist in the connection and user correspondence list, The control unit 120 notifies the storage unit 122 to add the user and the corresponding connection. If the connection has a user corresponding to the connection in the latest connection list in the user correspondence list, the control unit 120 notifies the storage unit 122 to delete the user. And the corresponding connection.
  • connection a For example, if the latest connection list includes connection a, connection b, connection c, and connection e, the list of connections and users obtained by the control unit 120 from the storage unit 122 is as shown in Table 1 below.
  • the control unit 120 notifies the storage unit 122 to add the connection e and the user corresponding to the connection e (for example, the user E). Further, the user D and the connection d in the above-mentioned connection and user correspondence list are not present in the latest connection list, and therefore, the control unit 120 notifies the storage unit 122 to delete the connection d and the user D.
  • control unit 120 obtains the latest connection and user correspondence list by comparing the latest connection list and the obtained connection and user correspondence list, and transmits the latest connection and user correspondence list to the storage unit 122.
  • the storage unit 122 performs synchronous update according to the latest connection received and the user correspondence list.
  • control unit 120 obtains the latest connection and user correspondence list as shown in Table 2 below.
  • control unit 120 transmits the obtained latest connection and user correspondence list to the storage unit 122, and the storage unit 122 updates the information stored according to the above table 2.
  • control unit 120 when the control unit 120 synchronizes the latest connection and user correspondence data to the storage unit 122, the control unit 120 also synchronously updates the user list stored in the memory 14. For example, if the connection list updated by the control unit 120 and the user correspondence list are as shown in Table 2, the control unit 120 transmits the user list including the users A ⁇ C and the user E to the memory 14, and updates the user list stored in the memory 14. . In this way, synchronization of user information in the processor 12 and the memory 14 is achieved.
  • the control unit 120 transmits the data stored in the buffer to the storage unit 122 to implement synchronization with the current connection information in the storage unit 122.
  • the control unit 120 sends control commands to the data transceiver 10 and the memory 14, so that the data transceiver 10 directly transmits the connection information to the storage unit 122, and the memory 14 directly synchronizes the user information with the storage unit 122.
  • the control unit 120 ends the work after the end of the user synchronization session operation until the next synchronization session operation is triggered.
  • the invention is not limited thereto.
  • a user session synchronization device and method are implemented in an instant communication, and the control unit updates the connection in the storage unit by comparing the latest connection list and the connection in the storage unit with the user correspondence list. A list corresponding to the user.
  • the control unit buffer stores the connection information updated during the user session synchronization process, and performs transmission processing after the user session synchronization operation ends, thus avoiding data loss during user session synchronization and improving data stability.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present invention provides a user session synchronization device and method in instant communication. The device comprises a data transceiver and a processor. The processor comprises a control unit and a storage unit. The data transceiver is connected to the processor, and the control unit is connected to the storage unit. After a user session synchronization operation is triggered, the control unit acquires a latest connection list from the data transceiver, and acquires a connection and user corresponding list from the storage unit; the control unit, by comparing the latest connection list and the connection and user corresponding list, synchronously updates the connection and user corresponding list in the storage unit.

Description

一种即时通信中实现用户会话同步设备及方法 技术领域  User equipment synchronization device and method in instant communication
本发明属于网络通信领域, 尤其涉及一种即时通信中实现用户会话同步设备及方法。 背景技术  The invention belongs to the field of network communication, and in particular relates to a device and method for realizing user session synchronization in instant communication. Background technique
目前, 于即时通信过程中, 由于网络环境复杂, 容易产生操作的连接数据与用户数据不 统一的情况, 从而导致积压大量的冗余数据, 造成业务逻辑处理出错。 如此, 降低业务逻辑 的处理效率, 而且影响了用户体验, 更甚者, 会导致系统崩溃。  At present, in the process of instant communication, due to the complicated network environment, it is easy to cause the connection data of the operation to be inconsistent with the user data, thereby causing a large amount of redundant data to be accumulated, causing business logic processing errors. In this way, the processing efficiency of the business logic is reduced, and the user experience is affected, and even worse, the system is crashed.
此外, 在传统的分布式用户会话同步过程中, 没有考虑新产生的用户数据, 容易导致这 些数据丢失, 从而影响用户体验度。 发明内容  In addition, in the traditional distributed user session synchronization process, the newly generated user data is not considered, which easily causes these data to be lost, thereby affecting the user experience. Summary of the invention
本发明提供一种即时通信中实现用户会话同步设备及方法, 以解决上述问题。  The present invention provides a device and method for realizing user session synchronization in instant communication to solve the above problems.
本发明提供一种即时通信中实现用户会话同步设备, 包括数据收发器以及处理器。 处理 器包括控制单元及存储单元。 数据收发器连接处理器, 控制单元连接存储单元。 于用户会话 同步操作被触发后, 控制单元从数据收发器获取最新的连接列表, 并从存储单元获取连接与 用户对应列表, 控制单元通过比较最新的连接列表以及连接与用户对应列表, 同步更新存储 单元内的连接与用户对应列表。  The present invention provides a user session synchronization device for real-time communication, including a data transceiver and a processor. The processor includes a control unit and a storage unit. The data transceiver is connected to the processor, and the control unit is connected to the storage unit. After the user session synchronization operation is triggered, the control unit acquires the latest connection list from the data transceiver, and obtains a connection and user correspondence list from the storage unit, and the control unit updates the storage synchronously by comparing the latest connection list and the connection with the user correspondence list. A list of connections within the unit and the user.
本发明还提供一种即时通信中实现用户会话同步方法。 上述方法包括以下步骤: 触发用 户会话同步操作; 处理器的控制单元从数据收发器获取最新的连接列表, 并从处理器的存储 单元获取连接与用户对应列表;控制单元通过比较最新的连接列表以及连接与用户对应列表, 同步更新存储单元内的连接与用户对应列表。  The invention also provides a method for realizing user session synchronization in instant communication. The above method comprises the steps of: triggering a user session synchronization operation; the control unit of the processor acquires the latest connection list from the data transceiver, and obtains a connection and user correspondence list from the storage unit of the processor; the control unit compares the latest connection list and Connect to the user correspondence list, and synchronize the connection and user correspondence list in the storage unit.
相较于先前技术, 根据本发明提供的即时通信中实现用户会话同步设备及方法, 处理器 的控制单元通过比较最新的连接列表以及存储单元内的连接与用户对应列表, 同步更新存储 单元内的连接与用户对应列表。 如此, 实现了数据收发器中的连接与处理器中的用户数据的 同步, 避免了冗余数据的积压, 而且提高了用户的体验度。 附图说明  Compared with the prior art, the user session synchronization device and method are implemented in the instant communication provided by the present invention. The control unit of the processor synchronously updates the storage unit by comparing the latest connection list and the connection in the storage unit with the user correspondence list. Connect to the user's corresponding list. In this way, the connection between the data transceiver and the user data in the processor is realized, the backlog of redundant data is avoided, and the user experience is improved. DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发明的示 意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图中: 图 1 所示为根据本发明的较佳实施例提供的即时通信中实现用户会话同步设备的示意 图; The drawings are intended to provide a further understanding of the present invention, and are intended to be a part of the present invention, and the description of the present invention is not intended to limit the invention. In the drawing: 1 is a schematic diagram of implementing a user session synchronization device in instant messaging according to a preferred embodiment of the present invention;
图 2 所示为根据本发明的较佳实施例提供的即时通信中实现用户会话同步方法的流程 图。 具体实施方式  2 is a flow chart showing a method for implementing user session synchronization in instant messaging according to a preferred embodiment of the present invention. detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是, 在不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。  The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
图 1 所示为根据本发明的较佳实施例提供的即时通信中实现用户会话同步设备的示意 图。 如图 1所示, 本发明的较佳实施例提供的即时通信中实现用户会话同步设备包括数据收 发器 10、 处理器 12以及存储器 14.。 然而, 本发明并不限定于此。  1 is a schematic diagram of an implementation of a user session synchronization device in instant messaging provided in accordance with a preferred embodiment of the present invention. As shown in FIG. 1, a user session synchronization device implemented in instant messaging provided by a preferred embodiment of the present invention includes a data transceiver 10, a processor 12, and a memory 14. However, the invention is not limited thereto.
于本实施例中, 数据收发器 10连接处理器 12, 处理器 12连接存储器 14。 处理器 12包 括控制单元 120以及存储单元 122, 控制单元 120连接存储单元 122。于用户会话同步操作被 触发后, 控制单元 120从数据收发器 10获取最新的连接列表, 并从存储单元 122获取连接与 用户对应列表, 控制单元 120通过比较最新的连接列表以及连接与用户对应列表, 同步更新 存储单元 122内的连接与用户对应列表。 此外, 当控制单元 120同步更新存储单元 122内的 连接与用户对应列表时, 控制单元 120同步更新存储器 14内存储的用户列表。  In the present embodiment, the data transceiver 10 is coupled to the processor 12, and the processor 12 is coupled to the memory 14. The processor 12 includes a control unit 120 and a storage unit 122, and the control unit 120 is coupled to the storage unit 122. After the user session synchronization operation is triggered, the control unit 120 acquires the latest connection list from the data transceiver 10, and acquires the connection and user correspondence list from the storage unit 122. The control unit 120 compares the latest connection list and the connection and user correspondence list. The connection and the user correspondence list in the storage unit 122 are synchronously updated. Further, when the control unit 120 synchronously updates the connection and user correspondence list in the storage unit 122, the control unit 120 synchronously updates the user list stored in the memory 14.
图 2 所示为根据本发明的较佳实施例提供的即时通信中实现用户会话同步方法的流程 图。 如图 2 所示, 本发明的较佳实施例提供的即时通信中实现用户会话同步方法包括步骤 101~103。 以下结合图 1及图 2进行详细说明。  2 is a flow chart showing a method for implementing user session synchronization in instant messaging according to a preferred embodiment of the present invention. As shown in FIG. 2, the method for implementing user session synchronization in instant messaging provided by the preferred embodiment of the present invention includes steps 101-103. The details will be described below with reference to Figs. 1 and 2.
于步骤 101, 触发用户会话同步操作。 于此, 触发用户会话同步操作的方式以定时触发 方式为例。 具体而言, 即时通信中实现用户会话同步设备还包括定时器, 定时器连接处理器 12, 用于定时触发用户会话同步操作。通过定时器设置的时间点定时启动用户会话同步操作。 然而, 本发明并不限定于此。 于其他实施例中, 触发用户会话同步操作的方式还可为命令触 发方式, 即通过操作命令控制用户会话同步操作的执行。  In step 101, a user session synchronization operation is triggered. Here, the manner of triggering the user session synchronization operation is exemplified by the timing trigger mode. Specifically, the user session synchronization device in the instant communication further includes a timer, and the timer is connected to the processor 12, for periodically triggering the user session synchronization operation. The user session synchronization operation is started by the time point set by the timer. However, the invention is not limited thereto. In other embodiments, the manner in which the user session synchronization operation is triggered may also be a command trigger mode, that is, the execution of the user session synchronization operation is controlled by an operation command.
于步骤 102, 处理器 12的控制单元 120从数据收发器 10获取最新的连接列表, 并从处 理器 12的存储单元 122获取连接与用户对应列表。具体而言,于用户会话同步操作被触发后, 控制单元 120从数据收发器 10获取当前时刻最新的连接列表。其中,于用户会话同步过程中, 控制单元 120将从数据收发器 10接收的连接信息存储于缓冲区中。 同时, 控制单元 120从存 储单元 122获取存储的之前的连接与用户对应列表。 于此, 连接与用户为一一对应关系。  In step 102, the control unit 120 of the processor 12 acquires the latest connection list from the data transceiver 10, and acquires a connection and user correspondence list from the storage unit 122 of the processor 12. Specifically, after the user session synchronization operation is triggered, the control unit 120 acquires the latest connection list of the current time from the data transceiver 10. Wherein, during the user session synchronization, the control unit 120 stores the connection information received from the data transceiver 10 in a buffer. At the same time, the control unit 120 acquires the stored previous connection and user correspondence list from the storage unit 122. Here, the connection has a one-to-one correspondence with the user.
于步骤 103, 控制单元 120通过比较最新的连接列表以及连接与用户对应列表, 同步更 新存储单元 122内的连接与用户对应列表。 具体而言, 由于网络环境较复杂, 于一段时间的 数据处理后, 数据收发器 10接收的连接会与处理器 12中存储的连接与用户对应数据存在差 异, 从而造成处理器 12 中积压大量冗余数据。 于此, 控制单元 120通过比较从数据收发器 10获取最新的连接列表以及存储单元 122内的连接与用户对应列表, 可以将最新的连接与用 户数据同步至存储单元 122。 如此, 实现数据收发器 10及处理器 14内信息的同步。 In step 103, the control unit 120 synchronizes by comparing the latest connection list and the connection with the user correspondence list. The connection within the new storage unit 122 corresponds to the user list. Specifically, since the network environment is complicated, after the data processing for a period of time, the connection received by the data transceiver 10 is different from the data stored in the processor 12 and the user corresponding data, thereby causing a large amount of redundancy in the processor 12. Other data. Here, the control unit 120 can synchronize the latest connection and user data to the storage unit 122 by comparing the latest connection list obtained from the data transceiver 10 and the connection and user correspondence list in the storage unit 122. In this way, synchronization of information in the data transceiver 10 and the processor 14 is achieved.
具体而言, 于本实施例中, 当控制单元 120比较最新的连接列表及连接与用户对应列表 时, 若最新的连接列表中的连接所对应的用户未存在于连接与用户对应列表中, 则控制单元 120通知存储单元 122添加所述用户及对应的连接, 若连接与用户对应列表中存在没有同最 新的连接列表中的连接相对应的用户, 则控制单元 120通知存储单元 122删除所述用户及对 应的连接。  Specifically, in the embodiment, when the control unit 120 compares the latest connection list and the connection with the user, if the user corresponding to the connection in the latest connection list does not exist in the connection and user correspondence list, The control unit 120 notifies the storage unit 122 to add the user and the corresponding connection. If the connection has a user corresponding to the connection in the latest connection list in the user correspondence list, the control unit 120 notifies the storage unit 122 to delete the user. And the corresponding connection.
举例而言, 若最新的连接列表包括连接 a、 连接 b、 连接 c及连接 e, 控制单元 120从存 储单元 122获取的连接与用户对应列表如下表 1所示。  For example, if the latest connection list includes connection a, connection b, connection c, and connection e, the list of connections and users obtained by the control unit 120 from the storage unit 122 is as shown in Table 1 below.
Figure imgf000004_0001
Figure imgf000004_0001
由此可知, 上述连接与用户对应列表中未存在与连接 e对应的用户, 因此, 控制单元 120 通知存储单元 122添加连接 e及与连接 e对应的用户 (例如, 用户 E)。 另外, 上述连接与用 户对应列表中的用户 D及连接 d没有在最新的连接列表中出现, 因此, 控制单元 120通知存 储单元 122删除连接 d及用户 D。  Therefore, it is known that the user corresponding to the connection e does not exist in the connection and the user correspondence list. Therefore, the control unit 120 notifies the storage unit 122 to add the connection e and the user corresponding to the connection e (for example, the user E). Further, the user D and the connection d in the above-mentioned connection and user correspondence list are not present in the latest connection list, and therefore, the control unit 120 notifies the storage unit 122 to delete the connection d and the user D.
于另一较佳实施例中, 控制单元 120通过比较最新的连接列表及获取的连接与用户对应 列表,得到最新的连接与用户对应列表,并将最新的连接与用户对应列表传输至存储单元 122, 存储单元 122根据接收的最新的连接与用户对应列表进行同步更新。  In another preferred embodiment, the control unit 120 obtains the latest connection and user correspondence list by comparing the latest connection list and the obtained connection and user correspondence list, and transmits the latest connection and user correspondence list to the storage unit 122. The storage unit 122 performs synchronous update according to the latest connection received and the user correspondence list.
例如, 若控制单元 120获取的最新的连接列表包括连接 a、 连接 b、 连接 c及连接 e, 控 制单元 120从存储单元 122获取的之前存储的连接与用户对应列表如上表 1所示, 则控制单 元 120得到最新的连接与用户对应列表如下表 2所示。  For example, if the latest connection list acquired by the control unit 120 includes the connection a, the connection b, the connection c, and the connection e, the previously stored connection and user correspondence list acquired by the control unit 120 from the storage unit 122 is as shown in Table 1 above, then control The unit 120 obtains the latest connection and user correspondence list as shown in Table 2 below.
连接 用户  Connection user
连接 a 用户 A  Connection a User A
连接 b 用户 B 连接 c 用户 C Connect b user B Connect c user C
连接 e 用户 E 于此, 控制单元 120将得到的最新的连接与用户对应列表传输给存储单元 122, 存储单 元 122根据上表 2对其存储的信息进行更新。  Connecting e User E Here, the control unit 120 transmits the obtained latest connection and user correspondence list to the storage unit 122, and the storage unit 122 updates the information stored according to the above table 2.
此外, 于本实施例中, 当控制单元 120同步最新的连接与用户对应数据至存储单元 122 时, 控制单元 120还同步更新存储器 14内存储的用户列表。例如, 控制单元 120更新得到的 连接与用户对应列表如表 2所示,则控制单元 120会将包括用户 A~C及用户 E的用户列表传 输至存储器 14, 并更新存储器 14内存储的用户列表。 如此, 实现处理器 12以及存储器 14 内用户信息的同步。  In addition, in the present embodiment, when the control unit 120 synchronizes the latest connection and user correspondence data to the storage unit 122, the control unit 120 also synchronously updates the user list stored in the memory 14. For example, if the connection list updated by the control unit 120 and the user correspondence list are as shown in Table 2, the control unit 120 transmits the user list including the users A~C and the user E to the memory 14, and updates the user list stored in the memory 14. . In this way, synchronization of user information in the processor 12 and the memory 14 is achieved.
于本实施例中, 当控制单元 120控制的用户会话同步操作完成之后, 控制单元 120会将 缓冲区内存储的数据传输至存储单元 122, 以实现存储单元 122内与当前的连接信息同步。 同时, 控制单元 120向数据收发器 10及存储器 14发送控制命令, 使得数据收发器 10直接向 存储单元 122传输连接信息, 存储器 14直接与存储单元 122实现用户信息同步。换言之, 控 制单元 120于用户同步会话操作结束后结束工作, 直至下一次同步会话操作触发时再开始工 作。 然而, 本发明并不限定于此。  In this embodiment, after the user session synchronization operation controlled by the control unit 120 is completed, the control unit 120 transmits the data stored in the buffer to the storage unit 122 to implement synchronization with the current connection information in the storage unit 122. At the same time, the control unit 120 sends control commands to the data transceiver 10 and the memory 14, so that the data transceiver 10 directly transmits the connection information to the storage unit 122, and the memory 14 directly synchronizes the user information with the storage unit 122. In other words, the control unit 120 ends the work after the end of the user synchronization session operation until the next synchronization session operation is triggered. However, the invention is not limited thereto.
综上所述, 根据本发明较佳实施例提供的即时通信中实现用户会话同步设备及方法, 控 制单元通过比较最新的连接列表以及存储单元内的连接与用户对应列表, 更新存储单元内的 连接与用户对应列表。 如此, 实现了数据收发器中的连接与处理器中的用户数据的同步, 避 免了冗余数据的积压, 而且提高了用户的体验度。 此外, 控制单元的缓冲区中存储于用户会 话同步过程中更新的连接信息, 并于用户会话同步操作结束后进行传输处理, 如此, 避免了 用户会话同步过程中数据的丢失, 提高了数据稳定性。  In summary, according to the preferred embodiment of the present invention, a user session synchronization device and method are implemented in an instant communication, and the control unit updates the connection in the storage unit by comparing the latest connection list and the connection in the storage unit with the user correspondence list. A list corresponding to the user. In this way, the connection between the data transceiver and the user data in the processor is synchronized, the backlog of redundant data is avoided, and the user experience is improved. In addition, the control unit buffer stores the connection information updated during the user session synchronization process, and performs transmission processing after the user session synchronization operation ends, thus avoiding data loss during user session synchronization and improving data stability. .
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技术人员 来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的任何修改、 等 同替换、 改进等, 均应包含在本发明的保护范围之内。  The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权利要求书 Claim
1、 一种即时通信中实现用户会话同步设备, 其特征在于, 包括数据收发器以及处理器, 所述处理器包括控制单元及存储单元, 所述数据收发器连接所述处理器, 所述控制单元连接 所述存储单元,  A user session synchronization device for real-time communication, comprising: a data transceiver and a processor, the processor includes a control unit and a storage unit, the data transceiver is connected to the processor, and the control a unit is connected to the storage unit,
于用户会话同步操作被触发后, 所述控制单元从所述数据收发器获取最新的连接列表, 并从所述存储单元获取连接与用户对应列表, 所述控制单元通过比较所述最新的连接列表以 及所述连接与用户对应列表, 同步更新所述存储单元内的连接与用户对应列表。  After the user session synchronization operation is triggered, the control unit acquires a latest connection list from the data transceiver, and obtains a connection and user correspondence list from the storage unit, and the control unit compares the latest connection list by comparing And the connection and the user correspondence list, and the connection and the user correspondence list in the storage unit are synchronously updated.
2、根据权利要求 1所述的即时通信中实现用户会话同步设备, 其特征在于, 所述控制单 元比较最新的连接列表及所述连接与用户对应列表, 若最新的连接列表中的连接所对应的用 户未存在于所述连接与用户对应列表中, 则所述控制单元通知所述存储单元添加所述用户及 其对应的连接, 若所述连接与用户对应列表中存在没有同最新的连接列表中的连接相对应的 用户, 则所述控制单元通知所述存储单元删除所述用户及其对应的连接。  The user session synchronization device for real-time communication according to claim 1, wherein the control unit compares the latest connection list and the connection and user correspondence list, if the connection in the latest connection list corresponds to The user does not exist in the connection and user correspondence list, and the control unit notifies the storage unit to add the user and its corresponding connection, if the connection and the user correspondence list are not in the same latest connection list The user in the connection corresponds to the user, and the control unit notifies the storage unit to delete the user and its corresponding connection.
3、根据权利要求 1所述的即时通信中实现用户会话同步设备, 其特征在于, 所述控制单 元通过比较最新的连接列表及所述连接与用户对应列表, 得到最新的连接与用户对应列表, 并将所述最新的连接与用户对应列表传输至所述存储单元, 所述存储单元根据接收到的最新 的连接与用户对应列表进行同步更新。  The user session synchronization device for real-time communication according to claim 1, wherein the control unit obtains the latest connection and user correspondence list by comparing the latest connection list and the connection and user correspondence list. And transmitting the latest connection and user correspondence list to the storage unit, and the storage unit performs synchronous update according to the latest connection received and the user correspondence list.
4、根据权利要求 1所述的即时通信中实现用户会话同步设备, 其特征在于, 还包括存储 器, 所述存储器连接所述处理器, 当所述控制单元同步更新所述存储单元内的连接与用户对 应列表时, 所述控制单元同步更新所述存储器内存储的用户列表。  4. The device for implementing user session synchronization in instant messaging according to claim 1, further comprising a memory, said memory being connected to said processor, wherein said control unit synchronously updates a connection in said storage unit When the user corresponds to the list, the control unit synchronously updates the user list stored in the memory.
5、根据权利要求 1所述的即时通信中实现用户会话同步设备, 其特征在于, 还包括定时 器, 所述定时器连接所述处理器, 用于定时触发用户会话同步操作。  The apparatus for implementing user session synchronization in the instant messaging according to claim 1, further comprising a timer, wherein the timer is connected to the processor, and is configured to periodically trigger a user session synchronization operation.
6、 一种即时通信中实现用户会话同步方法, 其特征在于, 包括以下步骤:  6. A method for implementing user session synchronization in instant messaging, characterized in that it comprises the following steps:
触发用户会话同步操作;  Trigger user session synchronization operation;
处理器的控制单元从数据收发器获取最新的连接列表, 并从所述处理器的存储单元获取 连接与用户对应列表;  The control unit of the processor acquires the latest connection list from the data transceiver, and obtains a connection and user correspondence list from the storage unit of the processor;
所述控制单元通过比较所述最新的连接列表以及所述连接与用户对应列表, 同步更新所 述存储单元内的连接与用户对应列表。  The control unit synchronously updates the connection and user correspondence list in the storage unit by comparing the latest connection list and the connection with the user correspondence list.
7、根据权利要求 6所述的即时通信中实现用户会话同步方法, 其特征在于, 于所述控制 单元同步更新所述存储单元内的连接与用户对应列表时, 所述控制单元同步更新存储器内存 储的用户列表。 The method for realizing user session synchronization in instant messaging according to claim 6, wherein when the control unit synchronously updates the connection and the user correspondence list in the storage unit, the control unit synchronously updates the memory. A list of stored users.
8、根据权利要求 6所述的即时通信中实现用户会话同步方法, 其特征在于, 触发用户会 话同步操作的方式包括命令触发方式以及定时触发方式。 The method for realizing user session synchronization in instant messaging according to claim 6, wherein the manner of triggering the user session synchronization operation includes a command trigger mode and a timing trigger mode.
9、根据权利要求 6所述的即时通信中实现用户会话同步方法, 其特征在于, 所述控制单 元比较最新的连接列表及所述连接与用户对应列表, 若最新的连接列表中的连接所对应的用 户未存在于所述连接与用户对应列表中, 则所述控制单元通知所述存储单元添加所述用户及 其对应的连接, 若所述连接与用户对应列表中存在没有同最新的连接列表中的连接相对应的 用户, 则所述控制单元通知所述存储单元删除所述用户及其对应的连接。  The method for realizing user session synchronization in instant messaging according to claim 6, wherein the control unit compares the latest connection list and the connection and user correspondence list, if the connection in the latest connection list corresponds to The user does not exist in the connection and user correspondence list, and the control unit notifies the storage unit to add the user and its corresponding connection, if the connection and the user correspondence list are not in the same latest connection list The user in the connection corresponds to the user, and the control unit notifies the storage unit to delete the user and its corresponding connection.
10、 根据权利要求 6所述的即时通信中实现用户会话同步方法, 其特征在于, 所述控制 单元通过比较最新的连接列表及所述连接与用户对应列表,得到最新的连接与用户对应列表, 并将所述最新的连接与用户对应列表传输至所述存储单元, 所述存储单元根据接收的最新的 连接与用户对应列表进行同步更新。  The method for realizing user session synchronization in the instant communication according to claim 6, wherein the control unit obtains the latest connection and user correspondence list by comparing the latest connection list and the connection and the user correspondence list. And transmitting the latest connection and user correspondence list to the storage unit, and the storage unit performs synchronous update according to the latest connection received and the user correspondence list.
PCT/CN2012/078253 2011-09-20 2012-07-05 User session synchronization device and method in instant communication WO2013040934A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110278658.5 2011-09-20
CN2011102786585A CN102291330A (en) 2011-09-20 2011-09-20 Equipment and method for realizing user session synchronization during instant communication

Publications (1)

Publication Number Publication Date
WO2013040934A1 true WO2013040934A1 (en) 2013-03-28

Family

ID=45337448

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/078253 WO2013040934A1 (en) 2011-09-20 2012-07-05 User session synchronization device and method in instant communication

Country Status (2)

Country Link
CN (1) CN102291330A (en)
WO (1) WO2013040934A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291330A (en) * 2011-09-20 2011-12-21 苏州阔地网络科技有限公司 Equipment and method for realizing user session synchronization during instant communication

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296507A (en) * 2007-04-29 2008-10-29 华为技术有限公司 Method and system and server for implementing list information synchronization
CN101572599A (en) * 2008-09-04 2009-11-04 华为技术有限公司 Method, device and system for timing execution of synchronization
CN102291331A (en) * 2011-09-20 2011-12-21 苏州阔地网络科技有限公司 Equipment and method for realizing user session synchronization during instant communication
CN102291330A (en) * 2011-09-20 2011-12-21 苏州阔地网络科技有限公司 Equipment and method for realizing user session synchronization during instant communication
CN102291332A (en) * 2011-09-20 2011-12-21 苏州阔地网络科技有限公司 Synchronization equipment and method for realizing user session in instant communication
CN102325020A (en) * 2011-09-20 2012-01-18 苏州阔地网络科技有限公司 User session synchronization equipment and method in instant communication

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6870830B1 (en) * 2000-11-30 2005-03-22 3Com Corporation System and method for performing messaging services using a data communications channel in a data network telephone system
CN101091362B (en) * 2004-12-28 2012-07-04 Nxp股份有限公司 Method and apparatus for peer-to-peer instant messaging
CN101499977A (en) * 2008-01-28 2009-08-05 万德洪 Instant communication system and implementing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296507A (en) * 2007-04-29 2008-10-29 华为技术有限公司 Method and system and server for implementing list information synchronization
CN101572599A (en) * 2008-09-04 2009-11-04 华为技术有限公司 Method, device and system for timing execution of synchronization
CN102291331A (en) * 2011-09-20 2011-12-21 苏州阔地网络科技有限公司 Equipment and method for realizing user session synchronization during instant communication
CN102291330A (en) * 2011-09-20 2011-12-21 苏州阔地网络科技有限公司 Equipment and method for realizing user session synchronization during instant communication
CN102291332A (en) * 2011-09-20 2011-12-21 苏州阔地网络科技有限公司 Synchronization equipment and method for realizing user session in instant communication
CN102325020A (en) * 2011-09-20 2012-01-18 苏州阔地网络科技有限公司 User session synchronization equipment and method in instant communication

Also Published As

Publication number Publication date
CN102291330A (en) 2011-12-21

Similar Documents

Publication Publication Date Title
CN111541564B (en) Method for upgrading equipment firmware in Mesh network
CN104221449B (en) For realizing the method and apparatus that synchronous bluetooth and LTE/WIMAX transmission coexists
WO2017219557A1 (en) Data transmission method and data transmission apparatus
US10334545B2 (en) Synchronizing time among two or more devices
JP6164747B2 (en) Method for flow control in a collaborative environment and for reliable communication
WO2014101684A1 (en) Data synchronizing method, apparatus and system
JP2004534994A5 (en)
CN102769626B (en) A kind of session information synchronous method, device and system
WO2013178082A1 (en) Image uploading method, system, client terminal, network server and computer storage medium
WO2007000097A1 (en) Method and terminal device for synchronizing operation time in device management
WO2012149762A1 (en) Congestion control method and equipment
WO2010025677A1 (en) Method, device and system for executing synchronization
US20170237838A1 (en) Resilient implementation of stream control transmission protocol
JP2007184687A (en) Propagation delay time measuring method, synchronization method, and wireless lan system
CN106059697B (en) Method for time synchronization
WO2011063725A1 (en) Method and system for active-standby synchronization
CN104954101A (en) Multi-terminal data synchronization method based on ACK synchronization
CN104639434A (en) Open shortest path first protocol smooth restart method and device
CN102945193B (en) A kind of restoration methods and electronic equipment of operation data
CN105872056B (en) Method and system for rapidly synchronizing computer cluster data
CN111061745A (en) Data synchronization system and method
CN113630203B (en) Multi-device triggering synchronization method
CN110740195A (en) distributed system data synchronization method and system based on message engine
WO2016106780A1 (en) User data transmission method and apparatus and terminal
WO2013083013A1 (en) Synchronization method among network devices, network device and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12833436

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12833436

Country of ref document: EP

Kind code of ref document: A1