[go: up one dir, main page]

WO2009092228A1 - Method, server, system and client for automatic transmitting of information - Google Patents

Method, server, system and client for automatic transmitting of information Download PDF

Info

Publication number
WO2009092228A1
WO2009092228A1 PCT/CN2008/073448 CN2008073448W WO2009092228A1 WO 2009092228 A1 WO2009092228 A1 WO 2009092228A1 CN 2008073448 W CN2008073448 W CN 2008073448W WO 2009092228 A1 WO2009092228 A1 WO 2009092228A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
user
sending
receiving
module
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.)
Ceased
Application number
PCT/CN2008/073448
Other languages
French (fr)
Chinese (zh)
Inventor
Bin Li
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Publication of WO2009092228A1 publication Critical patent/WO2009092228A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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 present invention relates to instant messaging (IM) technology, and in particular, to a method, a server, a system, and a client for implementing automatic information transmission.
  • IM instant messaging
  • IM tools have gradually become an indispensable part of users' daily communication life, not only in the user's work life, but also in the user's spare life. Users can realize instant and effective communication with other users through IM tools. Communication; Users can also share instant and effective information with other users through IM tools. In short, IM tools bring great convenience to users' communication and communication in their spare time. At the same time, users use IM tools for communication in their work and leisure life, which promotes the related technology development of IM tools.
  • an embodiment of the present invention provides a method, a server, and a system for automatically transmitting information. And the client to implement automatic information transmission in the IM system.
  • the automatic transmission information encapsulated by the transmitting side user and the data packet of the transmitting side user account are transmitted to the receiving side IM client.
  • An IM server for implementing automatic information transmission includes: a first module, configured to receive and store a data packet sent by an IM client on a sending side, where the data packet includes an automatic sending set by a sending user. Information and user account on the sending side;
  • the second module is configured to send, when the user status of the sending side changes, the automatic sending information encapsulated by the sending side user and the data packet of the sending side user account to the receiving side IM client.
  • the sending side IM client is configured to receive the setting of the automatic sending information by the sending side user, and after completing the setting of the automatic sending information, send the data packet encapsulated with the automatic sending information set by the sending side user and the sending side user account to IM server;
  • An IM server configured to receive and store a data packet from the sending side IM client; and send, when the user status changes, a data packet encapsulated with the automatic sending information set by the sending side user and the sending side user account to the receiving side IM Client
  • the receiving side IM client is configured to receive the data packet of the IM server, and display the automatic sending information encapsulated in the data packet and the sending side user account to the receiving side user.
  • a first module configured to send request information for requesting setting automatic sending information to the fourth module; creating an information editing setting window by using an application programming interface API responded by the second module; receiving an automatic input of the user input to the information editing setting window Sending the information; after the user completes the setting of the automatic sending information, sending a notification message to the second module to notify the second module to automatically send the information setting completion; receiving the window closing message from the second module, closing the information editing setting window;
  • a second module configured to receive, from the first module, a request message for requesting to set automatic sending information; And responding to the request message; after receiving the notification message for notifying that the automatic sending information setting is completed from the first module, sending a window close message to the first module;
  • the third module is configured to extract the automatic sending information from the first module, set a protocol command for transmitting the automatic sending information, and encapsulate the automatic sending information and the sending side user account into the data packet, and the data is based on the protocol command for automatically sending the information.
  • the package is sent to the IM server.
  • the first module is configured to parse the content in the data packet after receiving the data packet sent by the IM server, and display the automatically sent information encapsulated in the data packet and the user account on the sending side to the receiving side user.
  • the server, the system and the client provided by the embodiment of the present invention, when the user status changes, the IM server can automatically send the information set by the user and stored thereon to the receiving client.
  • the receiving side IM user can know the status change of the IM user on the transmitting side for the first time, and since the automatically transmitted information is set by the transmitting side IM, this method is closer to the real life situation.
  • the sending side user can complete the setting of automatically sending information on any IM client, and store the set automatic sending information in the IM server, so that whether the transmitting side user is still in the future The original IM client login does not need to reset the automatic sending information.
  • FIG. 1 is a flowchart of a method for automatically transmitting information according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of an information automatic sending system according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a method for automatically sending goodbye information according to an embodiment of the present invention. Mode for carrying out the invention
  • the IM server receives the data packet from the sending side IM client, where the data packet includes the automatic sending information set by the sending side user and the sending side user account;
  • the automatic transmission information encapsulated by the user on the transmitting side and the data packet of the user account on the transmitting side are transmitted to the receiving side IM client.
  • the automatic transmission of information is also an instant communication message, but the process of transmitting such information to the receiving side IM client is initiated by the IM server, and for the instant messaging message in the prior art, The process of sending to the receiving side IM client is initiated by the sending side IM client.
  • FIG. 1 is a flowchart of a method for automatically transmitting information according to an embodiment of the present invention. As shown in Figure 1, the method includes:
  • Step 101 The IM server receives and parses the data packet sent by the sending side IM client, where the data packet is encapsulated with the automatic sending information set by the sending side IM client and the sending side user account, and the data is obtained and stored. The information extracted from the package.
  • the sending side user can complete the setting of automatically sending information on any IM client, and store the set automatic sending information in the IM server, so that whether the sending side user is still in the original IM client in the future. When you log in, you do not need to reset the automatic sending information.
  • Step 102 When the user status of the sending side changes, the data packet encapsulating the automatic sending information and the sending side user account is sent to the receiving side IM client.
  • the IM server may periodically detect the sending side IM client to know the change of the sending side user state, or may receive the detection result of the sending side user state change from the sending side IM client, that is, the sending side IM.
  • the client detects the change in the user's status and notifies the IM server.
  • the state of the user may include at least one of the following ways: Logging in to the sending side IM client (also referred to as going online), and exiting the sending side IM client (also referred to as offline)
  • Logging in to the sending side IM client also referred to as going online
  • exiting the sending side IM client also referred to as offline
  • the user is in the invisible state on the sending side
  • the IM client is in the busy state on the sending side
  • the IM client is in the leaving state on the sending side
  • the IM client is in the offline state on the sending side.
  • the user may be provided with different automatic transmission information for different types of states.
  • the data packet sent by the IM client to the IM server is also encapsulated with the status information corresponding to the automatic transmission information.
  • Different types of automatic sending information can be online information, offline information, offline Information, busy information, and away information.
  • the corresponding status information is indicated as “online”, “downline”, “offline”, “busy”, and “away”, respectively.
  • the IM server detects that the automatic transmission information corresponding to the state of the transmitting side user is encapsulated in the data packet and is sent to the receiving side IM client.
  • users can also be provided with different automatic sending information for different friends.
  • the automatic sending information is offline information, it can be set to send "bye! to the friend A and "see you later! to the friend B after the user goes offline.
  • the data packet sent by the IM client to the IM server is also encapsulated with the friend identifier corresponding to the automatic transmission information.
  • the IM server After detecting the change of the status of the user on the sending side, the IM server encapsulates the account of the sending user and the automatic sending information in a data packet to send the receiving side IM client corresponding to the friend identifier according to the information stored thereon. end.
  • the IM server can also receive a request message of the setting information receiving mode from the receiving side IM client.
  • the request message includes the receiving side IM user account and the information receiving mode.
  • the account of one or more buddy users of the receiving side IM user may further be included, indicating the manner in which the receiving side IM user receives the information for the one or more buddy users.
  • the IM server forwards the automatically sent information set by the one or more friend users to the receiving side IM client when the status of the one or more friend users indicated by the request message changes.
  • the set information receiving manner is to refuse to receive the information, the IM server does not forward any information to the receiving side IM client when the state of one or more friend users indicated by the request message changes.
  • the user may also set the information receiving mode on the receiving side IM client, that is, refuse or agree to receive the automatic sending information, so that when the receiving side IM client receives the data packet from the IM server, it parses and Extracting the protocol command number of the data packet; determining whether the information encapsulated in the data packet is an automatic transmission information type according to the protocol command number, and if not automatically transmitting the information type, processing according to other information types, if the information type is automatically sent, according to receiving The information receiving mode set by the side IM user performs the corresponding operation.
  • the user can also set different ways of receiving information for different friend users. For example, the user settings receive automatic transmission information from user A, or set to refuse to receive automatic transmission information from user B.
  • the user can set personalized automatic sending information as needed, and the more personalized selection improves the user's experience and personalization needs.
  • receiving side IM client and the transmitting side IM client in the embodiment of the present invention are divided according to logical functions. In practical applications, any IM client may simultaneously have a receiving side.
  • the functions of the IM client and the sending side IM client are divided according to logical functions.
  • FIG. 2 is a schematic structural diagram of an information automatic sending system according to an embodiment of the present invention. As shown in FIG. 2, the system includes a transmitting side IM client 1, a receiving side IM client 2, and an IM server 3.
  • the sending side IM client 1 is configured to receive the setting of the automatic sending information by the user, and after completing the setting of the automatic sending information, send the data packet encapsulating the automatic sending information and the sending side user account to the IM server 3.
  • the IM server 3 is configured to receive and store a data packet from the sending side IM client 1, wherein the data packet includes an automatic sending information and a sending side user account; and when the user state changes, an automatic corresponding to the user state is encapsulated.
  • the data packet of the sending information and the sending side user account is sent to the corresponding receiving side IM client 2.
  • the change of the user state may be detected by the transmitting side IM client 1, and the IM server 3 may be notified, or the change of the user state may be actively detected by the IM server 3.
  • the receiving side IM client 2 is configured to receive the data packet of the IM server 3, and display the automatic transmission information encapsulated in the data packet and the user account on the transmitting side to the receiving side user.
  • the system may further include a user information data server 4, configured to receive a login request from the sending side IM client 1 or the receiving side IM client 2 forwarded by the IM server, and obtain a user account and a login password encapsulated in the login request.
  • the consistency verification is performed according to the correspondence between the user account and the login password that is saved on the sending side. Then, the sending side user/receiving side user can successfully log in to the sending side IM client 1 or the receiving side IM client 2.
  • the transmitting side IM client 1 includes an information setting module and a Windows window management module.
  • the information setting module is configured to send request information for requesting setting automatic sending information to the Windows window management module; and create an information editing setting window by using an application programming interface (API, Application Programming Interface) responded by the Windows window management module; Receiving the automatic sending information input by the user to the information editing setting window; after the user completes the setting of automatically sending the information, sending a notification message to the Windows window management module to notify the Windows window management module to automatically send the information setting completion; receiving from the Windows window management module The Windows window closes the message, closing the information editing settings window.
  • API Application Programming Interface
  • a Windows window management module configured to receive, from the information setting module, a request message for requesting to set automatic transmission information; and respond to the request message; after receiving the notification message for notifying that the automatic transmission information setting is completed from the information setting module, A Windows window close message is sent to the information setting module.
  • the sending side IM client 1 further includes an information sending management module, configured to extract automatic sending information from the information setting module, and set a protocol command for transmitting the automatic sending information; and the automatic sending information and the sending side user account are encapsulated into the data packet, based on A protocol command that automatically sends information, and sends the packet to the IM server.
  • an information sending management module configured to extract automatic sending information from the information setting module, and set a protocol command for transmitting the automatic sending information
  • the automatic sending information and the sending side user account are encapsulated into the data packet, based on A protocol command that automatically sends information, and sends the packet to the IM server.
  • the data packet is also encapsulated with status information corresponding to the automatically transmitted information.
  • the friend identifier of the automatically sent information may also be encapsulated in the data packet.
  • the sending side IM client 1 also includes a user list management module for managing the friend/contact list.
  • the information setting module can traverse the friends/contacts on the friend/contact list through the user list management module, and set respective automatic sending information for each friend/contact.
  • the sending side IM client 1 may further include a status detecting module, configured to detect whether the status of the user changes, and report the status change of the user to the IM server.
  • the receiving side IM client 2 includes an information receiving management module for receiving the data packet sent by the IM server, parsing the content in the data packet, and displaying the automatic sending information and the corresponding sending side user account to the receiving side user.
  • the receiving side IM client 2 further includes an information receiving setting module and a Windows window management module.
  • the information receiving setting module is configured to send a request message for requesting to set the automatic sending information receiving manner to the Windows window management module; to create an information receiving mode editing setting window by using an API of the Windows window management module response; and extracting the user input to The information receiving mode edits the information receiving mode of the setting window; and after the user completes the setting of the information receiving mode, sends a notification message for notifying the setting of the information receiving mode to the Windows window management module; receiving the Windows window closing message from the Windows window management module , Close the setting window for information reception mode editing.
  • a Windows window management module configured to receive a request message for requesting a setting information receiving manner from the information receiving setting module; and respond to the request message; and receive, by the information receiving setting module, a notification message for setting the notification information receiving mode to be completed, Send a Windows window close message to the message receiving setup module.
  • the user can set different ways of receiving information for different buddy users. If the user setting receives automatic transmission information from user A, or sets to refuse to receive automatic transmission information from user B.
  • the information receiving management module is further configured to parse the data packet from the IM server, and extract the protocol command number of the data packet; and determine, according to the protocol command number, whether the information encapsulated in the data packet is an automatic transmission information type. If the information type is automatically sent, the information receiving management module performs a corresponding operation according to the information receiving manner set by the receiving side IM client; otherwise, the processing is performed according to other information types.
  • the IM server includes an information receiving module and an information forwarding module.
  • the information receiving module is configured to receive and parse a data packet sent by the sending side IM client, where the data packet is encapsulated with an automatic sending information set by the transmitting side IM client and a sending side user account, and the Stores the information extracted from the packet.
  • the information forwarding module is configured to send a data packet encapsulated with the automatic sending information and the sending side user account to the receiving side IM client when the user status of the sending side is changed.
  • the IM server may further include a status detecting module, configured to detect whether the status of the sending side user changes, and report the status change of the sending side user to the information forwarding module. At this time, the transmitting side IM client does not have to include the status detecting module.
  • the IM server may further include an information receiving mode setting module for receiving from the receiving side
  • the request message of the setting information receiving mode of the IM client the request message includes the receiving side IM user account number and the information receiving mode; and when determining that the information receiving mode is that the receiving side IM user agrees to receive the automatic sending information set by the sending side user , notify the information forwarding module.
  • the receiving side IM client may not necessarily include an information receiving setting module and a Windows window management module.
  • FIG. 3 is a flowchart of a method for automatically sending goodbye information according to an embodiment of the present invention.
  • the automatic sending information set by user A is the goodbye information, that is, the information that user A expects to automatically send when exiting the online state.
  • Exiting the online state here includes exiting the sending side IM client, user A is in the stealth state on the sending side IM client, user A is in the busy state on the sending side IM client, and the user A is in the leaving state on the sending side, the user A is in the leaving state A at least one way in which the IM client on the transmitting side is in an offline state.
  • the method includes the following steps:
  • Step 301 The sending side IM client encrypts the login request message encapsulating the user A user account and the login password input by the user A according to the password pre-assigned by the IM server, and sends the login request message to the IM server for validity verification.
  • Step 302 After decrypting the login request message according to the pre-assigned password, the IM server forwards the decrypted login request message to the user information data server for consistency verification. After the user account and the login password of the user A are obtained, if the user account of the user A and the login password are determined according to the stored correspondence, the user information data server verifies the consistency through the IM server. The success message is forwarded to the sending side IM client.
  • Step 304 User A successfully logs in to the sending side IM client, and the sending side IM client receives the setting of the user A to the goodbye information.
  • step 304 the specific processing procedure of the sending side IM client receiving the setting of the goodbye information by the user A is:
  • the sending side IM client can set a button for the user A on the menu bar.
  • the goodbye information sending setting module of the sending side IM client sends a request message for setting the goodbye information to the Windows window management module.
  • the goodbye information sending setting module creates a goodbye information editing setting window through the API of the Windows window management module response.
  • the goodbye information sending setting module receives the meeting information input by the user A into the goodbye information editing setting window, and after completing the setting of the goodbye information, sends a request message for completing the goodbye information setting to the Windows window management module. After that, the goodbye information sending setting module receives the Windows window close message from the Windows window management module, and closes the current goodbye information editing setting window.
  • user A can input the corresponding goodbye information for different types of exiting online status, and complete the setting of personalized goodbye information.
  • User A can set the goodbye message when exiting the IM client on the sending side as "I have offline, have time to contact”. Alternatively, User A can also set the goodbye message when he is away from "Don't bother at work.”
  • the specific content of the goodbye information can also be set according to the preferences of the user A, such as language habits. For example, user A can set the goodbye message to "I wish you a happy afternoon, goodbye.” You can also set the goodbye message to "Have a great afternoon, see you”.
  • Step 305 The sending side IM client sends the packet containing the goodbye information set by the user A and the user account to the IM server.
  • the IM server parses the data packet, obtains the user A's goodbye information and user account and stores it.
  • the sending process of the sending side IM client that encapsulates the user A's goodbye information and the user account data packet to the IM server is:
  • the information sending management module picks up the goodbye information set by the user A from the goodbye information sending setting module, and then sets the protocol command for transmitting the user A goodbye information.
  • the protocol command is pre-agreed by the sending side IM client and the IM server to ensure that the sending side IM client and the IM server can correctly identify the protocol command.
  • the protocol command can be understood as a transmission channel for transmitting the goodbye information between the transmitting side IM client and the IM server.
  • the sending side IM client encapsulates the user A's goodbye information and the user account into the data packet, and encrypts the data packet according to the pre-allocated password of the IM server;
  • the command is to send the encrypted data packet to the IM server.
  • the IM server decrypts the data packet, obtains the goodbye information of the user A, and stores it in the IM server, so that the user A can log in to other IM clients in the future.
  • the goodbye information set by User A can still be obtained from the IM server.
  • the IM server parses the data packet, obtains the user A's goodbye information and the user account and stores the specific processing procedure as follows:
  • the IM server receives the encrypted data packet, decrypts and parses the encrypted data packet according to the pre-assigned password, extracts the goodbye information of the user A encapsulated in the data packet, and the user account, and displays the user A's goodbye information and The user account is stored in the user related information database.
  • the user related information database may be located in the IM server or in another independent server, such as a user information data server.
  • the unit of data stored in the user related information database is a data line. Each data line is identified by a user account.
  • Step 306 Query the user related information database in the IM server, and obtain a data row corresponding to the user account according to the user account of the user A.
  • the IM server inserts the goodbye information into the data column of the data row specifically storing the goodbye information.
  • the IM server sends a message that the goodbye information setting is successful to the sending side IM client, and the sending side IM client receives the message that the goodbye information is successfully set, prompting the user A to see the information has been successfully set.
  • Step 307 The receiving side IM client encrypts the login request message encapsulating the user account of the user B and the login password input by the user B according to the password pre-assigned by the IM server, and sends the login request message to the IM server for validity verification.
  • Step 308 After decrypting the login request message according to the pre-assigned password, the IM server forwards the decrypted login request message to the user information data server for consistency verification. After the user account and the login password of the user B are obtained, if the user account of the user B and the login password are determined according to the stored correspondence, the user information data server verifies the consistency through the IM server. The success message is forwarded to the receiving side IM client.
  • Step 310 The receiving side IM client that the user B logs in, and the receiving side IM client provides the user B The setting for the way to receive the goodbye information.
  • the user B can set whether or not to receive the goodbye information from the user A on the receiving side IM client.
  • the setting of the receiving side IM client providing the user B with the way of receiving the goodbye information specifically includes:
  • the receiving side IM client can set a button for the user B on the menu bar, and when detecting that the user B clicks the button, the receiving side IM client
  • the goodbye information receiving setting module sends a request message for setting the goodbye information receiving mode to the Windows window management module.
  • the goodbye information receiving setting module After receiving the response from the Windows window management module, the goodbye information receiving setting module creates a goodbye information receiving mode editing setting window through the API responded by the Windows window management module.
  • the goodbye information receiving setting module receives the goodbye information receiving mode input by the user B into the goodbye information receiving mode editing setting window, and after completing the setting of the goodbye information receiving mode, the notification message of the goodbye information receiving mode setting is sent to the Windows window management module. Thereafter, the goodbye information receiving setting module receives the Windows window close message from the Windows window management module, and closes the current goodbye information receiving mode edit setting window.
  • the goodbye information receiving method includes two cases of receiving the goodbye information and refusing to receive the goodbye information.
  • Step 311 When the user A exits the online state, the IM server automatically forwards the goodbye information and the user account of the user A stored on the user A to the receiving side IM client where the user B is located.
  • Step 312 The goodbye information receiving management module in the receiving side IM client receives the data packet from the IM server, parses the data packet, and extracts the protocol command number of the data packet. According to the protocol command number, it is determined whether the information encapsulated in the data packet is a type of goodbye information. For example, the protocol command number is 100, indicating that the information encapsulated in the data packet is a type of goodbye information.
  • the goodbye information receiving management module performs the corresponding operation according to the receiving information of the goodbye information set by the user B. Specifically, when the receiving mode of the goodbye information set by the user B is to refuse to receive the goodbye information, the current received data packet is directly discarded; when the receiving information of the goodbye information set by the user B is the receiving the goodbye information, the session window management module is invoked. Open the session window corresponding to User A, and display the goodbye information in the session window. Otherwise, if you do not see the information type again, it will be processed according to other information types.
  • the process of automatically forwarding the message may be: the sending side IM client stores the automatic sending information set by the sending side IM user locally, and triggers the automatic sending of the information when the state changes. That is, when the state changes, the automatically sent information stored locally is forwarded to the receiving end IM client through the IM server.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A method, server, system and client for automatic transmitting of information are provided so as to implement the automatic transmitting of the information in the IM system. The method to implement the automatic transmitting of the information includes: receiving and saving a data packet sent from the transmitting IM client, wherein the data packet includes the automatic transmitting information set by the transmitting user and account of the transmitting user; in the case the status of the transmitting user changes, the data packet which encapsulates the automatic transmitting information set by the transmitting user and account of the transmitting user is transmitted to the receiving IM client.

Description

信息自动发送方法、 服务器、 系统以及客户端  Automatic information transmission method, server, system and client

技术领域 Technical field

本发明涉及即时通信(IM, instant messaging )技术, 尤其涉及一种实现信 息自动发送的方法、 服务器、 系统以及客户端。 背景技术  The present invention relates to instant messaging (IM) technology, and in particular, to a method, a server, a system, and a client for implementing automatic information transmission. Background technique

IM工具发展到今天已经被广大用户普遍接受。 而且 IM工具逐渐成为了用 户日常交际生活中不可缺少的一部分, 不仅应用于用户的工作生活中, 而且应 用于用户的业余生活中, 用户通过 IM工具能实现与其他用户之间即时、 有效 的交流沟通; 用户通过 IM工具还能实现与其他用户之间即时、 有效的信息共 享。 总之, IM工具为用户工作和业余生活中的交流沟通带来极大方便。 同时, 用户在工作和业余生活中大量采用 IM工具进行交流沟通,推动了 IM工具的相 关技术发展。  The development of IM tools has been widely accepted by users today. Moreover, IM tools have gradually become an indispensable part of users' daily communication life, not only in the user's work life, but also in the user's spare life. Users can realize instant and effective communication with other users through IM tools. Communication; Users can also share instant and effective information with other users through IM tools. In short, IM tools bring great convenience to users' communication and communication in their spare time. At the same time, users use IM tools for communication in their work and leisure life, which promotes the related technology development of IM tools.

在现实环境, 用户在工作或生活的过程中, 如果状态发生改变, 都会彼此 之间相互通知, 以示礼貌。 但在目前的虚拟网络环境中, 常常由于用户的忽略, 忘记发送礼貌性的通知信息以告知其他用户自身状态的变化。 而其他用户由于 处于远离用户的另一端, 并不知道用户状态的变化,仍会继续等待用户的回复, 这样势必会给其他用户带来不好的用户体验。  In the real world, if the user changes his or her status during work or life, they will notify each other to show courtesy. However, in the current virtual network environment, it is often forgotten by the user to forget to send a courtesy notification message to inform other users of their own state changes. Other users, because they are away from the other end of the user, do not know the change of the user's status, and will continue to wait for the user's reply, which will inevitably bring a bad user experience to other users.

比如当用户与其他用户结束工作交流后, 通常会彼此互道再见。 然而, 目 前在虚拟网络环境中, 当用户基于 IM工具结束交流沟通, 退出在线状态的过 程中, 常常会出现用户自身疏忽导致遗忘发送礼貌性的再见信息给其他用户, 其他用户未收到再见信息, 仍会等待该用户的回复。  For example, when users end their work with other users, they usually say goodbye to each other. However, in the virtual network environment, when the user ends the communication based on the IM tool and exits the online state, the user's own negligence causes the forgotten message to be sent to other users, and the other users do not receive the goodbye information. , will still wait for the user's reply.

因此, 需要一种在 IM系统中实现信息自动发送的技术。 发明内容  Therefore, there is a need for a technique for realizing automatic transmission of information in an IM system. Summary of the invention

有鉴于此, 本发明实施例提供了一种信息自动发送的方法、 服务器、 系统 以及客户端, 以在 IM系统中实现信息自动发送功能。 In view of this, an embodiment of the present invention provides a method, a server, and a system for automatically transmitting information. And the client to implement automatic information transmission in the IM system.

本发明实施例提供的一种实现信息自动发送的方法包括:  A method for implementing automatic information transmission according to an embodiment of the present invention includes:

接收并存储来自发送侧 IM客户端的数据包, 其中所述数据包中包含发送 侧用户设置的自动发送信息以及发送侧用户帐号;  Receiving and storing a data packet from the sending side IM client, where the data packet includes an automatic sending information set by the sending side user and a sending side user account;

在发送侧用户状态改变的情况下, 将封装有发送侧用户设置的自动发送信 息以及发送侧用户帐号的数据包发送给接收侧 IM客户端。  In the case where the user status on the transmitting side is changed, the automatic transmission information encapsulated by the transmitting side user and the data packet of the transmitting side user account are transmitted to the receiving side IM client.

本发明实施例提供的一种实现信息自动发送的 IM服务器包括: 第一模块, 用于接收并存储来自发送侧 IM客户端发送的数据包, 其中 所述数据包包含发送侧用户设置的自动发送信息以及发送侧用户帐号;  An IM server for implementing automatic information transmission according to an embodiment of the present invention includes: a first module, configured to receive and store a data packet sent by an IM client on a sending side, where the data packet includes an automatic sending set by a sending user. Information and user account on the sending side;

第二模块, 用于在发送侧用户状态改变时, 将封装有发送侧用户设置的 自动发送信息以及发送侧用户帐号的数据包发送给接收侧 IM客户端。  The second module is configured to send, when the user status of the sending side changes, the automatic sending information encapsulated by the sending side user and the data packet of the sending side user account to the receiving side IM client.

本发明实施例提供的一种实现信息自动发送的系统包括:  A system for implementing automatic information transmission provided by an embodiment of the present invention includes:

发送侧 IM客户端, 用于接收发送侧用户对自动发送信息的设置, 并在完 成自动发送信息的设置后, 将封装有发送侧用户设置的自动发送信息和发送侧 用户帐号的数据包发送到 IM服务器;  The sending side IM client is configured to receive the setting of the automatic sending information by the sending side user, and after completing the setting of the automatic sending information, send the data packet encapsulated with the automatic sending information set by the sending side user and the sending side user account to IM server;

IM服务器, 用于接收并存储来自所述发送侧 IM客户端的数据包; 并在用 户状态改变时, 将封装有发送侧用户设置的自动发送信息和发送侧用户帐号的 数据包发送给接收侧 IM客户端;  An IM server, configured to receive and store a data packet from the sending side IM client; and send, when the user status changes, a data packet encapsulated with the automatic sending information set by the sending side user and the sending side user account to the receiving side IM Client

接收侧 IM客户端, 用于接收 IM服务器的数据包, 将所述数据包中封 装的自动发送信息以及发送侧用户帐号显示给接收侧用户。  The receiving side IM client is configured to receive the data packet of the IM server, and display the automatic sending information encapsulated in the data packet and the sending side user account to the receiving side user.

本发明实施例提供的一种实现信息自动发送的客户端包括:  A client for implementing automatic information transmission according to an embodiment of the present invention includes:

第一模块,用于将用于请求设置自动发送信息的请求信息发送给第四模块; 通过第二模块响应的应用编程接口 API, 创建信息编辑设置窗口; 接收用户输 入到信息编辑设置窗口的自动发送信息; 在用户完成自动发送信息的设置后, 向第二模块发送通知消息, 以通知第二模块自动发送信息设置完成; 从第二模 块接收窗口关闭消息, 关闭信息编辑设置窗口;  a first module, configured to send request information for requesting setting automatic sending information to the fourth module; creating an information editing setting window by using an application programming interface API responded by the second module; receiving an automatic input of the user input to the information editing setting window Sending the information; after the user completes the setting of the automatic sending information, sending a notification message to the second module to notify the second module to automatically send the information setting completion; receiving the window closing message from the second module, closing the information editing setting window;

第二模块, 用于从第一模块接收用于请求设置自动发送信息的请求消息; 并对该请求消息进行响应; 从第一模块接收用于通知自动发送信息设置完成的 通知消息后, 将窗口关闭消息发送给第一模块; a second module, configured to receive, from the first module, a request message for requesting to set automatic sending information; And responding to the request message; after receiving the notification message for notifying that the automatic sending information setting is completed from the first module, sending a window close message to the first module;

第三模块, 用于从第一模块提取出自动发送信息, 设置传输自动发送信息 的协议命令; 将自动发送信息和发送侧用户帐号封装到数据包中, 基于自动发 送信息的协议命令, 将数据包发送到 IM服务器。  The third module is configured to extract the automatic sending information from the first module, set a protocol command for transmitting the automatic sending information, and encapsulate the automatic sending information and the sending side user account into the data packet, and the data is based on the protocol command for automatically sending the information. The package is sent to the IM server.

本发明实施例提供的一种实现信息自动发送的客户端包括:  A client for implementing automatic information transmission according to an embodiment of the present invention includes:

第一模块, 用于接收由 IM服务器发送的数据包后, 解析数据包中的内容, 将所述数据包中封装的自动发送信息以及发送侧用户帐号显示给接收侧用户。  The first module is configured to parse the content in the data packet after receiving the data packet sent by the IM server, and display the automatically sent information encapsulated in the data packet and the user account on the sending side to the receiving side user.

利用本发明实施例提供的方法、 服务器、 系统以及客户端, 在用户状态发 生改变时, IM服务器可以将用户事先设置并存储其上的信息自动发送给接收侧 客户端。 利用这种方式,接收侧 IM用户可以第一时间了解发送侧 IM用户的状 态变化, 而且由于自动发送的信息是发送侧 IM设置的, 这种方式更加贴近现 实生活的情况。 另外, 利用本发明实施例提供的方案, 发送侧用户可以在任一 IM客户端完成自动发送信息的设置, 并将该设置的自动发送信息存储在 IM服 务器中, 这样以后无论发送侧用户是否仍在原来的 IM客户端登录, 均无需重 新设置自动发送信息。 附图简要说明  With the method, the server, the system and the client provided by the embodiment of the present invention, when the user status changes, the IM server can automatically send the information set by the user and stored thereon to the receiving client. In this way, the receiving side IM user can know the status change of the IM user on the transmitting side for the first time, and since the automatically transmitted information is set by the transmitting side IM, this method is closer to the real life situation. In addition, with the solution provided by the embodiment of the present invention, the sending side user can complete the setting of automatically sending information on any IM client, and store the set automatic sending information in the IM server, so that whether the transmitting side user is still in the future The original IM client login does not need to reset the automatic sending information. BRIEF DESCRIPTION OF THE DRAWINGS

图 1为本发明实施例提供的信息自动发送方法的流程图。  FIG. 1 is a flowchart of a method for automatically transmitting information according to an embodiment of the present invention.

图 2为本发明实施例提供的信息自动发送系统的结构示意图。  FIG. 2 is a schematic structural diagram of an information automatic sending system according to an embodiment of the present invention.

图 3为本发明一实施例中再见信息自动发送方法的流程图。 实施本发明的方式  FIG. 3 is a flowchart of a method for automatically sending goodbye information according to an embodiment of the present invention. Mode for carrying out the invention

为使本发明的目的、技术手段和优点更加清楚明白, 以下结合附图对本 发明作进一步详细说明。  In order to make the objects, technical means and advantages of the present invention more comprehensible, the present invention will be further described in detail with reference to the accompanying drawings.

在本发明实施例中, IM服务器接收来自发送侧 IM客户端的数据包, 其中 该数据包中包含发送侧用户设置的自动发送信息以及发送侧用户帐号; 并在用 户状态改变的情况下, 将封装有发送侧用户设置的自动发送信息以及发送侧用 户帐号的数据包发送给接收侧 IM客户端。 在本发明实施例中, 自动发送信息 本质上也是一种即时通信消息, 只是将这种信息发送到接收侧 IM客户端的过 程由 IM服务器主动发起, 而对于现有技术中的即时通信消息, 其发送到接收 侧 IM客户端的过程由发送侧 IM客户端主动发起。 In the embodiment of the present invention, the IM server receives the data packet from the sending side IM client, where the data packet includes the automatic sending information set by the sending side user and the sending side user account; When the state of the user is changed, the automatic transmission information encapsulated by the user on the transmitting side and the data packet of the user account on the transmitting side are transmitted to the receiving side IM client. In the embodiment of the present invention, the automatic transmission of information is also an instant communication message, but the process of transmitting such information to the receiving side IM client is initiated by the IM server, and for the instant messaging message in the prior art, The process of sending to the receiving side IM client is initiated by the sending side IM client.

图 1为本发明实施例提供的信息自动发送方法的流程图。 如图 1所示, 该 方法包括:  FIG. 1 is a flowchart of a method for automatically transmitting information according to an embodiment of the present invention. As shown in Figure 1, the method includes:

步骤 101 : IM服务器接收并解析来自发送侧 IM客户端发送的数据包, 其 中该数据包中封装有发送侧用户通过发送侧 IM客户端设置的自动发送信息以 及发送侧用户帐号, 获取并存储数据包中提取的信息。  Step 101: The IM server receives and parses the data packet sent by the sending side IM client, where the data packet is encapsulated with the automatic sending information set by the sending side IM client and the sending side user account, and the data is obtained and stored. The information extracted from the package.

本领域技术人员可以理解, 发送侧用户可以在任一 IM客户端完成自动发 送信息的设置, 并将该设置的自动发送信息存储在 IM服务器中, 这样以后无 论发送侧用户是否仍在原来的 IM客户端登录, 均无需重新设置自动发送信息。  A person skilled in the art can understand that the sending side user can complete the setting of automatically sending information on any IM client, and store the set automatic sending information in the IM server, so that whether the sending side user is still in the original IM client in the future. When you log in, you do not need to reset the automatic sending information.

步骤 102: 在发送侧用户状态改变时, 将封装有自动发送信息和发送侧用 户帐号的数据包发送给接收侧 IM客户端。  Step 102: When the user status of the sending side changes, the data packet encapsulating the automatic sending information and the sending side user account is sent to the receiving side IM client.

这里既可以是由 IM服务器定期主动侦测发送侧 IM客户端以了解发送侧用 户状态的改变, 也可以是接收来自发送侧 IM客户端的有关发送侧用户状态改 变的检测结果, 即由发送侧 IM客户端来检测用户状态的改变, 并通知 IM服务 器。  Here, the IM server may periodically detect the sending side IM client to know the change of the sending side user state, or may receive the detection result of the sending side user state change from the sending side IM client, that is, the sending side IM. The client detects the change in the user's status and notifies the IM server.

这里, 需要指出的是, 用户的状态可以包括以下几种方式中的至少一种方 式: 登录发送侧 IM客户端 (又可称为上线)、 退出发送侧 IM客户端 (又可称 为下线)、 用户在发送侧 IM客户端处于隐身状态、 用户在发送侧 IM客户端处 于忙碌状态、用户在发送侧 IM客户端处于离开状态、 用户在发送侧 IM客户端 处于离线状态。  Here, it should be noted that the state of the user may include at least one of the following ways: Logging in to the sending side IM client (also referred to as going online), and exiting the sending side IM client (also referred to as offline) The user is in the invisible state on the sending side, the IM client is in the busy state on the sending side, the IM client is in the leaving state on the sending side, and the IM client is in the offline state on the sending side.

这里, 可以为用户提供针对不同种类的状态设置不同的自动发送信息, 此 时发送侧 IM客户端发送给 IM服务器的数据包中还封装有该自动发送信息对应 的状态信息。 其中不同种类的自动发送信息可以是上线信息、 下线信息、 离线 信息、 忙碌信息和离开信息。对应的状态信息分别指示为 "上线"、 "下线"、 "离 线"、 "忙碌" 以及 "离开"。 此时, IM服务器在侦测到发送侧用户的状态发生 对应的自动发送信息封装在数据包中, 发送给接收侧 IM客户端。 Here, the user may be provided with different automatic transmission information for different types of states. At this time, the data packet sent by the IM client to the IM server is also encapsulated with the status information corresponding to the automatic transmission information. Different types of automatic sending information can be online information, offline information, offline Information, busy information, and away information. The corresponding status information is indicated as "online", "downline", "offline", "busy", and "away", respectively. At this time, the IM server detects that the automatic transmission information corresponding to the state of the transmitting side user is encapsulated in the data packet and is sent to the receiving side IM client.

另外, 还可以为用户提供针对不同的好友设置不同的自动发送信息。 比如 当自动发送信息为离线信息时,可以设置在用户离线后,向好友 A发送 "bye ! " , 而向好友 B发送 "see you later ! "。 此时发送侧 IM客户端发送给 IM服务器的 数据包中还封装有该自动发送信息对应的好友标识。 此时 IM服务器在侦测到 发送侧用户的状态发生变化后, 根据其上存储的信息, 将发送侧用户的帐号以 及自动发送信息封装在数据包中发送与该好友标识对应的接收侧 IM客户端。  In addition, users can also be provided with different automatic sending information for different friends. For example, when the automatic sending information is offline information, it can be set to send "bye!" to the friend A and "see you later!" to the friend B after the user goes offline. At this time, the data packet sent by the IM client to the IM server is also encapsulated with the friend identifier corresponding to the automatic transmission information. After detecting the change of the status of the user on the sending side, the IM server encapsulates the account of the sending user and the automatic sending information in a data packet to send the receiving side IM client corresponding to the friend identifier according to the information stored thereon. end.

另外, IM服务器还可以接收来自接收侧 IM客户端的设置信息接收方式的 请求消息。 该请求消息中包含接收侧 IM用户帐号以及信息接收方式。 还可以 进一步包含接收侧 IM用户的一个或多个好友用户的帐号,表明接收侧 IM用户 针对该一个或多个好友用户的信息接收方式。 当设置的信息接收方式为接收信 息时, IM服务器在该请求消息指示的一个或多个好友用户的状态改变时, 向接 收侧 IM客户端转发该一个或多个好友用户设置的自动发送信息, 当设置的信 息接收方式为拒绝接收信息时, IM服务器在该请求消息指示的一个或多个好友 用户的状态改变时, 不向接收侧 IM客户端转发任何信息。  In addition, the IM server can also receive a request message of the setting information receiving mode from the receiving side IM client. The request message includes the receiving side IM user account and the information receiving mode. The account of one or more buddy users of the receiving side IM user may further be included, indicating the manner in which the receiving side IM user receives the information for the one or more buddy users. When the received information is received, the IM server forwards the automatically sent information set by the one or more friend users to the receiving side IM client when the status of the one or more friend users indicated by the request message changes. When the set information receiving manner is to refuse to receive the information, the IM server does not forward any information to the receiving side IM client when the state of one or more friend users indicated by the request message changes.

在本发明另一实施例中, 用户也可以在接收侧 IM客户端设置信息接收方 式, 即拒绝或同意接收自动发送信息, 这样当接收侧 IM客户端接收来自 IM服 务器的数据包后, 解析并提取数据包的协议命令号; 根据协议命令号判断数据 包中封装的信息是否是自动发送信息类型, 如果不是自动发送信息类型, 按照 其他信息类型进行处理, 如果是自动发送信息类型, 则根据接收侧 IM用户设 置的信息接收方式执行相应的操作。 具体来说, 当接收侧 IM客户端设置的信 息接收方式为拒绝接收自动发送信息, 那么直接丟弃当前接收的数据包; 当接 收侧 IM客户端设置的信息接收方式为接收自动发送信息, 那么调用会话窗口 管理模块, 将自动发送信息显示在会话窗口中。 同样, 用户也可以为不同的好友用户设置不同的信息接收方式。 如用户设 置接收来自用户 A的自动发送信息,或设置拒绝接收来自用户 B的自动发送信 息。 In another embodiment of the present invention, the user may also set the information receiving mode on the receiving side IM client, that is, refuse or agree to receive the automatic sending information, so that when the receiving side IM client receives the data packet from the IM server, it parses and Extracting the protocol command number of the data packet; determining whether the information encapsulated in the data packet is an automatic transmission information type according to the protocol command number, and if not automatically transmitting the information type, processing according to other information types, if the information type is automatically sent, according to receiving The information receiving mode set by the side IM user performs the corresponding operation. Specifically, when the information receiving mode set by the receiving side IM client is to refuse to receive the automatic sending information, the currently received data packet is directly discarded; when the information receiving mode set by the receiving side IM client is to receive the automatic sending information, then The session window management module is called to display the automatically sent information in the session window. Similarly, the user can also set different ways of receiving information for different friend users. For example, the user settings receive automatic transmission information from user A, or set to refuse to receive automatic transmission information from user B.

这样, 用户可以根据需要, 设置个性化的自动发送信息, 更个性化的选择 提高了用户的体验感和个性化需要。  In this way, the user can set personalized automatic sending information as needed, and the more personalized selection improves the user's experience and personalization needs.

本领域技术人员很容易理解, 本发明实施例中的接收侧 IM客户端和发送 侧 IM客户端是按照逻辑功能进行划分的, 在实际应用上,任何一个 IM客户端 均可能同时兼具接收侧 IM客户端和发送侧 IM客户端的功能。  A person skilled in the art can easily understand that the receiving side IM client and the transmitting side IM client in the embodiment of the present invention are divided according to logical functions. In practical applications, any IM client may simultaneously have a receiving side. The functions of the IM client and the sending side IM client.

图 2为本发明实施例提供的信息自动发送系统结构示意图。 如图 2所示, 该系统包括发送侧 IM客户端 1、 接收侧 IM客户端 2、 IM服务器 3。  FIG. 2 is a schematic structural diagram of an information automatic sending system according to an embodiment of the present invention. As shown in FIG. 2, the system includes a transmitting side IM client 1, a receiving side IM client 2, and an IM server 3.

其中, 发送侧 IM客户端 1用于接收用户对自动发送信息的设置, 并在完 成自动发送信息的设置后, 将封装有自动发送信息和发送侧用户帐号的数据包 发送到 IM服务器 3。  The sending side IM client 1 is configured to receive the setting of the automatic sending information by the user, and after completing the setting of the automatic sending information, send the data packet encapsulating the automatic sending information and the sending side user account to the IM server 3.

IM服务器 3用于接收并存储来自发送侧 IM客户端 1的数据包, 其中该数 据包包括需自动发送信息和发送侧用户帐号; 并在用户状态改变时, 将封装有 与用户状态对应的自动发送信息和发送侧用户帐号的数据包发送给对应的接收 侧 IM客户端 2。  The IM server 3 is configured to receive and store a data packet from the sending side IM client 1, wherein the data packet includes an automatic sending information and a sending side user account; and when the user state changes, an automatic corresponding to the user state is encapsulated. The data packet of the sending information and the sending side user account is sent to the corresponding receiving side IM client 2.

这里可以是由发送侧 IM客户端 1来检测用户状态的改变,并通知 IM服务 器 3, 也可以由 IM服务器 3主动侦测用户状态的改变。  Here, the change of the user state may be detected by the transmitting side IM client 1, and the IM server 3 may be notified, or the change of the user state may be actively detected by the IM server 3.

接收侧 IM客户端 2用于接收 IM服务器 3的数据包,将所述数据包中封装 的自动发送信息以及发送侧用户帐号显示给接收侧用户。  The receiving side IM client 2 is configured to receive the data packet of the IM server 3, and display the automatic transmission information encapsulated in the data packet and the user account on the transmitting side to the receiving side user.

该系统还可以进一步包括用户信息数据服务器 4,用于接收由 IM服务器转 发的来自发送侧 IM客户端 1/接收侧 IM客户端 2的登录请求,获取登录请求中 封装的用户帐号和登录密码, 根据其上保存的用户帐号与登录密码的对应关系 进行一致性验证, 之后, 发送侧用户 /接收侧用户才能成功登录到发送侧 IM客 户端 1/接收侧 IM客户端 2。  The system may further include a user information data server 4, configured to receive a login request from the sending side IM client 1 or the receiving side IM client 2 forwarded by the IM server, and obtain a user account and a login password encapsulated in the login request. The consistency verification is performed according to the correspondence between the user account and the login password that is saved on the sending side. Then, the sending side user/receiving side user can successfully log in to the sending side IM client 1 or the receiving side IM client 2.

发送侧 IM客户端 1包括信息设置模块和 Windows窗口管理模块。 其中, 信息设置模块, 用于将用于请求设置自动发送信息的请求信息发送 给 Windows窗口管理模块; 通过 Windows窗口管理模块响应的应用编程接口 (API, Application Programming Interface) , 创建信息编辑设置窗口; 接收用户输 入到信息编辑设置窗口的自动发送信息; 在用户完成自动发送信息的设置后, 向 Windows窗口管理模块发送通知消息,以通知 Windows窗口管理模块自动发 送信息设置完成;从 Windows窗口管理模块接收 Windows窗口关闭消息, 关闭 信息编辑设置窗口。 The transmitting side IM client 1 includes an information setting module and a Windows window management module. The information setting module is configured to send request information for requesting setting automatic sending information to the Windows window management module; and create an information editing setting window by using an application programming interface (API, Application Programming Interface) responded by the Windows window management module; Receiving the automatic sending information input by the user to the information editing setting window; after the user completes the setting of automatically sending the information, sending a notification message to the Windows window management module to notify the Windows window management module to automatically send the information setting completion; receiving from the Windows window management module The Windows window closes the message, closing the information editing settings window.

Windows窗口管理模块, 用于从信息设置模块接收用于请求设置自动发送 信息的请求消息; 并对该请求消息进行响应; 从信息设置模块接收用于通知自 动发送信息设置完成的通知消息后,将 Windows窗口关闭消息发送给信息设置 模块。  a Windows window management module, configured to receive, from the information setting module, a request message for requesting to set automatic transmission information; and respond to the request message; after receiving the notification message for notifying that the automatic transmission information setting is completed from the information setting module, A Windows window close message is sent to the information setting module.

发送侧 IM客户端 1还包括信息发送管理模块, 用于从信息设置模块提取 出自动发送信息, 设置传输自动发送信息的协议命令; 将自动发送信息和发送 侧用户帐号封装到数据包中, 基于自动发送信息的协议命令, 将数据包发送到 IM服务器。 当系统提供多种不同种类自动发送信息时,数据包中还封装有该自 动发送信息对应的状态信息。 数据包中还可能封装有该自动发送信息对应的好 友标识。  The sending side IM client 1 further includes an information sending management module, configured to extract automatic sending information from the information setting module, and set a protocol command for transmitting the automatic sending information; and the automatic sending information and the sending side user account are encapsulated into the data packet, based on A protocol command that automatically sends information, and sends the packet to the IM server. When the system provides a plurality of different types of automatic transmission information, the data packet is also encapsulated with status information corresponding to the automatically transmitted information. The friend identifier of the automatically sent information may also be encapsulated in the data packet.

发送侧 IM客户端 1还包括用户列表管理模块,用于管理好友 /联系人列表。 此时,信息设置模块可以通过用户列表管理模块对与好友 /联系人列表上的 好友 /联系人进行遍历, 为每个好友 /联系人设置各自的自动发送信息。  The sending side IM client 1 also includes a user list management module for managing the friend/contact list. At this time, the information setting module can traverse the friends/contacts on the friend/contact list through the user list management module, and set respective automatic sending information for each friend/contact.

发送侧 IM客户端 1还可以进一步包括状态检测模块, 用于检测用户的状 态是否变化, 将用户的状态变化上报给 IM服务器端。  The sending side IM client 1 may further include a status detecting module, configured to detect whether the status of the user changes, and report the status change of the user to the IM server.

接收侧 IM客户端 2包括信息接收管理模块,用于接收由 IM服务器发送的 数据包后, 解析数据包中的内容, 将自动发送信息以及对应的发送侧用户帐号 显示给接收侧用户。  The receiving side IM client 2 includes an information receiving management module for receiving the data packet sent by the IM server, parsing the content in the data packet, and displaying the automatic sending information and the corresponding sending side user account to the receiving side user.

在本发明一实施例中, 接收侧 IM客户端 2还包括信息接收设置模块和 Windows窗口管理模块。 其中, 信息接收设置模块, 用于将用于请求设置自动发送信息接收方式的 请求消息发送给 Windows窗口管理模块; 通过 Windows窗口管理模块响应的 API, 创建信息接收方式编辑设置窗口; 提取用户输入到信息接收方式编辑设 置窗口的信息接收方式; 并在用户完成信息接收方式的设置后, 向 Windows窗 口管理模块发送用于通知信息接收方式设置完成的通知消息; 从 Windows窗口 管理模块接收 Windows窗口关闭消息, 关闭信息接收方式编辑的设置窗口。 In an embodiment of the invention, the receiving side IM client 2 further includes an information receiving setting module and a Windows window management module. The information receiving setting module is configured to send a request message for requesting to set the automatic sending information receiving manner to the Windows window management module; to create an information receiving mode editing setting window by using an API of the Windows window management module response; and extracting the user input to The information receiving mode edits the information receiving mode of the setting window; and after the user completes the setting of the information receiving mode, sends a notification message for notifying the setting of the information receiving mode to the Windows window management module; receiving the Windows window closing message from the Windows window management module , Close the setting window for information reception mode editing.

Windows窗口管理模块, 用于从信息接收设置模块接收用于请求设置信息 接收方式的请求消息; 并对该请求消息进行响应; 从信息接收设置模块接收用 于通知信息接收方式设置完成的通知消息,将 Windows窗口关闭消息发送给信 息接收设置模块。  a Windows window management module, configured to receive a request message for requesting a setting information receiving manner from the information receiving setting module; and respond to the request message; and receive, by the information receiving setting module, a notification message for setting the notification information receiving mode to be completed, Send a Windows window close message to the message receiving setup module.

同样, 在接收端, 用户可以为不同的好友用户设置不同的信息接收方式。 如用户设置接收来自用户 A的自动发送信息,或设置拒绝接收来自用户 B的自 动发送信息。  Similarly, at the receiving end, the user can set different ways of receiving information for different buddy users. If the user setting receives automatic transmission information from user A, or sets to refuse to receive automatic transmission information from user B.

此时信息接收管理模块进一步用于解析来自 IM服务器的数据包, 并提取 数据包的协议命令号; 根据协议命令号判断数据包中封装的信息是否是自动发 送信息类型。 如果是自动发送信息类型, 则信息接收管理模块根据接收侧 IM 客户端设置的信息接收方式执行相应的操作;否则按照其他信息类型进行处理。  At this time, the information receiving management module is further configured to parse the data packet from the IM server, and extract the protocol command number of the data packet; and determine, according to the protocol command number, whether the information encapsulated in the data packet is an automatic transmission information type. If the information type is automatically sent, the information receiving management module performs a corresponding operation according to the information receiving manner set by the receiving side IM client; otherwise, the processing is performed according to other information types.

IM服务器包括信息接收模块以及信息转发模块。  The IM server includes an information receiving module and an information forwarding module.

其中, 信息接收模块用于接收并解析来自发送侧 IM客户端发送的数据包, 其中该数据包中封装有发送侧用户通过发送侧 IM客户端设置的自动发送信息 以及发送侧用户帐号, 获取并存储数据包中提取的信息。 信息转发模块用于在 发送侧用户状态改变时, 将封装有与自动发送信息和发送侧用户帐号的数据包 发送给接收侧 IM客户端。  The information receiving module is configured to receive and parse a data packet sent by the sending side IM client, where the data packet is encapsulated with an automatic sending information set by the transmitting side IM client and a sending side user account, and the Stores the information extracted from the packet. The information forwarding module is configured to send a data packet encapsulated with the automatic sending information and the sending side user account to the receiving side IM client when the user status of the sending side is changed.

其中 IM服务器还可以进一步包括状态检测模块, 用于检测发送侧用户的 状态是否变化, 将发送侧用户的状态变化报告给信息转发模块。此时发送侧 IM 客户端可以不必包括状态检测模块。  The IM server may further include a status detecting module, configured to detect whether the status of the sending side user changes, and report the status change of the sending side user to the information forwarding module. At this time, the transmitting side IM client does not have to include the status detecting module.

IM服务器也可以进一步包括信息接收方式设置模块,用于接收来自接收侧 IM客户端的设置信息接收方式的请求消息, 该请求消息中包含接收侧 IM用户 帐号以及信息接收方式; 并在确定信息接收方式为接收侧 IM用户同意接收所 述发送侧用户设置的自动发送信息时, 通知信息转发模块。 此时接收侧 IM客 户端可以不必包括信息接收设置模块和 Windows窗口管理模块。 The IM server may further include an information receiving mode setting module for receiving from the receiving side The request message of the setting information receiving mode of the IM client, the request message includes the receiving side IM user account number and the information receiving mode; and when determining that the information receiving mode is that the receiving side IM user agrees to receive the automatic sending information set by the sending side user , notify the information forwarding module. At this time, the receiving side IM client may not necessarily include an information receiving setting module and a Windows window management module.

图 3为本发明一实施例中再见信息自动发送方法的流程图。假设发送侧 IM 用户为用户 A, 用户 A的一好友 /联系人用户为用户 B, 并假设此时用户 A设 置的自动发送信息为再见信息, 即用户 A在退出在线状态时期望自动发送的信 息, 这里退出在线状态包括退出发送侧 IM客户端、 用户 A在发送侧 IM客户 端处于隐身状态、 用户 A在发送侧 IM客户端处于忙碌状态、 用户 A在发送侧 IM客户端处于离开状态、用户 A在发送侧 IM客户端处于离线状态中的至少一 种方式。 如图 3所示, 该方法包括以下步骤:  FIG. 3 is a flowchart of a method for automatically sending goodbye information according to an embodiment of the present invention. Assume that the IM user on the sending side is user A, and the user/contact user in user A is user B, and assume that the automatic sending information set by user A is the goodbye information, that is, the information that user A expects to automatically send when exiting the online state. Exiting the online state here includes exiting the sending side IM client, user A is in the stealth state on the sending side IM client, user A is in the busy state on the sending side IM client, and the user A is in the leaving state on the sending side, the user A is in the leaving state A at least one way in which the IM client on the transmitting side is in an offline state. As shown in FIG. 3, the method includes the following steps:

步骤 301: 发送侧 IM客户端根据由 IM服务器预先分配的密码, 将封装有 用户 A用户帐号和用户 A输入的登录密码的登录请求消息加密后发送到 IM服 务器进行有效性验证。  Step 301: The sending side IM client encrypts the login request message encapsulating the user A user account and the login password input by the user A according to the password pre-assigned by the IM server, and sends the login request message to the IM server for validity verification.

步骤 302: IM服务器根据该预先分配的密码对登录请求消息解密后, 将解 密后的登录请求消息转发到用户信息数据服务器进行一致性验证。 密码的对应关系, 在获取用户 A的用户帐号和登录密码后, 如果根据存储的对 应关系, 判定出用户 A的用户帐号和登录密码相对应, 则用户信息数据服务器 通过 IM服务器将一致性验证的成功消息转发给发送侧 IM客户端。  Step 302: After decrypting the login request message according to the pre-assigned password, the IM server forwards the decrypted login request message to the user information data server for consistency verification. After the user account and the login password of the user A are obtained, if the user account of the user A and the login password are determined according to the stored correspondence, the user information data server verifies the consistency through the IM server. The success message is forwarded to the sending side IM client.

步骤 304: 用户 A成功登录发送侧 IM客户端, 发送侧 IM客户端接收用户 A对再见信息的设置。  Step 304: User A successfully logs in to the sending side IM client, and the sending side IM client receives the setting of the user A to the goodbye information.

这里, 步骤 304中, 发送侧 IM客户端接收用户 A对再见信息设置的具体 处理过程为:  Here, in step 304, the specific processing procedure of the sending side IM client receiving the setting of the goodbye information by the user A is:

发送侧 IM客户端可以在菜单栏上为用户 A设置一个按钮, 当侦测到用户 A点击该按钮, 发送侧 IM客户端的再见信息发送设置模块将设置再见信息的 请求消息发送给 Windows窗口管理模块。 在接收到 Windows窗口管理模块的响应后, 该再见信息发送设置模块通过 Windows窗口管理模块响应的 API, 创建再见信息编辑设置窗口。 The sending side IM client can set a button for the user A on the menu bar. When the user A is detected to click the button, the goodbye information sending setting module of the sending side IM client sends a request message for setting the goodbye information to the Windows window management module. . After receiving the response from the Windows window management module, the goodbye information sending setting module creates a goodbye information editing setting window through the API of the Windows window management module response.

该再见信息发送设置模块接收用户 A输入到再见信息编辑设置窗口中的再 见信息, 完成再见信息的设置后, 将再见信息设置完成的请求消息发送给 Windows窗口管理模块。 之后, 该再见信息发送设置模块从 Windows窗口管理 模块接收 Windows窗口关闭消息, 关闭当前再见信息编辑设置窗口。  The goodbye information sending setting module receives the meeting information input by the user A into the goodbye information editing setting window, and after completing the setting of the goodbye information, sends a request message for completing the goodbye information setting to the Windows window management module. After that, the goodbye information sending setting module receives the Windows window close message from the Windows window management module, and closes the current goodbye information editing setting window.

这里用户 A可以针对不同类型的退出在线状态, 输入相对应的再见信息, 完成个性化再见信息的设置。  Here, user A can input the corresponding goodbye information for different types of exiting online status, and complete the setting of personalized goodbye information.

比如, 用户 A可以设置退出发送侧 IM客户端时的再见信息为 "我已经下 线, 有时间再联系"。 或者, 用户 A也可以设置处于离开状态时的再见信息为 "工作中, 请勿打扰"。  For example, User A can set the goodbye message when exiting the IM client on the sending side as "I have offline, have time to contact". Alternatively, User A can also set the goodbye message when he is away from "Don't bother at work."

再见信息的具体内容也可以根据用户 A的喜好, 比如语言习惯进行设置。 比如用户 A可以设置再见信息为 "祝您下午愉快, 再见"。 也可以设置再见信 息为 "Have a great afternoon, see you"。  The specific content of the goodbye information can also be set according to the preferences of the user A, such as language habits. For example, user A can set the goodbye message to "I wish you a happy afternoon, goodbye." You can also set the goodbye message to "Have a great afternoon, see you".

步骤 305: 发送侧 IM客户端将封装有用户 A设置的再见信息和用户帐号 的数据包发送到 IM服务器。 IM服务器解析该数据包, 获取用户 A的再见信息 和用户帐号并存储。  Step 305: The sending side IM client sends the packet containing the goodbye information set by the user A and the user account to the IM server. The IM server parses the data packet, obtains the user A's goodbye information and user account and stores it.

发送侧 IM客户端将封装有用户 A的再见信息和用户帐号的数据包发送到 IM服务器的具体处理过程为:  The sending process of the sending side IM client that encapsulates the user A's goodbye information and the user account data packet to the IM server is:

在发送侧 IM客户端, 再见信息发送管理模块从再见信息发送设置模块提 取出用户 A设置的再见信息后, 设置传输用户 A再见信息的协议命令。 这里, 需要指出的是, 该协议命令是由发送侧 IM客户端和 IM服务器事先约定的, 以 保证发送侧 IM客户端和 IM服务器皆能正确识别该协议命令。 这里, 该协议命 令可以理解为用于在发送侧 IM客户端与 IM服务器之间传输该再见信息的传输 通道。  On the transmitting side IM client, the information sending management module picks up the goodbye information set by the user A from the goodbye information sending setting module, and then sets the protocol command for transmitting the user A goodbye information. Here, it should be noted that the protocol command is pre-agreed by the sending side IM client and the IM server to ensure that the sending side IM client and the IM server can correctly identify the protocol command. Here, the protocol command can be understood as a transmission channel for transmitting the goodbye information between the transmitting side IM client and the IM server.

发送侧 IM客户端将用户 A的再见信息和用户帐号封装到数据包中, 根据 IM服务器预先分配的密码对数据包进行加密; 基于传输用户 A再见信息的协 议命令, 将加密后的数据包发送到 IM服务器。 The sending side IM client encapsulates the user A's goodbye information and the user account into the data packet, and encrypts the data packet according to the pre-allocated password of the IM server; The command is to send the encrypted data packet to the IM server.

这里, 需要指出的是, 将加密后的数据包发送到 IM服务器后, IM服务器 解密该数据包, 获取用户 A的再见信息并存储到 IM服务器中, 以便以后用户 A在其他 IM客户端登录时仍能从 IM服务器获取到用户 A设置的再见信息。  Here, it should be noted that after the encrypted data packet is sent to the IM server, the IM server decrypts the data packet, obtains the goodbye information of the user A, and stores it in the IM server, so that the user A can log in to other IM clients in the future. The goodbye information set by User A can still be obtained from the IM server.

IM服务器解析该数据包, 获取用户 A的再见信息和用户帐号并存储的具 体处理过程为:  The IM server parses the data packet, obtains the user A's goodbye information and the user account and stores the specific processing procedure as follows:

IM服务器接收到加密后的数据包,根据该预先分配的密码对加密后的数据 包进行解密和解析, 提取出数据包中封装的用户 A的再见信息和用户帐号, 将 用户 A的再见信息和用户帐号存储到用户相关信息数据库。  The IM server receives the encrypted data packet, decrypts and parses the encrypted data packet according to the pre-assigned password, extracts the goodbye information of the user A encapsulated in the data packet, and the user account, and displays the user A's goodbye information and The user account is stored in the user related information database.

这里, 该用户相关信息数据库可以位于 IM服务器中, 也可以位于另一独 立的服务器, 比如用户信息数据服务器中。 并且, 该用户相关信息数据库中保 存数据的单位是数据行。 每个数据行以用户帐号标识。  Here, the user related information database may be located in the IM server or in another independent server, such as a user information data server. And, the unit of data stored in the user related information database is a data line. Each data line is identified by a user account.

步骤 306: 在 IM服务器中查询用户相关信息数据库, 根据用户 A的用户 帐号获取到与该用户帐号相对应的数据行。 IM服务器将再见信息插入到该数据 行中具体存储再见信息的数据列中。之后, IM服务器下发再见信息设置成功的 消息给发送侧 IM客户端,发送侧 IM客户端接收到该再见信息设置成功的消息, 及时地提示用户 A再见信息已经设置成功。  Step 306: Query the user related information database in the IM server, and obtain a data row corresponding to the user account according to the user account of the user A. The IM server inserts the goodbye information into the data column of the data row specifically storing the goodbye information. After that, the IM server sends a message that the goodbye information setting is successful to the sending side IM client, and the sending side IM client receives the message that the goodbye information is successfully set, prompting the user A to see the information has been successfully set.

步骤 307: 接收侧 IM客户端根据 IM服务器预先分配的密码, 将封装有用 户 B的用户帐号和用户 B输入的登录密码的登录请求消息加密后发送到 IM服 务器进行有效性验证。  Step 307: The receiving side IM client encrypts the login request message encapsulating the user account of the user B and the login password input by the user B according to the password pre-assigned by the IM server, and sends the login request message to the IM server for validity verification.

步骤 308: IM服务器根据该预先分配的密码对登录请求消息解密后, 将解 密后的登录请求消息转发到用户信息数据服务器进行一致性验证。 密码的对应关系, 在获取用户 B的用户帐号和登录密码后, 如果根据存储的对 应关系, 判定出用户 B的用户帐号和登录密码相对应, 则用户信息数据服务器 通过 IM服务器将一致性验证的成功消息转发给接收侧 IM客户端。  Step 308: After decrypting the login request message according to the pre-assigned password, the IM server forwards the decrypted login request message to the user information data server for consistency verification. After the user account and the login password of the user B are obtained, if the user account of the user B and the login password are determined according to the stored correspondence, the user information data server verifies the consistency through the IM server. The success message is forwarded to the receiving side IM client.

步骤 310: 用户 B登录的接收侧 IM客户端,接收侧 IM客户端为用户 B提 供再见信息接收方式的设置。 Step 310: The receiving side IM client that the user B logs in, and the receiving side IM client provides the user B The setting for the way to receive the goodbye information.

由于再见信息可能包括验扰信息, 因此, 用户 B可以在接收侧 IM客户端 设置是否接收来自用户 A的再见信息。  Since the goodbye information may include the interference information, the user B can set whether or not to receive the goodbye information from the user A on the receiving side IM client.

接收侧 IM客户端为用户 B提供再见信息接收方式的设置具体包括: 接收侧 IM客户端可以在菜单栏上为用户 B设置一个按钮, 当侦测到用户 B点击该按钮, 接收侧 IM客户端的再见信息接收设置模块将设置再见信息接 收方式的请求消息发送给 Windows窗口管理模块。  The setting of the receiving side IM client providing the user B with the way of receiving the goodbye information specifically includes: The receiving side IM client can set a button for the user B on the menu bar, and when detecting that the user B clicks the button, the receiving side IM client The goodbye information receiving setting module sends a request message for setting the goodbye information receiving mode to the Windows window management module.

在接收到 Windows窗口管理模块的响应后, 该再见信息接收设置模块通过 Windows窗口管理模块响应的 API, 创建再见信息接收方式编辑设置窗口。  After receiving the response from the Windows window management module, the goodbye information receiving setting module creates a goodbye information receiving mode editing setting window through the API responded by the Windows window management module.

再见信息接收设置模块接收用户 B输入到再见信息接收方式编辑设置窗口 中的再见信息接收方式, 完成再见信息接收方式的设置后, 将再见信息接收方 式设置完成的通知消息发送给 Windows窗口管理模块。 之后, 该再见信息接收 设置模块从 Windows窗口管理模块接收 Windows窗口关闭消息,关闭当前再见 信息接收方式编辑设置窗口。  The goodbye information receiving setting module receives the goodbye information receiving mode input by the user B into the goodbye information receiving mode editing setting window, and after completing the setting of the goodbye information receiving mode, the notification message of the goodbye information receiving mode setting is sent to the Windows window management module. Thereafter, the goodbye information receiving setting module receives the Windows window close message from the Windows window management module, and closes the current goodbye information receiving mode edit setting window.

这里,再见信息接收方式包括接收再见信息和拒绝接收再见信息两种情况。 步骤 311: 当用户 A退出在线状态的过程中, IM服务器将其上存储的用户 A的再见信息和用户帐号自动地转发到用户 B所在的接收侧 IM客户端。  Here, the goodbye information receiving method includes two cases of receiving the goodbye information and refusing to receive the goodbye information. Step 311: When the user A exits the online state, the IM server automatically forwards the goodbye information and the user account of the user A stored on the user A to the receiving side IM client where the user B is located.

步骤 312: 接收侧 IM客户端中的再见信息接收管理模块接收来自 IM服务 器的数据包, 对该数据包进行解析并提取该数据包的协议命令号。 根据该协议 命令号判断该数据包中封装的信息是否是再见信息类型, 比如协议命令号为 100表明该数据包中封装的信息是再见信息类型。  Step 312: The goodbye information receiving management module in the receiving side IM client receives the data packet from the IM server, parses the data packet, and extracts the protocol command number of the data packet. According to the protocol command number, it is determined whether the information encapsulated in the data packet is a type of goodbye information. For example, the protocol command number is 100, indicating that the information encapsulated in the data packet is a type of goodbye information.

如果是再见信息类型, 则再见信息接收管理模块根据用户 B设置的再见信 息接收方式执行相应的操作。 具体来说, 当用户 B设置的再见信息接收方式为 拒绝接收再见信息, 那么直接丟弃当前接收的数据包; 当用户 B设置的再见信 息接收方式为接收再见信息, 那么调用会话窗口管理模块, 打开对应用户 A的 会话窗口, 同时将再见信息显示在该会话窗口中。 否则, 如果不是再见信息类 型, 则按照其他信息类型进行处理。 在本发明另一实施例中, 实现消息自动转发的过程可以是: 发送侧 IM客 户端将发送侧 IM用户设置的自动发送信息存储在本地, 并在自身状态发生改 变的同时触发信息的自动发送, 即在自身状态发生改变时, 将存储在本地的自 动发送信息通过 IM服务器转发到接收端 IM客户端。 If it is a goodbye information type, the goodbye information receiving management module performs the corresponding operation according to the receiving information of the goodbye information set by the user B. Specifically, when the receiving mode of the goodbye information set by the user B is to refuse to receive the goodbye information, the current received data packet is directly discarded; when the receiving information of the goodbye information set by the user B is the receiving the goodbye information, the session window management module is invoked. Open the session window corresponding to User A, and display the goodbye information in the session window. Otherwise, if you do not see the information type again, it will be processed according to other information types. In another embodiment of the present invention, the process of automatically forwarding the message may be: the sending side IM client stores the automatic sending information set by the sending side IM user locally, and triggers the automatic sending of the information when the state changes. That is, when the state changes, the automatically sent information stored locally is forwarded to the receiving end IM client through the IM server.

以上仅为本发明的较佳实施例而已, 并非用于限定本发明的保护范围。 凡 在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含 在本发明的保护范围之内。  The above are only the preferred embodiments of the present invention and are not intended to limit the scope of 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 method for realizing automatic transmission of information, comprising: 接收并存储来自发送侧 IM客户端的数据包, 其中所述数据包中包含发送 侧用户设置的自动发送信息以及发送侧用户帐号;  Receiving and storing a data packet from the sending side IM client, where the data packet includes an automatic sending information set by the sending side user and a sending side user account; 在发送侧用户状态改变的情况下, 将封装有发送侧用户设置的自动发送信 息以及发送侧用户帐号的数据包发送给接收侧 IM客户端。  In the case where the user status on the transmitting side is changed, the automatic transmission information encapsulated by the transmitting side user and the data packet of the transmitting side user account are transmitted to the receiving side IM client. 2、 根据权利要求 1所述的方法, 其特征在于, 在将封装有发送侧用户设置 的自动发送信息以及发送侧用户帐号的数据包发送给接收侧 IM客户端之前, 进一步包括:  The method according to claim 1, wherein before the sending of the automatic transmission information set by the transmitting side user and the data packet of the sending side user account to the receiving side IM client, the method further includes: 侦测发送侧用户状态的变化。  Detect changes in the status of the user on the transmitting side. 3、 根据权利要求 2所述的方法, 其特征在于, 所述侦测发送侧用户状态的 变化包括:  The method according to claim 2, wherein the detecting the change of the state of the user on the transmitting side comprises: 主动侦测发送侧 IM客户端以了解发送侧用户状态的改变; 或者  Actively detecting the sending side IM client to know the change of the status of the sending side user; or 接收来自发送侧 IM客户端的发送侧用户状态改变检测结果。  The transmission side user state change detection result from the transmitting side IM client is received. 4、 根据权利要求 1所述的方法, 其特征在于, 所述数据包中进一步包 括所述自动发送信息对应的状态信息;  The method according to claim 1, wherein the data packet further includes state information corresponding to the automatically transmitted information; 所述在发送侧用户状态改变的情况下,将封装有发送侧用户设置的自动 发送信息以及发送侧用户帐号的数据包发送给接收侧 IM客户端包括:  In the case that the user status of the sending side is changed, the sending of the automatic sending information set by the sending side user and the data packet of the sending side user account to the receiving side IM client includes: 在所述发送侧用户状态改变的情况下,将封装有与所述改变后的发送侧 用户状态相对应的自动发送信息以及发送侧用户帐号的数据包发送给接收 侧 IM客户端。  When the status of the user on the transmitting side is changed, the automatic transmission information corresponding to the changed transmission side user status and the data packet of the transmission side user account are transmitted to the receiving side IM client. 5、 根据权利要求 1或 4所述的方法, 其特征在于, 所述数据包中进一 步包括发送侧 IM用户的好友标识;  The method according to claim 1 or 4, wherein the data packet further includes a friend identifier of the IM user on the transmitting side; 所述在发送侧用户状态改变的情况下,将封装有发送侧用户设置的自动 发送信息以及发送侧用户帐号的数据包发送给接收侧 IM客户端包括:  In the case that the user status of the sending side is changed, the sending of the automatic sending information set by the sending side user and the data packet of the sending side user account to the receiving side IM client includes: 在所述发送侧用户状态改变的情况下,将封装有发送侧用户设置的自动 发送信息以及发送侧用户帐号的数据包发送给所述好友标识对应的 IM用户 所登录的接收侧 IM客户端。 In the case where the state of the user on the transmitting side is changed, the automatic setting of the user on the transmitting side will be encapsulated. The sending information and the data packet of the sending side user account are sent to the receiving side IM client to which the IM user corresponding to the friend identifier is logged in. 6、 根据权利要求 1、 4或 5所述的方法, 其特征在于, 所述发送侧用户 状态包括上线、 下线、 离线、 忙碌以及离开。  6. The method according to claim 1, 4 or 5, wherein the transmitting side user status comprises online, offline, offline, busy, and away. 7、 根据权利要求 1、 4或 5所述的方法, 其特征在于, 所述在发送侧用 户状态改变的情况下,将封装有发送侧用户设置的自动发送信息以及发送侧 用户帐号的数据包发送给接收侧 IM客户端之前, 进一步包括:  The method according to claim 1, 4 or 5, wherein, in the case that the user status on the transmitting side is changed, the automatic transmission information set by the transmitting side user and the data packet of the sending side user account are encapsulated. Before being sent to the receiving side IM client, the method further includes: 接收来自接收侧 IM客户端的用于设置接收侧 IM用户信息接收方式的 请求消息,所述请求消息中包含所述接收侧 IM用户帐号以及信息接收方式; 确定所述信息接收方式为接收侧 IM用户同意接收所述发送侧用户设置 的自动发送信息。  Receiving a request message from the receiving side IM client for setting the receiving mode of the receiving side IM user information, where the request message includes the receiving side IM user account and the information receiving mode; determining that the information receiving mode is the receiving side IM user Agree to receive the automatic transmission information set by the transmitting side user. 8、 根据权利要求 7所述的方法, 其特征在于, 所述用于设置接收侧 IM 用户信息接收方式的请求消息中进一步包含接收侧 IM用户的一个或多个好 友用户的帐号, 以指示所述信息接收方式是所述接收侧 IM用户针对所述一 个或多个好友用户设置的;  The method according to claim 7, wherein the request message for setting the receiving mode of the IM user information on the receiving side further includes an account number of one or more friend users of the receiving side IM user, to indicate the location The receiving manner of the information is set by the receiving side IM user for the one or more friend users; 所述确定所述信息接收方式为接收侧 IM用户同意接收所述发送侧用户 设置的自动发送信息包括:  The determining that the information receiving manner is that the receiving side IM user agrees to receive the automatic sending information set by the sending side user includes: 确定在所述请求消息的所述一个或多个好友用户帐号中包括所述发送 侧用户帐号;  Determining to include the sending side user account in the one or more friend user accounts of the request message; 根据所述请求消息中包含的信息接收方式确定接收侧 IM用户同意接收 所述一个或多个好友用户设置的自动发送信息。  And determining, according to the information receiving manner included in the request message, that the receiving side IM user agrees to receive the automatic sending information set by the one or more friend users. 9、 一种实现信息自动发送的 IM服务器, 其特征在于, 包括:  9. An IM server for automatically transmitting information, comprising: 第一模块, 用于接收并存储来自发送侧 IM客户端发送的数据包, 其中 所述数据包包含发送侧用户设置的自动发送信息以及发送侧用户帐号;  a first module, configured to receive and store a data packet sent by the sending side IM client, where the data packet includes an automatic sending information set by a sending side user and a sending side user account; 第二模块, 用于在发送侧用户状态改变时, 将封装有发送侧用户设置的 自动发送信息以及发送侧用户帐号的数据包发送给接收侧 IM客户端。  The second module is configured to send, when the user status of the sending side changes, the automatic sending information encapsulated by the sending side user and the data packet of the sending side user account to the receiving side IM client. 10、 根据权利要求 9所述的 IM服务器, 其特征在于, 进一步包括: 第三模块, 用于检测发送侧用户的状态是否变化, 将发送侧用户的状态变 化报告给所述第二模块。 The IM server according to claim 9, further comprising: The third module is configured to detect whether the status of the sending side user changes, and report the status change of the sending side user to the second module. 11、 根据权利要求 9或 10所述的 IM服务器, 其特征在于, 进一步包括: 第四模块,用于接收来自接收侧 IM客户端的用于设置接收侧 IM用户信息 接收方式的请求消息, 所述请求消息中包含接收侧 IM用户帐号以及信息接收 方式; 并在确定所述信息接收方式为接收侧 IM用户同意接收所述发送侧用户 设置的自动发送信息时, 通知所述第二模块。  The IM server according to claim 9 or 10, further comprising: a fourth module, configured to receive, from the receiving side IM client, a request message for setting a receiving side IM user information receiving manner, The request message includes the receiving side IM user account and the information receiving mode. The second module is notified when the receiving mode is that the receiving side IM user agrees to receive the automatic sending information set by the sending side user. 12、 一种实现信息自动发送的系统, 其特征在于, 包括:  12. A system for automatically transmitting information, comprising: 发送侧 IM客户端, 用于接收发送侧用户对自动发送信息的设置, 并在完 成自动发送信息的设置后, 将封装有发送侧用户设置的自动发送信息和发送侧 用户帐号的数据包发送到 IM服务器;  The sending side IM client is configured to receive the setting of the automatic sending information by the sending side user, and after completing the setting of the automatic sending information, send the data packet encapsulated with the automatic sending information set by the sending side user and the sending side user account to IM server; IM服务器, 用于接收并存储来自所述发送侧 IM客户端的数据包; 并在用 户状态改变时, 将封装有发送侧用户设置的自动发送信息和发送侧用户帐号的 数据包发送给接收侧 IM客户端;  An IM server, configured to receive and store a data packet from the sending side IM client; and send, when the user status changes, a data packet encapsulated with the automatic sending information set by the sending side user and the sending side user account to the receiving side IM Client 接收侧 IM客户端, 用于接收 IM服务器的数据包, 将所述数据包中封 装的自动发送信息以及发送侧用户帐号显示给接收侧用户。  The receiving side IM client is configured to receive the data packet of the IM server, and display the automatic sending information encapsulated in the data packet and the sending side user account to the receiving side user. 13、 根据权利要求 12所述的系统, 其特征在于, 所述 IM服务器包括: 第一模块, 用于接收并存储来自发送侧 IM客户端发送的数据包; 第二模块, 用于在发送侧用户状态改变时, 将封装有发送侧用户设置的 自动发送信息以及发送侧用户帐号的数据包发送给接收侧 IM客户端。  The system according to claim 12, wherein the IM server comprises: a first module, configured to receive and store a data packet sent by the sending side IM client; and a second module, configured to send on the sending side When the user status changes, the automatic sending information encapsulated by the transmitting side user and the data packet of the sending side user account are sent to the receiving side IM client. 14、 根据权利要求 13所述的系统, 其特征在于, 所述发送侧 IM客户 端包括:  The system according to claim 13, wherein the transmitting side IM client comprises: 第三模块,用于将用于请求设置自动发送信息的请求信息发送给第四模块; 通过第四模块响应的应用编程接口 API, 创建信息编辑设置窗口; 接收用户输 入到信息编辑设置窗口的自动发送信息; 在用户完成自动发送信息的设置后, 向第四模块发送通知消息, 以通知第四模块自动发送信息设置完成; 从第四模 块接收窗口关闭消息, 关闭信息编辑设置窗口; 第四模块, 用于从第三模块接收用于请求设置自动发送信息的请求消息; 并对该请求消息进行响应; 从第三模块接收用于通知自动发送信息设置完成的 通知消息后, 将窗口关闭消息发送给第三模块; a third module, configured to send request information for requesting setting automatic sending information to the fourth module; creating an information editing setting window by using an application programming interface API responded by the fourth module; receiving an automatic input of the user input to the information editing setting window Sending the information; after the user completes the setting of automatically sending the information, sending a notification message to the fourth module to notify the fourth module to automatically send the information setting completion; receiving the window closing message from the fourth module, closing the information editing setting window; a fourth module, configured to receive, from the third module, a request message for requesting to set automatic transmission information; and respond to the request message; after receiving a notification message for notifying that the automatic transmission information setting is completed from the third module, the window is The close message is sent to the third module; 第五模块, 用于从第三模块提取出自动发送信息, 设置传输自动发送信息 的协议命令; 将自动发送信息和发送侧用户帐号封装到数据包中, 基于自动发 送信息的协议命令, 将数据包发送到 IM服务器。  The fifth module is configured to extract automatic sending information from the third module, set a protocol command for transmitting the automatic sending information, and encapsulate the automatic sending information and the sending side user account into the data packet, and the data is based on the protocol command for automatically sending the information. The package is sent to the IM server. 15、 根据权利要求 14所述的系统, 其特征在于, 所述 IM服务器进一步包 括:  The system according to claim 14, wherein the IM server further comprises: 第六模块, 用于检测发送侧用户的状态是否变化, 将发送侧用户的状态变 化报告给所述第二模块; 或者  a sixth module, configured to detect whether a status of the user on the transmitting side changes, and report a status change of the user on the sending side to the second module; or 所述发送侧 IM客户端进一步包括:  The sending side IM client further includes: 第七模块, 用于检测发送侧用户的状态是否变化, 将发送侧用户的状态变 化报告给所述 IM服务器。  The seventh module is configured to detect whether the status of the sending side user changes, and report the status change of the sending side user to the IM server. 16、 根据权利要求 13所述的系统, 其特征在于, 所述发送侧 IM客户 端包括:  The system according to claim 13, wherein the sending side IM client comprises: 第八模块, 用于接收由 IM服务器发送的数据包后, 解析数据包中的内容, 将所述数据包中封装的自动发送信息以及发送侧用户帐号显示给接收侧用户。  The eighth module is configured to: after receiving the data packet sent by the IM server, parse the content in the data packet, and display the automatically sent information encapsulated in the data packet and the user account on the sending side to the receiving side user. 17、 根据权利要求 16所述的系统, 其特征在于, 所述接收侧 IM客户 端进一步包括:  The system according to claim 16, wherein the receiving side IM client further comprises: 第九模块, 用于将用于请求设置自动发送信息接收方式的请求消息发送给 第十模块; 通过第十模块响应的 API, 创建信息接收方式编辑设置窗口; 提取 用户输入到信息接收方式编辑设置窗口的信息接收方式; 并在用户完成信息接 收方式的设置后,向第十模块发送用于通知信息接收方式设置完成的通知消息; 从第十模块接收窗口关闭消息, 关闭信息接收方式编辑设置窗口;  a ninth module, configured to send a request message for requesting to set an automatic sending information receiving manner to the tenth module; to create an information receiving mode editing setting window by using an API of the tenth module response; extracting user input to the information receiving mode editing setting The information receiving mode of the window; after the user completes the setting of the information receiving mode, sends a notification message for notifying the setting of the receiving manner of the information to the tenth module; receiving the window closing message from the tenth module, and closing the information receiving mode editing setting window ; 第十模块, 用于从第九模块接收用于请求设置信息接收方式的请求消息; 并对该请求消息进行响应; 从第九模块接收用于通知信息接收方式设置完成的 通知消息, 将窗口关闭消息发送给第九模块; 第八模块进一步用于解析来自 IM服务器的数据包, 并判断数据包中封装 的信息为自动发送信息类型, 并且接收侧 IM客户端设置的信息接收方式为同 意接收自动发送信息。 a tenth module, configured to receive, from the ninth module, a request message for requesting a setting information receiving manner; and responding to the request message; receiving, from the ninth module, a notification message for setting the notification information receiving mode to be completed, closing the window The message is sent to the ninth module; The eighth module is further configured to parse the data packet from the IM server, and determine that the information encapsulated in the data packet is an automatic transmission information type, and the information receiving manner set by the receiving side IM client is to agree to receive the automatic transmission information. 18、 根据权利要求 16所述的系统, 其特征在于, 所述 IM服务器进一 步包括:  18. The system according to claim 16, wherein the IM server further comprises: 第十一模块,用于接收来自接收侧 IM客户端的用于设置接收侧 IM用户信 息接收方式的请求消息, 所述请求消息中包含接收侧 IM用户帐号以及信息接 收方式; 并在确定所述信息接收方式为接收侧 IM用户同意接收所述发送侧用 户设置的自动发送信息时, 通知所述第二模块。  The eleventh module is configured to receive a request message for setting the receiving mode of the receiving side IM user information from the receiving side IM client, where the request message includes the receiving side IM user account and the information receiving mode; and determining the information The receiving mode is to notify the second module when the receiving side IM user agrees to receive the automatic sending information set by the sending side user. 19、 一种实现信息自动发送的客户端, 其特征在于, 包括:  19. A client that implements automatic information transmission, and is characterized in that: 第一模块,用于将用于请求设置自动发送信息的请求信息发送给第四模块; 通过第二模块响应的应用编程接口 API, 创建信息编辑设置窗口; 接收用户输 入到信息编辑设置窗口的自动发送信息; 在用户完成自动发送信息的设置后, 向第二模块发送通知消息, 以通知第二模块自动发送信息设置完成; 从第二模 块接收窗口关闭消息, 关闭信息编辑设置窗口;  a first module, configured to send request information for requesting setting automatic sending information to the fourth module; creating an information editing setting window by using an application programming interface API responded by the second module; receiving an automatic input of the user input to the information editing setting window Sending the information; after the user completes the setting of the automatic sending information, sending a notification message to the second module to notify the second module to automatically send the information setting completion; receiving the window closing message from the second module, closing the information editing setting window; 第二模块, 用于从第一模块接收用于请求设置自动发送信息的请求消息; 并对该请求消息进行响应; 从第一模块接收用于通知自动发送信息设置完成的 通知消息后, 将窗口关闭消息发送给第一模块;  a second module, configured to receive, from the first module, a request message for requesting to set automatic transmission information; and respond to the request message; after receiving a notification message for notifying that the automatic transmission information setting is completed from the first module, the window is The close message is sent to the first module; 第三模块, 用于从第一模块提取出自动发送信息, 设置传输自动发送信息 的协议命令; 将自动发送信息和发送侧用户帐号封装到数据包中, 基于自动发 送信息的协议命令, 将数据包发送到 IM服务器。  The third module is configured to extract the automatic sending information from the first module, set a protocol command for transmitting the automatic sending information, and encapsulate the automatic sending information and the sending side user account into the data packet, and the data is based on the protocol command for automatically sending the information. The package is sent to the IM server. 20、 根据权利要求 19所述的客户端, 其特征在于, 进一步包括: 第四模块, 用于检测发送侧用户的状态是否变化, 将发送侧用户的状态变 化报告给所述 IM服务器。  The client according to claim 19, further comprising: a fourth module, configured to detect whether a status of the user on the transmitting side changes, and report a status change of the user on the transmitting side to the IM server. 21、 一种实现信息自动发送的客户端, 其特征在于, 包括:  21. A client for implementing automatic information transmission, comprising: 第一模块, 用于接收由 IM服务器发送的数据包后, 解析数据包中的内容, 将所述数据包中封装的自动发送信息以及发送侧用户帐号显示给接收侧用户。 The first module is configured to parse the content in the data packet after receiving the data packet sent by the IM server, and display the automatically sent information encapsulated in the data packet and the user account on the sending side to the receiving side user. 22、 根据权利要求 21所述的客户端, 其特征在于, 进一步包括: 第二模块, 用于将用于请求设置自动发送信息接收方式的请求消息发送给 第三模块; 通过第三模块响应的应用编程接口 API, 创建信息接收方式编辑设 置窗口; 提取用户输入到信息接收方式编辑设置窗口的信息接收方式; 并在用 户完成信息接收方式的设置后, 向第三模块发送用于通知信息接收方式设置完 成的通知消息; 从第三模块接收窗口关闭消息, 关闭信息接收方式编辑设置窗 口; The client according to claim 21, further comprising: a second module, configured to send a request message for requesting to set an automatic transmission information receiving manner to the third module; Applying the programming interface API, creating an information receiving mode editing setting window; extracting the information receiving mode input by the user to the information receiving mode editing setting window; and after the user completes the setting of the information receiving mode, sending the notification information receiving mode to the third module Setting a completed notification message; receiving a window close message from the third module, closing the information receiving mode editing setting window; 第三模块, 用于从第二模块接收用于请求设置信息接收方式的请求消息; 并对该请求消息进行响应; 从第二模块接收用于通知信息接收方式设置完成的 通知消息, 将窗口关闭消息发送给第二模块;  a third module, configured to receive, from the second module, a request message for requesting a setting information receiving manner; and responding to the request message; receiving, from the second module, a notification message for notifying that the information receiving mode is completed, closing the window The message is sent to the second module; 第一模块进一步用于解析来自 IM服务器的数据包, 并判断数据包中封装 的信息为自动发送信息类型, 并且接收侧 IM客户端设置的信息接收方式为同 意接收自动发送信息。  The first module is further configured to parse the data packet from the IM server, and determine that the information encapsulated in the data packet is an automatic transmission information type, and the information receiving manner set by the receiving side IM client is to receive the automatic transmission information.
PCT/CN2008/073448 2007-12-27 2008-12-11 Method, server, system and client for automatic transmitting of information Ceased WO2009092228A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710304430.2 2007-12-27
CNA2007103044302A CN101217505A (en) 2007-12-27 2007-12-27 A system and method to realize automatic transmitting of 'Goodbye' information

Publications (1)

Publication Number Publication Date
WO2009092228A1 true WO2009092228A1 (en) 2009-07-30

Family

ID=39623867

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/073448 Ceased WO2009092228A1 (en) 2007-12-27 2008-12-11 Method, server, system and client for automatic transmitting of information

Country Status (2)

Country Link
CN (1) CN101217505A (en)
WO (1) WO2009092228A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217505A (en) * 2007-12-27 2008-07-09 腾讯科技(深圳)有限公司 A system and method to realize automatic transmitting of 'Goodbye' information
CN101771622B (en) 2008-12-31 2012-09-05 华为技术有限公司 E-mail automatic replying method, device and system
CN101765059A (en) * 2010-02-26 2010-06-30 深圳市戴文科技有限公司 Method, system and mobile terminal for broadcasting status messages

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003098449A1 (en) * 2002-05-13 2003-11-27 Bellsouth Intellectual Property Corporation Real-time notification of presence availability changes
US20050071433A1 (en) * 2003-09-25 2005-03-31 Sun Microsystems, Inc. Method and system for processing instant messenger operations dependent upon presence state information in an instant messaging system
EP1788762A1 (en) * 2005-11-21 2007-05-23 Research In Motion Limited A method for regulating instant messaging traffic
CN101217505A (en) * 2007-12-27 2008-07-09 腾讯科技(深圳)有限公司 A system and method to realize automatic transmitting of 'Goodbye' information
CN101291486A (en) * 2006-10-19 2008-10-22 捷讯研究有限公司 Method, system and apparatus for automatic notification to a plurality of communication nodes

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003098449A1 (en) * 2002-05-13 2003-11-27 Bellsouth Intellectual Property Corporation Real-time notification of presence availability changes
US20050071433A1 (en) * 2003-09-25 2005-03-31 Sun Microsystems, Inc. Method and system for processing instant messenger operations dependent upon presence state information in an instant messaging system
EP1788762A1 (en) * 2005-11-21 2007-05-23 Research In Motion Limited A method for regulating instant messaging traffic
CN101291486A (en) * 2006-10-19 2008-10-22 捷讯研究有限公司 Method, system and apparatus for automatic notification to a plurality of communication nodes
CN101217505A (en) * 2007-12-27 2008-07-09 腾讯科技(深圳)有限公司 A system and method to realize automatic transmitting of 'Goodbye' information

Also Published As

Publication number Publication date
CN101217505A (en) 2008-07-09

Similar Documents

Publication Publication Date Title
KR101113738B1 (en) Internet connecting method for mobile communication terminal
CN102594845B (en) Instant message transmission method based on XMPP
EP2122922B1 (en) Remote control using instant messaging
CN100562022C (en) Session management method and system using client session identification
CN101296200B (en) System and method for establishing multi-user conversation
CN103547342B (en) Message sending method, message reading notification method, message receiving method and device
CN101753475A (en) Method and device for realizing real-time communication among a plurality of members in real-time communication group
CN103873426B (en) A kind of method for adding social group, server, terminal and system
WO2009074079A1 (en) An instant communication method and apparatus
CN102077492A (en) System and method for transferring a session between multiple clients
TW201251378A (en) Instant communication message transmitting method and device
CN101047703B (en) Method and system for joining a group
WO2009129723A1 (en) Method and system of off-line image transmission and off-line image server
CN102694742B (en) A kind of instant messaging and the interworking implementation method and device of microblogging
US20100235440A1 (en) Message processing method, system and client
CN101179520A (en) Method and system for sensing mail status
CN101202716A (en) Method for storing information and communication system and related devices
CN101710882A (en) Method for realizing multi-IM protocol Web version instant message
CN100438651C (en) Immediate message server, guestroom end, processing system and processing method
CN107508747A (en) Group communication method, server and computer storage medium for converged communication
WO2009092228A1 (en) Method, server, system and client for automatic transmitting of information
CN101635689A (en) Method for detecting friend state in instant messaging tool
CN111899118A (en) Social system and method
CN101635690A (en) Method for customizing friend state in instantaneous communication tool
WO2008026416A1 (en) Message transmitting/receiving 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: 08871221

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 3395/CHENP/2010

Country of ref document: IN

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC OF 271010

122 Ep: pct application non-entry in european phase

Ref document number: 08871221

Country of ref document: EP

Kind code of ref document: A1