WO2015096802A1 - Method, device, and server for message transmission - Google Patents

Method, device, and server for message transmission Download PDF

Info

Publication number
WO2015096802A1
WO2015096802A1 PCT/CN2014/095065 CN2014095065W WO2015096802A1 WO 2015096802 A1 WO2015096802 A1 WO 2015096802A1 CN 2014095065 W CN2014095065 W CN 2014095065W WO 2015096802 A1 WO2015096802 A1 WO 2015096802A1
Authority
WO
WIPO (PCT)
Prior art keywords
client
online
information
message receiving
group
Prior art date
Application number
PCT/CN2014/095065
Other languages
French (fr)
Chinese (zh)
Inventor
彭铁磊
Original Assignee
广州华多网络科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州华多网络科技有限公司 filed Critical 广州华多网络科技有限公司
Publication of WO2015096802A1 publication Critical patent/WO2015096802A1/en

Links

Images

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]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information

Definitions

  • the embodiments of the present invention relate to the field of computer technologies, and in particular, to a message sending method, apparatus, and server.
  • Team Voice Tools is a web tool that supports multiplayer online voice communication as well as video communication.
  • Team voice tools usually divide teams according to channels (also called rooms).
  • Each channel includes at least one administrator client and at least one user client.
  • the administrator client and the client client can communicate by sending messages.
  • An existing method for sending a message includes: the client sends the message and the client identifier to the server, and the server determines the channel where the client is located according to the client identifier, and broadcasts the message to each other client in the channel that is online.
  • the client includes an administrator client and a user client.
  • the server can only send messages to various other clients in the channel that are online, the other clients in the channel that are offline can not receive the messages sent by the client, which affects the transmission range of the message.
  • the embodiment of the present application provides a message sending method, device, and server.
  • the technical solution is as follows:
  • the embodiment of the present application provides a message sending method, for creating a server having an online/offline message receiving group and an online message receiving group, where the online message receiving group only supports the online Each client in the online receiving state in the message receiving group sends a message, and the online/offline message receiving group supports simultaneously receiving each of the online and offline clients in the online/offline message receiving group and each of the offline states.
  • the client sends a message, and the method includes:
  • the embodiment of the present application provides a message sending apparatus, configured to create a server having an online/offline message receiving group and an online message receiving group, where the online message receiving group only supports the online Each client in the online receiving state in the message receiving group sends a message, and the online/offline message receiving group supports simultaneously receiving each of the online and offline clients in the online/offline message receiving group and each of the offline states.
  • the client sends a message
  • the device includes:
  • An information obtaining module configured to acquire client information of each client in the online message receiving group
  • An information adding module configured to add, to the online/offline message receiving group, each client information acquired by the information acquiring module;
  • a message sending and receiving module configured to send the message to the online/offline message receiving group when receiving a message sent by any one of the line/offline message receiving groups added by the information adding module Individual clients that are online and individual clients that are offline.
  • the embodiment of the present application provides a server, where the server is configured with an online/offline message receiving group and an online message receiving group, and the server includes the message sending device according to the second aspect.
  • the embodiment of the present application provides a server, where the server is configured to have an online/offline message receiving group and an online message receiving group, and the online message receiving group only supports the online Each client in the online receiving state in the message receiving group sends a message, and the online/offline message receiving group supports simultaneously receiving each of the online and offline clients in the online/offline message receiving group and each of the offline states.
  • the client sends a message
  • the server including a processor and a transceiver, wherein:
  • the processor is configured to obtain client information of each client in the online message receiving group;
  • the processor is further configured to add the obtained individual client information to the online/offline message receiving group;
  • the transceiver is configured to: when receiving a message sent by any one of the online/offline message receiving groups, send the message to each of the online/offline message receiving groups that are in an online state Clients and individual clients that are offline.
  • each client in the group that is online and each client in the offline state can import the client from the online message receiving group that only supports sending messages to each client in the online state to support while being online.
  • the online/offline message receiving group in which each client and each client in the offline state sends a message enables the client to receive the message when the client is offline, thereby achieving the effect of expanding the transmission range of the message.
  • FIG. 1 is a schematic structural diagram of a team voice tool according to an embodiment of the present application.
  • FIG. 2 is a flowchart of a method for sending a message according to an embodiment of the present application
  • FIG. 3 is a flowchart of a method for sending a message according to another embodiment of the present application.
  • FIG. 4 is a structural block diagram of a message sending apparatus according to an embodiment of the present application.
  • FIG. 5 is a structural structural diagram of a message sending apparatus according to still another embodiment of the present application.
  • FIG. 6 is a structural structural diagram of a server according to still another embodiment of the present application.
  • FIG. 1 is a schematic structural diagram of a team voice tool according to an embodiment of the present application.
  • the team voice tool typically includes at least one client 110 and server 120.
  • Client 110 can be an electronic device such as a computer, smart phone, tablet, and e-book reader.
  • the electronic device can be installed with an application client of the team voice tool, or a web browser with a browser installed and then accessing the team voice tool through a browser.
  • the client 110 can be classified according to the user: the administrator client used by the administrator and the user client used by the viewer.
  • the administrator client is a user with the authority to manage the channel.
  • the client used by the administrator and the client are basically the same, and one team voice tool has one to multiple clients, such as one hundred. Ten thousand clients or ten million clients.
  • Server 120 can be coupled to client 110 via a wireless or wired network.
  • the server 120 can be one or more servers or a cloud computing center.
  • the server 120 can be implemented by one server; it can also be implemented by a combination of multiple servers, each of which assumes the same or different functions, such as a server for registration and login, a server for saving user avatars, and The server for saving channel information and configuration information, the server for saving pictures or videos, and the like; the server 120 can also be implemented by a cloud computing center, which is a virtual computing platform formed by a whole service cluster.
  • server 120 since the server 120 creates an online message receiving group and an online/offline message receiving group, one server may simultaneously create an online message receiving group and an online/offline message receiving group; One server is created with an online message receiving group, and the other server is created with an online/offline message receiving group.
  • FIG. 2 is a flowchart of a method for sending a message according to an embodiment of the present application.
  • the message sending method may be applied to a server that creates an online/offline message receiving group and an online message receiving group.
  • the online message receiving group only supports sending messages to each client in the online message receiving group that is online, and the online/offline message receiving group supports simultaneously to the online/offline message receiving group in the online state of each client and Each client that is offline sends a message.
  • the message sending method includes:
  • Step 201 Obtain client information of each client in the online message receiving group.
  • the online message receiving group is a group that only supports sending messages to the online party in the online message receiving group.
  • the online message receiving group may be a channel in which the content is currently being broadcasted, and the channel usually uses the information to be sent.
  • Mechanism is the mechanism of message broadcasting, that is, a guest in the channel
  • the message sent by the client is broadcast to the client in the channel that is online.
  • the online/offline message receiving group is a group that can support simultaneous sending of messages to the online and offline clients in the online/offline message receiving group, for example, the online/offline message receiving group can be Instant messaging groups, such as the Y group (groups created in the YY voice tool), the information transmission mechanism usually used by the instant messaging group includes an offline information transmission mechanism, that is, an instant communication group.
  • the message sent by a certain client in the group is broadcasted to the online client in the instant messaging group, and the message is also transmitted to the offline client through the offline information transmission mechanism.
  • the client information is information of the account that is logged in the client, including the user account, the personal nickname, and the level information of the user in the online message receiving group.
  • Step 202 Add the obtained client information to the online/offline message receiving group.
  • the client information of each client in the online message receiving group can be added to the online/offline message receiving group through online/offline.
  • the message receiving group sends a message to the client in the online state and the client in the offline state, so that the client in the offline state can also receive the message, so that the online message receiving group can be belonged (if the content is currently in progress)
  • the client information of the live channel is imported into the online/offline message receiving group (such as the Y group), and the transmission range of the message can be expanded.
  • Step 203 When receiving a message sent by any one of the online/offline message receiving groups, the message is sent to each client in the online/offline message receiving group that is online and each client in the offline state. end.
  • the client corresponding to the client information added to the online/offline message receiving group may send a message to the server, and the server sends the received message to each of the online clients in the online/offline message receiving group and Individual clients that are offline.
  • the message sending method adds the obtained client information to the online/offline message receiving group; when receiving any one of the online/offline message receiving groups
  • the message is sent to each client in the online/offline message receiving group that is online and each client in the offline state, and the client can send the message from only supporting each client in the online state.
  • the online message receiving group is imported into an online/offline message receiving group that supports sending messages to each client in the online state and each client in the offline state, so that the client can receive the message when the client is offline.
  • Achieved expansion The effect of the transmission range of interest.
  • FIG. 3 is a flowchart of a method for sending a message according to another embodiment of the present application.
  • the message sending method may be applied to a server that creates an online/offline message receiving group and an online message receiving group.
  • the online message receiving group only supports sending messages to each client in the online message receiving group that is online, and the online/offline message receiving group supports simultaneously to the online/offline message receiving group in the online state of each client. Send messages to each client that is offline.
  • the message sending method includes:
  • Step 301 Receive an add request that is sent by the client, carrying the client identifier, the first group identifier that is the online/offline message receiving group identifier, and the second group identifier that is the online message receiving group identifier.
  • the first group identifier is used to identify an online message receiving group, and the online message receiving group is a group that only supports sending a message to a client in an online message receiving group that is online.
  • the online message receiving group may be
  • the channel currently being broadcasted by the content is usually a message broadcast mechanism.
  • the message sent by a client in the channel is broadcast to the client in the channel that is online.
  • the second group identifier is used to identify an online/offline message receiving group, and the online/offline message receiving group can support sending to both the online and offline clients in the online/offline message receiving group.
  • the group of messages for example, the online/offline message receiving group may be an instant communication group, such as a group Y (a group created in the YY voice tool), and the information transmission mechanism usually adopted by the instant communication group includes a message broadcast.
  • the offline information transmission mechanism is also included, that is, the message sent by a client in the instant communication group is broadcasted to the online client in the instant communication group, and the offline information transmission mechanism is also adopted. The message is delivered to the client that is offline.
  • the client information of each client in the online message receiving group can be added to the online/offline message receiving group through online/offline.
  • the message receiving group sends a message to the client in the online state and the client in the offline state, so that the client in the offline state can also receive the message to expand the transmission range of the message.
  • the client information is information about the account that is logged in the client, including the user account, the personal nickname, and the level information of the user in the online message receiving group.
  • the server can automatically add the information of each client in the online message receiving group. Adding to the online/offline message receiving group; or the server may also add each client information in the online message receiving group to the online/offline message receiving group under the trigger of the client, for example, the client to the server Sending an add request, the server triggers the addition of the client information according to the add request.
  • the server triggers the adding operation of the client information
  • the client identifier and the first group identifier are required to be carried in the adding request. And a second group identifier.
  • Step 302 Detect, according to the client identifier and the first group identifier, whether the client is an administrator client of the online/offline message receiving group, and detect whether the client is an online message receiving according to the client identifier and the second group identifier.
  • Group administrator client
  • the server may trigger the addition of the client information when receiving an add request sent by any client, or, in order to prevent any client from sending an add request, triggering an increase in the number of add operations caused by the addition of the client information,
  • the server can also define clients that trigger the addition of client information.
  • the server may define at least one of an administrator client whose client is an online message receiving group and an administrator client whose client is an online/offline message receiving group.
  • the client is an administrator of the online message receiving group and the online/offline message receiving group
  • the server may separately detect whether the client is an administrator of the online/offline message receiving group. Whether the client and the client are the administrator clients of the online message receiving group.
  • the embodiment is specifically described by the server detecting whether the client is an administrator client of the online message receiving group.
  • the server sets and records the role value of the administrator client when the administrator client triggers the creation of the online message receiving group, and obtains the role value of the client identified by the client identifier, and detects whether the role value of the client is equal to the role value of the administrator client. . If the role value of the client is equal to the role value of the administrator client, it is determined that the client is an administrator client of the online message receiving group; if the role value of the client is not equal to the role value of the administrator client, it is determined that the client is not an online message. Receive the administrator client for the group. Similarly, the server can also detect whether the client is an administrator client of the online/offline message receiving group according to the role value.
  • Step 303 if the detection result is that the client is the administrator client of the online/offline message receiving group and the client is the administrator client of the online message receiving group, then in response to the adding request, step 304 is performed;
  • the server determines to respond to the adding request sent by the client.
  • the server can also limit the number of times the response is added. For example, the server sets a predetermined number of thresholds for responding to an add request for any online message receiving group within a predetermined time period.
  • the predetermined time period and the predetermined number of thresholds can be set and modified. For example, the predetermined time period is 1 week, and the predetermined number of times threshold is 2 times.
  • the server before responding to the addition request, the server also needs to acquire the number of times the server successfully responds to the addition request of the online message receiving group within the predetermined time period. If the number of times the server successfully responds to the addition request is less than the predetermined number of thresholds, it is determined that the server may continue to perform step 304 in response to the current addition request; if the number of times the server successfully responds to the addition request is equal to the predetermined number of thresholds, it is determined that the server cannot respond to the current Add the request and the process ends.
  • Step 304 Acquire client information of each client in the online message receiving group.
  • the server may determine an online message receiving group according to the first group identifier, and obtain client information of each client included in the group.
  • Step 305 Add the obtained client information to the online/offline message receiving group.
  • the server may add each client information in the online message receiving group to the online/offline message receiving group, without requiring the administrator client to set each client as a friend client, and then the friend.
  • the client's client information is added to the online/offline message receiving group, which not only protects the privacy between the clients, but also saves the processing resources of the server when setting the friend client.
  • the online information in the online message receiving group is added to the client information in the online message receiving group, and not in the other online message receiving group, the other online message receiving group can be avoided.
  • the client advertises the other online message receiving group, thereby reducing the amount of client information that is advertised to exit the online message receiving group, thereby reducing the loss of client information in the online message receiving group.
  • the method for the server to add the obtained client information to the online/offline message receiving group The body is as follows:
  • the obtained client information is added to the online/offline message receiving group, including:
  • the server may add the obtained client information to the online/offline message receiving group, or, in order to avoid the user's interruption caused by directly joining the client to the online/offline message receiving group, the server may also The client sends an inquiry message, and the client can display the options of "agree” and "reject” according to the inquiry information. If the user selects the "Agree” option, the client sends a confirmation message to the server, and the server adds the client information of the client to the online/offline message receiving group; if the user selects the "Reject” option, the client The server sends a rejection message, and the server abandons adding the client's client information to the online/offline message receiving group.
  • the client may also display an option of “remember selection”. If the user selects the option, the server may directly add the client information to the online/offline message according to the confirmation information of the next time when the request is added. In the receiving group, or directly, according to the rejection information of this time, the client information is added to the online/offline message receiving group.
  • the corresponding processing manner may be various.
  • the following provides an optional processing manner, which may include the following steps:
  • Step 1 If the confirmation information or the rejection information fed back by any client in each client is not received within the preset duration from the time when the inquiry information is sent, according to the correspondence between the pre-stored client and the added operation information And determining the first adding operation information corresponding to any of the foregoing clients, and adding the operation information includes adding and discarding the adding.
  • a duration of receiving the client feedback confirmation information or the rejection information may be preset in the server, for example, 12 hours, 24 hours, etc. Further, the confirmation information or the rejection information may not be fed back to the server within the preset duration.
  • the processing mode of the situation is set. For example, the user can set the confirmation to join the corresponding message receiving group in the above situation. Accordingly, the server can record the adding operation information of the corresponding client as “adding”, or can be performed by a technician. The processing method of the above case is preset. After the setting is completed in any of the above manners, the server may obtain a correspondence between the client and the added operation information, and store, where the client and the added operation information are paired. The relationship should be stored in the form of a table, as shown in Table 1.
  • the server may send the inquiry information to each client in the online message receiving group, and record the time for sending the inquiry information to each client. If the server sends the inquiry message to a client (which may be referred to as the first client), The server does not receive the confirmation information or the rejection information of the first client feedback within the preset duration. The server may search through the corresponding identifier of the first client, and obtain the corresponding identifier of the client identifier. Operation information, for example, if the client identifier of the first client is client B, the corresponding add operation information can be obtained as "add" through the above table 1.
  • Step 2 If the first added operation information is added, the client information of any of the above clients is added to the online/offline message receiving group.
  • the server may obtain the client information of the first client, and Add it to the online/offline message receiving group. If the adding operation information corresponding to the client identifier of the first client is “abandoned” by the correspondence of the foregoing table 1, the server may abandon adding the client information of the first client to the online/offline message receiving group. For example, if the client identifier of the first client is client A, the corresponding add operation information is “abandon add”, and at this time, the server may abandon adding it to the online/offline message receiving group.
  • the server can also determine how to add the client information to the online/offline message receiving group according to the type of the client. Assuming that the server divides the client in the online message receiving group into an administrator client and a user client, the server can directly add the client information of the administrator client to the online/offline message receiving group to the user client. The inquiry information is sent, and the client information of the user client that feeds back the confirmation information is added to the online/offline message receiving group.
  • the method further includes:
  • the exit request is sent when the client feeds back the rejection information according to the inquiry information, and the rejection information is used to indicate the rejection of the customer.
  • the server After the server sends the inquiry message to the client, if the user selects the "deny” option, the client can also provide the "exit online message receiving group" option. If the user selects the "Exit Online Message Receiving Group” option, the client sends an exit request to the server, and the server deletes the client information of the client in the online message receiving group according to the exit request. The client can send the rejection information and the exit information to the server at the same time, saving transmission resources.
  • the obtained client information is added to the online/offline message receiving group, including:
  • each client information is added to the corresponding one according to the client type and the correspondence between the respective groups and the client type in each client information.
  • each client information is determined according to the type of the client and the correspondence between the respective groups and the type of the client in each client information. Add to the corresponding group.
  • the server can also automatically add client information to each group. For example, the server can automatically add client information for the administrator client to the management group.
  • the server may pre-configure the correspondence between the client type and the group, and determine, according to the client type and the grouping correspondence in the added client information, the client information belongs to Group and add the client information to the group.
  • the server may create at least one packet before adding the client information to the online/offline message receiving group, and configure the correspondence between the client type and the grouping, according to the added
  • the correspondence between the client type and the packet in the client information determines the group to which the client information belongs, and adds the client information to the created packet.
  • the server successfully adds each client information to the online/offline message receiving group, it also needs to increase the number of successful response addition requests by one.
  • Step 306 When receiving a message sent by any one of the online/offline message receiving groups, the message is sent to each client and the online state in the online/offline message receiving group. Each client in offline state.
  • the client corresponding to the client information added to the online/offline message receiving group may send a message to the server, and the server sends the received message to each of the online clients in the online/offline message receiving group and Individual clients that are offline.
  • the message sending method is detailed in steps 301 to 306; if a server creates an online/offline The message receiving group and the other server create an online message receiving group.
  • the server that creates the online/offline message receiving group is referred to as a first server, and the server that creates the online message receiving group is called a server.
  • the second server, the message sending method is as follows:
  • the first server receives, by the client, an add request that carries the client identifier, the first group identifier that is the online/offline message receiving group identifier, and the second group identifier that is the online message receiving group identifier, according to the
  • the client identifier and the first group identifier detect whether the client is an administrator client of the online/offline message receiving group, and if the detection result is that the client is an administrator client of the online/offline message receiving group, the reservation is obtained.
  • the number of times of successfully responding to the addition request of the online message receiving group in the time period detecting whether the number of times is less than a predetermined number of thresholds, and if the detection result is that the number of times is less than a predetermined number of thresholds, responding to the adding request, that is, the first server will carry the client Adding an end identifier, a first group identifier, and a second group identifier to the second server;
  • the second server detects, according to the client identifier and the second group identifier, whether the client is an administrator client of the online message receiving group, and if the detection result is that the client is an administrator client of the online message receiving group, then Obtaining client information of each client in the online message receiving group, and sending each client information to the first server;
  • the first server adds the received client information to the online/offline message receiving group
  • the first server adds the client information directly to the online/offline message receiving group; and/or, the first server sends to each client whether to join the online/offline message receiving group query information, if received
  • the client adds the client information of the client to the online/offline message receiving group according to the confirmation information according to the confirmation information fed back by the inquiry information.
  • adding the operation information includes adding and discarding the adding; if the first adding operation information is adding, The client information of the client is added to the online/offline message receiving group.
  • the first server acquires the client type in each client information; if the online/offline message receiving group includes at least one packet, according to the client type and the correspondence between each group and each client information Client type, adding each client information to the corresponding group; if the online/offline message receiving group does not include the grouping, at least one group is created, according to the client type and the correspondence between each group and each The client type in the client information, adding each client information to the corresponding group.
  • the second server receives an exit request sent by the client for requesting to exit the online message receiving group, and the exit request is sent when the client feeds back the rejection information according to the query information sent by the first server, and the rejection information is used for indicating The client information of the client is refused to be added to the online/offline message receiving group; the second server deletes the client information of the client in the online message receiving group.
  • the first server When the first server receives the message sent by any one of the online/offline message receiving groups, the first server sends the message to each client in the online/offline message receiving group that is online and is offline. Each client.
  • the message sending method adds the obtained client information to the online/offline message receiving group; when receiving any one of the online/offline message receiving groups
  • the message is sent to each client in the online/offline message receiving group that is online and each client in the offline state, and the client can send the message from only supporting each client in the online state.
  • the online message receiving group is imported into an online/offline message receiving group that supports sending messages to each client in the online state and each client in the offline state, so that the client can receive the message when the client is offline. The effect of expanding the transmission range of the message is achieved.
  • the client information can be directly added to the corresponding group without requiring the user to connect the client.
  • the information is added to the first group, and the client information in the first group is grouped one by one, which improves the grouping efficiency of the client information.
  • FIG. 4 is a structural diagram of a message sending apparatus provided by an embodiment of the present application.
  • the message sending apparatus may be applied to a server that creates an online/offline message receiving group and an online message receiving group.
  • the online message receiving group only supports sending messages to each client in the online message receiving group that is online, and the online/offline message receiving group supports simultaneously to the online/offline message receiving group in the online state of each client and Individual clients that are offline are sending interest.
  • the message sending device includes:
  • the information obtaining module 401 is configured to obtain client information of each client in the online message receiving group.
  • the information adding module 402 is configured to add, to the online/offline message receiving group, each client information acquired by the information acquiring module 401;
  • the message sending and receiving module 403 is configured to: when receiving the message sent by any one of the line/offline message receiving groups added by the information adding module 402, send the message to the online/offline message receiving group that is online. Individual clients and individual clients that are offline.
  • the message sending apparatus adds the obtained client information to the online/offline message receiving group; when receiving any one of the online/offline message receiving group
  • the message is sent to each client in the online/offline message receiving group that is online and each client in the offline state, and the client can send the message from only supporting each client in the online state.
  • the online message receiving group is imported into an online/offline message receiving group that supports sending messages to each client in the online state and each client in the offline state, so that the client can receive the message when the client is offline. The effect of expanding the transmission range of the message is achieved.
  • FIG. 5 is a structural diagram of a message sending apparatus according to still another embodiment of the present application.
  • the message sending apparatus can be applied to a server that creates an online/offline message receiving group and an online message receiving group.
  • the online message receiving group only supports sending messages to each client in the online message receiving group that is online, and the online/offline message receiving group supports simultaneously to the online/offline message receiving group in the online state of each client.
  • the message sending device includes: an information acquiring module 401, an information adding module 402, and a message transmitting and receiving module 403.
  • the information obtaining module 401 is configured to obtain client information of each client in the online message receiving group.
  • the information adding module 402 is configured to add, to the online/offline message receiving group, each client information acquired by the information acquiring module 401;
  • the message sending and receiving module 403 is configured to: when receiving the message sent by any one of the line/offline message receiving groups added by the information adding module 402, send the message to the online/offline message receiving group that is online. Individual clients and individual clients that are offline.
  • the message sending apparatus further includes:
  • the request receiving module 404 is configured to: before the information obtaining module 401 obtains the client information of each client in the online message receiving group, the first group that is sent by the client and carries the client identifier as the online/offline message receiving group identifier. a group identifier and an addition request of the second group identifier as an online message receiving group identifier;
  • the identifier detecting module 405 is configured to detect, according to the client identifier received by the request receiving module 404 and the first group identifier, whether the client is an administrator client of the online/offline message receiving group, and according to the request receiving module 404, The client identifier and the second group identifier detect whether the client is an administrator client of the online message receiving group;
  • the request response module 406 is configured to respond to the add request when the result detected by the identifier detecting module 405 is that the client is an administrator client of the online/offline message receiving group and the client is an administrator client of the online message receiving group. The step of triggering execution of obtaining client information of each client in the online message receiving group is triggered.
  • the information adding module 402 includes:
  • the second adding unit 4022 is configured to send, to each client, query information whether to join the online/offline message receiving group, and if receiving the confirmation information fed back by the client according to the inquiry information, the client information of the client is determined according to the confirmation information. Add to the online/offline message receiving group.
  • the information adding module 402 is further configured to:
  • adding operation information includes adding and discarding the addition
  • the client information of any of the above clients is added to the online/offline message receiving group.
  • the information adding module 402 further includes:
  • the request receiving unit 4023 is configured to: after the second adding unit 4022 sends the query information of the online/offline message receiving group to each client, the receiving client sends an exit request for requesting to exit the online message receiving group, The exit request is sent when the client feeds back the rejection information according to the inquiry information, and the rejection information is used to indicate that the client information of the client is refused to be added to the online/offline message receiving group;
  • the information deleting unit 4024 is configured to request the receiving unit 4023 to delete the The line message receives the client information of the client in the group.
  • the information adding module 402 includes:
  • the type obtaining unit 4025 is configured to obtain a client type in each client information.
  • the third adding unit 4026 is configured to: if the online/offline message receiving group includes at least one group, according to the client type and the correspondence between the respective groups and the client in each client information acquired by the type obtaining unit 4025 End type, adding each client information to the corresponding group;
  • the fourth adding unit 4027 is configured to: if the online/offline message receiving group does not include the group, create at least one group, according to the client type and the correspondence between the groups, and each client acquired by the type obtaining unit 4025. The client type in the message, adding each client information to the corresponding group.
  • the message sending apparatus further includes:
  • the number obtaining module 407 is configured to: before the response requesting module 406 responds to the adding request, acquire a number of times of successfully responding to the adding request corresponding to the online message receiving group within a predetermined time period;
  • the number-of-times detecting module 408 is configured to detect whether the number of times acquired by the number-of-times obtaining module 407 is less than a predetermined number of thresholds;
  • the response triggering module 409 is configured to trigger the step of executing the response adding request when the number of times detected by the number detecting module 408 is less than a predetermined number of times.
  • the message sending apparatus adds the obtained client information to the online/offline message receiving group; when receiving any one of the online/offline message receiving group
  • the message is sent to each client in the online/offline message receiving group that is online and each client in the offline state, and the client can send the message from only supporting each client in the online state.
  • the online message receiving group is imported into an online/offline message receiving group that supports sending messages to each client in the online state and each client in the offline state, so that the client can receive the message when the client is offline. The effect of expanding the transmission range of the message is achieved.
  • the client information can be directly added to the corresponding group without requiring the user to connect the client.
  • the information is added to the first group, and the client information in the first group is grouped one by one, which improves the grouping efficiency of the client information.
  • FIG. 6 is a structural diagram of a server provided by an embodiment of the present application.
  • the server is configured with an online/offline message receiving group and an online message receiving group, and the online message receiving group only supports receiving online messages.
  • Each client in the group that is online is sent a message
  • the online/offline message receiving group supports simultaneously sending messages to each client in the online/offline message receiving group that is online and each client in the offline state
  • the server includes a processor 510 and a transceiver 520, wherein:
  • the processor 510 is configured to obtain client information of each client in the online message receiving group.
  • the processor 510 is further configured to add, to the online/offline message receiving group, each client information acquired by the processor 510;
  • the transceiver 520 is configured to: when receiving a message sent by any one of the online/offline message receiving groups, send the message to each client in the online/offline message receiving group that is online and in an offline state. Each client.
  • the transceiver 520 is further configured to receive, by the client, the first group identifier that carries the client identifier, the online/offline message receiving group identifier, and the second group that is the online message receiving group identifier. Add request for the identity;
  • the processor 510 is further configured to detect, according to the client identifier and the first group identifier sent by the transceiver 520, whether the client is an administrator client of the online/offline message receiving group, and according to the client sent by the transceiver 520.
  • the identifier and the second group identifier are used to detect whether the client is an administrator client of the online message receiving group; if the detection result is that the client is an administrator client of the online/offline message receiving group and the client is an online message receiving
  • the administrator client of the group in response to the add request, triggers the step of obtaining the client information of each client in the online message receiving group.
  • the processor 510 is configured to: after the transceiver 520 sends, to each client, whether to join the inquiry information of the online/offline message receiving group, if the confirmation information fed back by the client according to the inquiry information is received, according to the confirmation The information adds the client's client information to the online/offline message receiving group.
  • the server further includes a memory
  • the processor 510 is further configured to: within a preset duration from when the transceiver 520 sends the inquiry information, The transmitter 520 does not receive the confirmation information or the rejection information fed back by any of the clients, and determines the corresponding one of the clients according to the corresponding relationship between the client and the added operation information stored in the memory.
  • Adding operation information, adding operation information includes adding and discarding the addition; if the first adding operation information is adding, adding the client information of any of the above clients to the online/offline message receiving group.
  • the transceiver 520 is further configured to receive an exit request sent by the client for requesting to exit the online message receiving group, where the exit request is sent when the client feeds back the rejection information according to the query information, and the rejection information is used to indicate the processing.
  • the device 510 refuses to add the client information of the client to the online/offline message receiving group;
  • the processor 510 is further configured to delete client information of the client in the online message receiving group.
  • the processor 510 is further configured to acquire a client type in each client information; if the online/offline message receiving group includes at least one packet, according to a type of the client stored in the memory and between the respective groups Corresponding relationship and client type in each client information acquired by the processor 510, adding each client information to the corresponding group; if the online/offline message receiving group does not include the group, creating at least one group Each client information is added to the corresponding packet according to the client type of the memory storage and the correspondence between the respective groups and the client type in each client information acquired by the processor 510.
  • the processor 510 is further configured to: acquire a number of times of successfully responding to the online message receiving group by the adding request in the predetermined time period; whether the number of times of detection is less than a predetermined number of times threshold; if the detection result is that the number of times is less than a predetermined number of times, triggering Perform the steps to add a request to the response.
  • the message sending method adds the obtained client information to the online/offline message receiving group; when receiving any one of the online/offline message receiving groups
  • the message is sent to each client in the online/offline message receiving group that is online and each client in the offline state, and the client can send the message from only supporting each client in the online state.
  • the online message receiving group is imported into an online/offline message receiving group that supports sending messages to each client in the online state and each client in the offline state, so that the client can receive the message when the client is offline. The effect of expanding the transmission range of the message is achieved.
  • the client information can be directly added to the corresponding group without requiring the user to connect the client.
  • the information is added to the first group, and the client information in the first group is grouped one by one, which improves the grouping efficiency of the client information.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Abstract

Embodiments of the present invention relate to the technical field of computers. Disclosed are a method, device, and server for message transmission. The method comprises: acquiring client information of clients in an online message recipient group; adding the client information into an online/offline message recipient group; and, when a message transmitted by any one client in the online/offline message recipient group is received, transmitting the message to clients that are in an online state and clients that are in an offline state in the online/offline message recipient group. Employment of the embodiments of the present invention allows for expanded range of message transmission.

Description

消息发送方法、装置及服务器Message sending method, device and server
本申请要求于2013年12月26日提交中国专利局、申请号为201310738939.3、发明名称为“消息发送方法、装置及服务器”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201310738939.3, entitled "Sending Method, Apparatus, and Server", filed on December 26, 2013, the entire contents of which is incorporated herein by reference. .
技术领域Technical field
本申请实施例涉及计算机技术领域,特别涉及一种消息发送方法、装置及服务器。The embodiments of the present invention relate to the field of computer technologies, and in particular, to a message sending method, apparatus, and server.
背景技术Background technique
团队语音工具是一种支持多人在线语音通信以及视频通信的网络工具。团队语音工具通常按照频道(也称房间)来划分团队,每个频道包括至少一个管理员客户端和至少一个用户客户端,管理员客户端和用户客户端之间可以通过发送消息来实现交流。Team Voice Tools is a web tool that supports multiplayer online voice communication as well as video communication. Team voice tools usually divide teams according to channels (also called rooms). Each channel includes at least one administrator client and at least one user client. The administrator client and the client client can communicate by sending messages.
现有的一种消息发送方法包括:客户端将消息和客户端标识发送给服务器,服务器根据客户端标识确定客户端所在的频道,向该频道中处于在线状态的各个其他客户端广播该消息,以实现客户端与频道中其他客户端之间的通信。其中,客户端包括管理员客户端和用户客户端。An existing method for sending a message includes: the client sends the message and the client identifier to the server, and the server determines the channel where the client is located according to the client identifier, and broadcasts the message to each other client in the channel that is online. To achieve communication between the client and other clients in the channel. Among them, the client includes an administrator client and a user client.
发明人在实现本申请实施例的过程中,发现现有技术中至少存在以下缺陷:In the process of implementing the embodiments of the present application, the inventors found that at least the following defects exist in the prior art:
由于服务器只能向该频道中处于在线状态的各个其他客户端发送消息,导致该频道中处于离线状态的其他客户端接收不到客户端发送的消息,影响了消息的传输范围。Since the server can only send messages to various other clients in the channel that are online, the other clients in the channel that are offline can not receive the messages sent by the client, which affects the transmission range of the message.
发明内容Summary of the invention
为了解决频道中处于离线状态的客户端不能接收到消息,影响了消息的传输范围的问题,本申请实施例提供了一种消息发送方法、装置及服务器。所述技术方案如下: In order to solve the problem that the client in the offline state in the channel cannot receive the message and affects the transmission range of the message, the embodiment of the present application provides a message sending method, device, and server. The technical solution is as follows:
第一方面,本申请实施例提供了一种消息发送方法,用于创建有在线/离线消息接收群组和在线消息接收群组的服务器中,所述在线消息接收群组仅支持向所述在线消息接收群组中处于在线状态的各个客户端发送消息,所述在线/离线消息接收群组支持同时向所述在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端发送消息,所述方法包括:In a first aspect, the embodiment of the present application provides a message sending method, for creating a server having an online/offline message receiving group and an online message receiving group, where the online message receiving group only supports the online Each client in the online receiving state in the message receiving group sends a message, and the online/offline message receiving group supports simultaneously receiving each of the online and offline clients in the online/offline message receiving group and each of the offline states. The client sends a message, and the method includes:
获取所述在线消息接收群组中各个客户端的客户端信息;Obtaining client information of each client in the online message receiving group;
将获取到的各个客户端信息添加到所述在线/离线消息接收群组中;Adding each obtained client information to the online/offline message receiving group;
当接收到所述在线/离线消息接收群组中任意一个客户端发送的消息时,将所述消息发送给所述在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端。When receiving a message sent by any one of the online/offline message receiving groups, sending the message to each client in the online/offline message receiving group that is online and in an offline state Each client.
第二方面,本申请实施例提供了一种消息发送装置,用于创建有在线/离线消息接收群组和在线消息接收群组的服务器中,所述在线消息接收群组仅支持向所述在线消息接收群组中处于在线状态的各个客户端发送消息,所述在线/离线消息接收群组支持同时向所述在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端发送消息,所述装置包括:In a second aspect, the embodiment of the present application provides a message sending apparatus, configured to create a server having an online/offline message receiving group and an online message receiving group, where the online message receiving group only supports the online Each client in the online receiving state in the message receiving group sends a message, and the online/offline message receiving group supports simultaneously receiving each of the online and offline clients in the online/offline message receiving group and each of the offline states. The client sends a message, and the device includes:
信息获取模块,用于获取所述在线消息接收群组中各个客户端的客户端信息;An information obtaining module, configured to acquire client information of each client in the online message receiving group;
信息添加模块,用于将所述信息获取模块获取到的各个客户端信息添加到所述在线/离线消息接收群组中;An information adding module, configured to add, to the online/offline message receiving group, each client information acquired by the information acquiring module;
消息收发模块,用于当接收到所述信息添加模块添加后的线/离线消息接收群组中任意一个客户端发送的消息时,将所述消息发送给所述在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端。a message sending and receiving module, configured to send the message to the online/offline message receiving group when receiving a message sent by any one of the line/offline message receiving groups added by the information adding module Individual clients that are online and individual clients that are offline.
第三方面,本申请实施例提供了一种服务器,所述服务器创建有在线/离线消息接收群组和在线消息接收群组,所述服务器包括如第二方面所述的消息发送装置。In a third aspect, the embodiment of the present application provides a server, where the server is configured with an online/offline message receiving group and an online message receiving group, and the server includes the message sending device according to the second aspect.
第四方面,本申请实施例提供了一种服务器,其特征在于,所述服务器创建有在线/离线消息接收群组和在线消息接收群组,所述在线消息接收群组仅支持向所述在线消息接收群组中处于在线状态的各个客户端发送消息,所述在线/离线消息接收群组支持同时向所述在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端发送消息,所述服务器包括处理器和收发器,其中: In a fourth aspect, the embodiment of the present application provides a server, where the server is configured to have an online/offline message receiving group and an online message receiving group, and the online message receiving group only supports the online Each client in the online receiving state in the message receiving group sends a message, and the online/offline message receiving group supports simultaneously receiving each of the online and offline clients in the online/offline message receiving group and each of the offline states. The client sends a message, the server including a processor and a transceiver, wherein:
所述处理器,用于获取所述在线消息接收群组中各个客户端的客户端信息;The processor is configured to obtain client information of each client in the online message receiving group;
所述处理器,还用于将获取到的各个客户端信息添加到所述在线/离线消息接收群组中;The processor is further configured to add the obtained individual client information to the online/offline message receiving group;
所述收发器,用于当接收到所述在线/离线消息接收群组中任意一个客户端发送的消息时,将所述消息发送给所述在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端。The transceiver is configured to: when receiving a message sent by any one of the online/offline message receiving groups, send the message to each of the online/offline message receiving groups that are in an online state Clients and individual clients that are offline.
通过将获取到的各个客户端信息添加到在线/离线消息接收群组中;当接收到在线/离线消息接收群组中任意一个客户端发送的消息时,将消息发送给在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端,可以将客户端从仅支持向处于在线状态的各个客户端发送消息的在线消息接收群组导入到支持同时向处于在线状态的各个客户端和处于离线状态的各个客户端发送消息的在线/离线消息接收群组中,使客户端处于离线状态时也能够接收消息,达到了扩大消息的传输范围的效果。By adding the obtained individual client information to the online/offline message receiving group; when receiving the message sent by any one of the online/offline message receiving groups, sending the message to the online/offline message receiving group Each client in the group that is online and each client in the offline state can import the client from the online message receiving group that only supports sending messages to each client in the online state to support while being online. The online/offline message receiving group in which each client and each client in the offline state sends a message enables the client to receive the message when the client is offline, thereby achieving the effect of expanding the transmission range of the message.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work.
图1是本申请实施例所涉及的团队语音工具的结构示意图;1 is a schematic structural diagram of a team voice tool according to an embodiment of the present application;
图2是本申请一个实施例提供的消息发送方法的方法流程图;2 is a flowchart of a method for sending a message according to an embodiment of the present application;
图3是本申请另一实施例提供的消息发送方法的方法流程图;3 is a flowchart of a method for sending a message according to another embodiment of the present application;
图4是本申请一个实施例提供的消息发送装置的结构框架图;4 is a structural block diagram of a message sending apparatus according to an embodiment of the present application;
图5是本申请再一实施例提供的消息发送装置的结构框架图;FIG. 5 is a structural structural diagram of a message sending apparatus according to still another embodiment of the present application; FIG.
图6是本申请再一实施例提供的服务器的结构框架图。FIG. 6 is a structural structural diagram of a server according to still another embodiment of the present application.
具体实施方式detailed description
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施例的实施方式作进一步地详细描述。 The embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
请参考图1,其示出了本申请实施例所涉及的团队语音工具的结构示意图。团队语音工具通常包括至少一个客户端110和服务器120。Please refer to FIG. 1 , which is a schematic structural diagram of a team voice tool according to an embodiment of the present application. The team voice tool typically includes at least one client 110 and server 120.
客户端110可以为诸如电脑,智能手机、平板电脑和电子书阅读器之类的电子设备。该电子设备可以安装有团队语音工具的应用程序客户端,或者安装有浏览器,然后通过浏览器访问团队语音工具的网页客户端。客户端110可以根据用户的不同而分为:管理员使用的管理员客户端和观众使用的用户客户端。其中,管理员客户端是具有管理频道的权限的用户,除此之外,管理员使用的客户端和观众使用的客户端基本相同,一个团队语音工具中有一个到多个客户端,比如百万个客户端或者千万个客户端。 Client 110 can be an electronic device such as a computer, smart phone, tablet, and e-book reader. The electronic device can be installed with an application client of the team voice tool, or a web browser with a browser installed and then accessing the team voice tool through a browser. The client 110 can be classified according to the user: the administrator client used by the administrator and the user client used by the viewer. The administrator client is a user with the authority to manage the channel. In addition, the client used by the administrator and the client are basically the same, and one team voice tool has one to multiple clients, such as one hundred. Ten thousand clients or ten million clients.
服务器120可以通过无线或者有线网络和客户端110相连。服务器120可以是一台或者多台服务器,还可以是一个云计算中心。换句话说,服务器120可以由一台服务器实现;也可以由多台服务器组合实现,每台服务器承担相同或者不同的功能,比如有用于注册和登录的服务器、用于保存用户头像的服务器、用于保存频道信息及配置信息的服务器、用于保存图片或视频的服务器等等;服务器120也可以采用云计算中心实现,云计算中心是一整片服务集群所形成的虚拟计算平台。 Server 120 can be coupled to client 110 via a wireless or wired network. The server 120 can be one or more servers or a cloud computing center. In other words, the server 120 can be implemented by one server; it can also be implemented by a combination of multiple servers, each of which assumes the same or different functions, such as a server for registration and login, a server for saving user avatars, and The server for saving channel information and configuration information, the server for saving pictures or videos, and the like; the server 120 can also be implemented by a cloud computing center, which is a virtual computing platform formed by a whole service cluster.
本实施例中,由于服务器120创建有在线消息接收群组和在线/离线消息接收群组,因此,可以是一台服务器同时创建有在线消息接收群组和在线/离线消息接收群组;也可以是一台服务器创建有在线消息接收群组,另一台服务器创建有在线/离线消息接收群组。In this embodiment, since the server 120 creates an online message receiving group and an online/offline message receiving group, one server may simultaneously create an online message receiving group and an online/offline message receiving group; One server is created with an online message receiving group, and the other server is created with an online/offline message receiving group.
请参考图2,其示出了本申请一个实施例提供的消息发送方法的方法流程图,该消息发送方法可以应用于创建有在线/离线消息接收群组和在线消息接收群组的服务器中,在线消息接收群组仅支持向在线消息接收群组中处于在线状态的各个客户端发送消息,在线/离线消息接收群组支持同时向在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端发送消息。该消息发送方法,包括:Please refer to FIG. 2, which is a flowchart of a method for sending a message according to an embodiment of the present application. The message sending method may be applied to a server that creates an online/offline message receiving group and an online message receiving group. The online message receiving group only supports sending messages to each client in the online message receiving group that is online, and the online/offline message receiving group supports simultaneously to the online/offline message receiving group in the online state of each client and Each client that is offline sends a message. The message sending method includes:
步骤201,获取在线消息接收群组中各个客户端的客户端信息;Step 201: Obtain client information of each client in the online message receiving group.
在线消息接收群组是仅支持向在线消息接收群组中处于在线状态的客户端发送消息的群组,比如,在线消息接收群组可以是当前正在进行内容直播的频道,频道通常采用的信息发送机制是消息广播的机制,即将频道中的某个客 户端发送的消息,广播给该频道中处于在线状态的客户端。在线/离线消息接收群组是可以支持同时向在线/离线消息接收群组中处于在线状态的客户端和处于离线状态的客户端发送消息的群组,比如,在线/离线消息接收群组可以是即时通信群组,例如Y群(YY语音工具中创建的群组),即时通信群组通常采用的信息发送机制中除包含消息广播的机制外,还包含有离线信息传送机制,即将即时通信群组中某个客户端发送的消息,广播给即时通信群组中处于在线状态的客户端,同时,还通过离线信息传送机制将该消息传送给处于离线状态的客户端。The online message receiving group is a group that only supports sending messages to the online party in the online message receiving group. For example, the online message receiving group may be a channel in which the content is currently being broadcasted, and the channel usually uses the information to be sent. Mechanism is the mechanism of message broadcasting, that is, a guest in the channel The message sent by the client is broadcast to the client in the channel that is online. The online/offline message receiving group is a group that can support simultaneous sending of messages to the online and offline clients in the online/offline message receiving group, for example, the online/offline message receiving group can be Instant messaging groups, such as the Y group (groups created in the YY voice tool), the information transmission mechanism usually used by the instant messaging group includes an offline information transmission mechanism, that is, an instant communication group. The message sent by a certain client in the group is broadcasted to the online client in the instant messaging group, and the message is also transmitted to the offline client through the offline information transmission mechanism.
客户端信息是客户端中登录的账户的信息,包括用户账号、个人昵称、用户在在线消息接收群组中的等级信息等。The client information is information of the account that is logged in the client, including the user account, the personal nickname, and the level information of the user in the online message receiving group.
步骤202,将获取到的各个客户端信息添加到在线/离线消息接收群组中;Step 202: Add the obtained client information to the online/offline message receiving group.
由于在线消息接收群组中处于离线状态的客户端不能接收到消息,因此,可以将在线消息接收群组中的各个客户端的客户端信息添加到在线/离线消息接收群组中,通过在线/离线消息接收群组向处于在线状态的客户端和处于离线状态的客户端发送消息,使处于离线状态的客户端也可以接收到消息,这样,可以将属于在线消息接收群组(如当前正在进行内容直播的频道)的客户端信息导入到在线/离线消息接收群组(如Y群)中,可以达到扩大消息的传输范围的目的。Since the offline party in the online message receiving group cannot receive the message, the client information of each client in the online message receiving group can be added to the online/offline message receiving group through online/offline. The message receiving group sends a message to the client in the online state and the client in the offline state, so that the client in the offline state can also receive the message, so that the online message receiving group can be belonged (if the content is currently in progress) The client information of the live channel is imported into the online/offline message receiving group (such as the Y group), and the transmission range of the message can be expanded.
步骤203,当接收到在线/离线消息接收群组中任意一个客户端发送的消息时,将该消息发送给在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端。Step 203: When receiving a message sent by any one of the online/offline message receiving groups, the message is sent to each client in the online/offline message receiving group that is online and each client in the offline state. end.
与添加到在线/离线消息接收群组中的客户端信息对应的客户端可以向服务器发送消息,服务器将接收到的消息发送给在线/离线消息接收群组中的处于在线状态的各个客户端和处于离线状态的各个客户端。The client corresponding to the client information added to the online/offline message receiving group may send a message to the server, and the server sends the received message to each of the online clients in the online/offline message receiving group and Individual clients that are offline.
综上所述,本申请实施例提供的消息发送方法,通过将获取到的各个客户端信息添加到在线/离线消息接收群组中;当接收到在线/离线消息接收群组中任意一个客户端发送的消息时,将消息发送给在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端,可以将客户端从仅支持向处于在线状态的各个客户端发送消息的在线消息接收群组导入到支持同时向处于在线状态的各个客户端和处于离线状态的各个客户端发送消息的在线/离线消息接收群组中,使客户端处于离线状态时也能够接收消息,达到了扩大消 息的传输范围的效果。In summary, the message sending method provided by the embodiment of the present application adds the obtained client information to the online/offline message receiving group; when receiving any one of the online/offline message receiving groups When the message is sent, the message is sent to each client in the online/offline message receiving group that is online and each client in the offline state, and the client can send the message from only supporting each client in the online state. The online message receiving group is imported into an online/offline message receiving group that supports sending messages to each client in the online state and each client in the offline state, so that the client can receive the message when the client is offline. Achieved expansion The effect of the transmission range of interest.
请参考图3,其示出了本申请另一实施例提供的消息发送方法的方法流程图,该消息发送方法可以应用于创建有在线/离线消息接收群组和在线消息接收群组的服务器中,在线消息接收群组仅支持向在线消息接收群组中处于在线状态的各个客户端发送消息,在线/离线消息接收群组支持同时向在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端发送消息。该消息发送方法,包括:Please refer to FIG. 3, which is a flowchart of a method for sending a message according to another embodiment of the present application. The message sending method may be applied to a server that creates an online/offline message receiving group and an online message receiving group. The online message receiving group only supports sending messages to each client in the online message receiving group that is online, and the online/offline message receiving group supports simultaneously to the online/offline message receiving group in the online state of each client. Send messages to each client that is offline. The message sending method includes:
步骤301,接收客户端发送的携带有客户端标识、作为在线/离线消息接收群组标识的第一群组标识和作为在线消息接收群组标识的第二群组标识的添加请求;Step 301: Receive an add request that is sent by the client, carrying the client identifier, the first group identifier that is the online/offline message receiving group identifier, and the second group identifier that is the online message receiving group identifier.
第一群组标识用于标识在线消息接收群组,在线消息接收群组是仅支持向在线消息接收群组中处于在线状态的客户端发送消息的群组,比如,在线消息接收群组可以是当前正在进行内容直播的频道,频道通常采用的信息发送机制是消息广播的机制,即将频道中的某个客户端发送的消息,广播给该频道中处于在线状态的客户端。第二群组标识用于标识在线/离线消息接收群组,在线/离线消息接收群组是可以支持同时向在线/离线消息接收群组中处于在线状态的客户端和处于离线状态的客户端发送消息的群组,比如,在线/离线消息接收群组可以是即时通信群组,例如Y群(YY语音工具中创建的群组),即时通信群组通常采用的信息发送机制中除包含消息广播的机制外,还包含有离线信息传送机制,即将即时通信群组中某个客户端发送的消息,广播给即时通信群组中处于在线状态的客户端,同时,还通过离线信息传送机制将该消息传送给处于离线状态的客户端。The first group identifier is used to identify an online message receiving group, and the online message receiving group is a group that only supports sending a message to a client in an online message receiving group that is online. For example, the online message receiving group may be The channel currently being broadcasted by the content is usually a message broadcast mechanism. The message sent by a client in the channel is broadcast to the client in the channel that is online. The second group identifier is used to identify an online/offline message receiving group, and the online/offline message receiving group can support sending to both the online and offline clients in the online/offline message receiving group. The group of messages, for example, the online/offline message receiving group may be an instant communication group, such as a group Y (a group created in the YY voice tool), and the information transmission mechanism usually adopted by the instant communication group includes a message broadcast. In addition to the mechanism, the offline information transmission mechanism is also included, that is, the message sent by a client in the instant communication group is broadcasted to the online client in the instant communication group, and the offline information transmission mechanism is also adopted. The message is delivered to the client that is offline.
由于在线消息接收群组中处于离线状态的客户端不能接收到消息,因此,可以将在线消息接收群组中的各个客户端的客户端信息添加到在线/离线消息接收群组中,通过在线/离线消息接收群组向处于在线状态的客户端和处于离线状态的客户端发送消息,使处于离线状态的客户端也可以接收到消息,以扩大消息的传输范围。其中,客户端信息是客户端中登录的账户的信息,包括用户账号、个人昵称、用户在在线消息接收群组中的等级信息等。Since the offline party in the online message receiving group cannot receive the message, the client information of each client in the online message receiving group can be added to the online/offline message receiving group through online/offline. The message receiving group sends a message to the client in the online state and the client in the offline state, so that the client in the offline state can also receive the message to expand the transmission range of the message. The client information is information about the account that is logged in the client, including the user account, the personal nickname, and the level information of the user in the online message receiving group.
本实施例中,服务器可以自动将在线消息接收群组中的各个客户端信息添 加到在线/离线消息接收群组中;或,服务器也可以在客户端的触发下将在线消息接收群组中的各个客户端信息添加到在线/离线消息接收群组中,比如,客户端向服务器发送添加请求,服务器根据添加请求触发对客户端信息的添加操作。In this embodiment, the server can automatically add the information of each client in the online message receiving group. Adding to the online/offline message receiving group; or the server may also add each client information in the online message receiving group to the online/offline message receiving group under the trigger of the client, for example, the client to the server Sending an add request, the server triggers the addition of the client information according to the add request.
在服务器触发对客户端信息的添加操作时,为了明确触发添加操作的客户端以及在线消息接收群组和在线/离线消息接收群组,需要在添加请求中携带客户端标识、第一群组标识和第二群组标识。When the server triggers the adding operation of the client information, in order to explicitly identify the client that triggers the adding operation, and the online message receiving group and the online/offline message receiving group, the client identifier and the first group identifier are required to be carried in the adding request. And a second group identifier.
步骤302,根据客户端标识和第一群组标识检测客户端是否是在线/离线消息接收群组的管理员客户端,并根据客户端标识和第二群组标识检测客户端是否是在线消息接收群组的管理员客户端;Step 302: Detect, according to the client identifier and the first group identifier, whether the client is an administrator client of the online/offline message receiving group, and detect whether the client is an online message receiving according to the client identifier and the second group identifier. Group administrator client;
服务器可以在接收到任意一个客户端发送的添加请求时触发对客户端信息的添加,或,为了避免任意一个客户端都能发送添加请求触发对客户端信息的添加造成的增加添加操作的次数,浪费服务器的资源的问题,服务器还可以限定触发对客户端信息的添加的客户端。比如,服务器可以限定客户端是在线消息接收群组的管理员客户端和客户端是在线/离线消息接收群组的管理员客户端中的至少一种。The server may trigger the addition of the client information when receiving an add request sent by any client, or, in order to prevent any client from sending an add request, triggering an increase in the number of add operations caused by the addition of the client information, The problem of wasting server resources, the server can also define clients that trigger the addition of client information. For example, the server may define at least one of an administrator client whose client is an online message receiving group and an administrator client whose client is an online/offline message receiving group.
本实施例以客户端同时是在线消息接收群组和在线/离线消息接收群组的管理员客户端为例进行说明,则服务器可以分别检测客户端是否是在线/离线消息接收群组的管理员客户端以及客户端是否是在线消息接收群组的管理员客户端。In this embodiment, the client is an administrator of the online message receiving group and the online/offline message receiving group, and the server may separately detect whether the client is an administrator of the online/offline message receiving group. Whether the client and the client are the administrator clients of the online message receiving group.
为了便于理解,本实施例具体以服务器检测客户端是否是在线消息接收群组的管理员客户端来说明。服务器在管理员客户端触发创建在线消息接收群组时设置并记录管理员客户端的角色值,并获取客户端标识所标识的客户端的角色值,检测客户端的角色值是否等于管理员客户端的角色值。若客户端的角色值等于管理员客户端的角色值,则确定客户端是在线消息接收群组的管理员客户端;若客户端的角色值不等于管理员客户端的角色值,则确定客户端不是在线消息接收群组的管理员客户端。同理,服务器也可以根据角色值检测客户端是否是在线/离线消息接收群组的管理员客户端。For ease of understanding, the embodiment is specifically described by the server detecting whether the client is an administrator client of the online message receiving group. The server sets and records the role value of the administrator client when the administrator client triggers the creation of the online message receiving group, and obtains the role value of the client identified by the client identifier, and detects whether the role value of the client is equal to the role value of the administrator client. . If the role value of the client is equal to the role value of the administrator client, it is determined that the client is an administrator client of the online message receiving group; if the role value of the client is not equal to the role value of the administrator client, it is determined that the client is not an online message. Receive the administrator client for the group. Similarly, the server can also detect whether the client is an administrator client of the online/offline message receiving group according to the role value.
步骤303,若检测结果为客户端是在线/离线消息接收群组的管理员客户端且客户端是在线消息接收群组的管理员客户端,则响应添加请求,触发执行步骤304; Step 303, if the detection result is that the client is the administrator client of the online/offline message receiving group and the client is the administrator client of the online message receiving group, then in response to the adding request, step 304 is performed;
若检测出客户端是在线/离线消息接收群组的管理员客户端且客户端是在线消息接收群组的管理员客户端,则服务器确定响应客户端发送的添加请求。If it is detected that the client is an administrator client of the online/offline message receiving group and the client is an administrator client of the online message receiving group, the server determines to respond to the adding request sent by the client.
进一步地,响应添加请求之前,还包括:Further, before responding to the add request, it also includes:
1)获取预定时间段内成功响应对应上述在线消息接收群组的添加请求的次数;1) acquiring the number of times of successfully responding to the addition request corresponding to the online message receiving group in the predetermined time period;
2)检测次数是否小于预定次数阈值;2) Whether the number of detections is less than a predetermined number of thresholds;
3)若检测结果为次数小于预定次数阈值,则触发执行响应添加请求的步骤。3) If the detection result is that the number of times is less than the predetermined number of thresholds, the step of executing the response addition request is triggered.
为了避免服务器多次响应添加请求造成的浪费服务器资源的问题,服务器还可以限定响应添加请求的次数。比如,服务器设置预定时间段内响应任一在线消息接收群组的添加请求的预定次数阈值。其中,预定时间段和预定次数阈值可以进行设置和修改。比如,预定时间段为1周,预定次数阈值为2次。In order to avoid the problem of wasting server resources caused by the server responding to the add request multiple times, the server can also limit the number of times the response is added. For example, the server sets a predetermined number of thresholds for responding to an add request for any online message receiving group within a predetermined time period. The predetermined time period and the predetermined number of thresholds can be set and modified. For example, the predetermined time period is 1 week, and the predetermined number of times threshold is 2 times.
因此,服务器在响应添加请求之前,还需要获取预定时间段内服务器成功响应上述在线消息接收群组的添加请求的次数。若服务器成功响应添加请求的次数小于预定次数阈值,则确定服务器可以响应本次的添加请求,继续执行步骤304;若服务器成功响应添加请求的次数等于预定次数阈值,则确定服务器不能响应本次的添加请求,流程结束。Therefore, before responding to the addition request, the server also needs to acquire the number of times the server successfully responds to the addition request of the online message receiving group within the predetermined time period. If the number of times the server successfully responds to the addition request is less than the predetermined number of thresholds, it is determined that the server may continue to perform step 304 in response to the current addition request; if the number of times the server successfully responds to the addition request is equal to the predetermined number of thresholds, it is determined that the server cannot respond to the current Add the request and the process ends.
步骤304,获取在线消息接收群组中各个客户端的客户端信息;Step 304: Acquire client information of each client in the online message receiving group.
服务器可以根据第一群组标识确定在线消息接收群组,并获取该群组包括的各个客户端的客户端信息。The server may determine an online message receiving group according to the first group identifier, and obtain client information of each client included in the group.
步骤305,将获取到的各个客户端信息添加到在线/离线消息接收群组中;Step 305: Add the obtained client information to the online/offline message receiving group.
本实施例中,服务器可以将在线消息接收群组中的各个客户端信息添加到在线/离线消息接收群组中,而不需要管理员客户端将各个客户端设置为好友客户端,再将好友客户端的客户端信息添加到在线/离线消息接收群组,既保护了客户端之间的隐私,也节省了服务器在设置好友客户端时的处理资源。In this embodiment, the server may add each client information in the online message receiving group to the online/offline message receiving group, without requiring the administrator client to set each client as a friend client, and then the friend. The client's client information is added to the online/offline message receiving group, which not only protects the privacy between the clients, but also saves the processing resources of the server when setting the friend client.
另外,由于在线/离线消息接收群组中添加的是在线消息接收群组中的客户端信息,而不会是其他在线消息接收群组中的客户端信息,可以避免其他在线消息接收群组的客户端对该其他在线消息接收群组的宣传,从而减少了由于宣传退出在线消息接收群组的客户端信息的数量,进而减少了在线消息接收群组中客户端信息的流失。In addition, since the online information in the online message receiving group is added to the client information in the online message receiving group, and not in the other online message receiving group, the other online message receiving group can be avoided. The client advertises the other online message receiving group, thereby reducing the amount of client information that is advertised to exit the online message receiving group, thereby reducing the loss of client information in the online message receiving group.
服务器将获取到的客户端信息添加到在线/离线消息接收群组中的方法具 体如下:The method for the server to add the obtained client information to the online/offline message receiving group The body is as follows:
第一,将获取到的各个客户端信息添加到在线/离线消息接收群组中,包括:First, the obtained client information is added to the online/offline message receiving group, including:
1)将客户端信息直接添加到在线/离线消息接收群组中;和/或,1) Add the client information directly to the online/offline message receiving group; and/or,
2)向每个客户端发送是否加入在线/离线消息接收群组的询问信息,若接收到客户端根据询问信息反馈的确认信息,则根据确认信息将客户端的客户端信息添加到在线/离线消息接收群组中。2) Sending, to each client, the inquiry information of whether to join the online/offline message receiving group, and if receiving the confirmation information fed back by the client according to the inquiry information, adding the client terminal information to the online/offline message according to the confirmation information. In the receiving group.
其中,服务器可以将获取到的各个客户端信息添加到在线/离线消息接收群组中,或,为了避免将客户端直接加入在线/离线消息接收群组造成的对用户的打扰,服务器还可以向客户端发送询问信息,客户端可以根据询问信息展示“同意”和“拒绝”的选项。若用户选择了“同意”选项,则客户端向服务器发送确认信息,服务器将该客户端的客户端信息添加到在线/离线消息接收群组中;若用户选择了“拒绝”选项,则客户端向服务器发送拒绝信息,服务器放弃将该客户端的客户端信息添加到在线/离线消息接收群组中。The server may add the obtained client information to the online/offline message receiving group, or, in order to avoid the user's interruption caused by directly joining the client to the online/offline message receiving group, the server may also The client sends an inquiry message, and the client can display the options of "agree" and "reject" according to the inquiry information. If the user selects the "Agree" option, the client sends a confirmation message to the server, and the server adds the client information of the client to the online/offline message receiving group; if the user selects the "Reject" option, the client The server sends a rejection message, and the server abandons adding the client's client information to the online/offline message receiving group.
进一步地,客户端还可以展示“记住选择”的选项,若用户选择了该选项,则服务器在下次响应添加请求时,可以根据本次的确认信息直接将客户端信息添加到在线/离线消息接收群组中,或,根据本次的拒绝信息直接放弃将客户端信息添加到在线/离线消息接收群组中。Further, the client may also display an option of “remember selection”. If the user selects the option, the server may directly add the client information to the online/offline message according to the confirmation information of the next time when the request is added. In the receiving group, or directly, according to the rejection information of this time, the client information is added to the online/offline message receiving group.
可选地,对于一定时长内没有接收到某客户端反馈的确认信息或拒绝信息的情况,相应的处理方式可以多种多样,以下提供一种可选的处理方式,具体可以包括以下步骤:Optionally, for the case that the confirmation information or the rejection information of the feedback of the client is not received within a certain period of time, the corresponding processing manner may be various. The following provides an optional processing manner, which may include the following steps:
步骤一,如果从发送询问信息开始的预设时长内,未接收到每个客户端中的任一客户端反馈的确认信息或拒绝信息,则根据预先存储的客户端与添加操作信息的对应关系,确定上述任一客户端对应的第一添加操作信息,添加操作信息包括添加和放弃添加。Step 1: If the confirmation information or the rejection information fed back by any client in each client is not received within the preset duration from the time when the inquiry information is sent, according to the correspondence between the pre-stored client and the added operation information And determining the first adding operation information corresponding to any of the foregoing clients, and adding the operation information includes adding and discarding the adding.
在实施中,可以在服务器中预先设置一个接收客户端反馈确认信息或拒绝信息的时长,例如12小时、24小时等,进一步地,可以对在预设时长内没有向服务器反馈确认信息或拒绝信息情况的处理方式进行设置,例如,用户可以对上述情况设定确认加入相应的消息接收群组,相应地,服务器可以记录相应的客户端的添加操作信息为“添加”,或者,也可以由技术人员对上述情况的处理方式进行预先设置。通过上述任一种方式设置完成后,服务器可以得到客户端与添加操作信息的对应关系,并存储,其中,客户端与添加操作信息的对 应关系可以表格的形式存储,如表1所示。In the implementation, a duration of receiving the client feedback confirmation information or the rejection information may be preset in the server, for example, 12 hours, 24 hours, etc. Further, the confirmation information or the rejection information may not be fed back to the server within the preset duration. The processing mode of the situation is set. For example, the user can set the confirmation to join the corresponding message receiving group in the above situation. Accordingly, the server can record the adding operation information of the corresponding client as “adding”, or can be performed by a technician. The processing method of the above case is preset. After the setting is completed in any of the above manners, the server may obtain a correspondence between the client and the added operation information, and store, where the client and the added operation information are paired. The relationship should be stored in the form of a table, as shown in Table 1.
表1Table 1
客户端Client 添加操作信息Add action information
客户端AClient A 放弃添加Give up adding
客户端BClient B 添加Add to
客户端CClient C 添加Add to
服务器可以向在线消息接收群组中的各个客户端发送询问信息,并记录向各个客户端发送询问信息的时间,如果服务器将询问消息发送给某客户端(可称为第一客户端)后,在预设时长内没有接收到第一客户端反馈的确认信息或拒绝信息,服务器可以通过第一客户端的客户端标识,在如上述表1的对应关系中查找,得到该客户端标识对应的添加操作信息,例如,如果第一客户端的客户端标识为客户端B,则通过上述表1可以得到其对应的添加操作信息为“添加”。The server may send the inquiry information to each client in the online message receiving group, and record the time for sending the inquiry information to each client. If the server sends the inquiry message to a client (which may be referred to as the first client), The server does not receive the confirmation information or the rejection information of the first client feedback within the preset duration. The server may search through the corresponding identifier of the first client, and obtain the corresponding identifier of the client identifier. Operation information, for example, if the client identifier of the first client is client B, the corresponding add operation information can be obtained as "add" through the above table 1.
步骤二,若第一添加操作信息为添加,则将上述任一客户端的客户端信息添加到在线/离线消息接收群组。Step 2: If the first added operation information is added, the client information of any of the above clients is added to the online/offline message receiving group.
在实施中,基于步骤一的示例,如果第一客户端的客户端标识为客户端B,则其对应的添加操作信息为“添加”,此时,服务器可以获取第一客户端的客户端信息,并将其添加到在线/离线消息接收群组。如果通过如上述表1的对应关系,得到第一客户端的客户端标识对应的添加操作信息为“放弃添加”,则服务器可以放弃将第一客户端的客户端信息添加到在线/离线消息接收群组,例如,如果第一客户端的客户端标识为客户端A,则其对应的添加操作信息为“放弃添加”,此时,服务器可以放弃将其添加到在线/离线消息接收群组。In an implementation, based on the example of step one, if the client identifier of the first client is client B, the corresponding add operation information is “add”, and at this time, the server may obtain the client information of the first client, and Add it to the online/offline message receiving group. If the adding operation information corresponding to the client identifier of the first client is “abandoned” by the correspondence of the foregoing table 1, the server may abandon adding the client information of the first client to the online/offline message receiving group. For example, if the client identifier of the first client is client A, the corresponding add operation information is “abandon add”, and at this time, the server may abandon adding it to the online/offline message receiving group.
需要补充说明的是,服务器还可以根据客户端的类型确定将客户端信息添加到在线/离线消息接收群组的方式。假设服务器将在线消息接收群组中的客户端划分为管理员客户端和用户客户端,则服务器可以将管理员客户端的客户端信息直接添加到在线/离线消息接收群组中,向用户客户端发送询问信息,将反馈确认信息的用户客户端的客户端信息添加到在线/离线消息接收群组中。It should be added that the server can also determine how to add the client information to the online/offline message receiving group according to the type of the client. Assuming that the server divides the client in the online message receiving group into an administrator client and a user client, the server can directly add the client information of the administrator client to the online/offline message receiving group to the user client. The inquiry information is sent, and the client information of the user client that feeds back the confirmation information is added to the online/offline message receiving group.
进一步地,向每个客户端发送是否加入在线/离线消息接收群组的询问信息之后,还包括:Further, after sending, to each client, whether to join the inquiry information of the online/offline message receiving group, the method further includes:
接收客户端发送的用于请求退出在线消息接收群组的退出请求,退出请求是客户端根据询问信息反馈拒绝信息时发送的,拒绝信息用于指示拒绝将客户 端的客户端信息添加到在线/离线消息接收群组;Receiving an exit request sent by the client for requesting to exit the online message receiving group, the exit request is sent when the client feeds back the rejection information according to the inquiry information, and the rejection information is used to indicate the rejection of the customer. Add client information to the online/offline message receiving group;
删除在线消息接收群组中客户端的客户端信息。Delete the client information of the client in the online message receiving group.
服务器向客户端发送询问信息之后,若用户选择了“拒绝”选项,则客户端还可以提供“退出在线消息接收群组”选项。若用户选择了“退出在线消息接收群组”选项,则客户端向服务器发送退出请求,服务器根据退出请求删除在线消息接收群组中该客户端的客户端信息。客户端可以将拒绝信息和退出信息同时发送给服务器,节省了传输资源。After the server sends the inquiry message to the client, if the user selects the "deny" option, the client can also provide the "exit online message receiving group" option. If the user selects the "Exit Online Message Receiving Group" option, the client sends an exit request to the server, and the server deletes the client information of the client in the online message receiving group according to the exit request. The client can send the rejection information and the exit information to the server at the same time, saving transmission resources.
第二,将获取到的各个客户端信息添加到在线/离线消息接收群组中,包括:Second, the obtained client information is added to the online/offline message receiving group, including:
1)获取每个客户端信息中的客户端类型;1) Get the client type in each client information;
2)若在线/离线消息接收群组包括至少一个分组,则根据客户端类型和各个分组之间的对应关系以及每个客户端信息中的客户端类型,将每个客户端信息添加到对应的分组中;2) If the online/offline message receiving group includes at least one packet, each client information is added to the corresponding one according to the client type and the correspondence between the respective groups and the client type in each client information. In the group;
3)若在线/离线消息接收群组不包括分组,则创建至少一个分组,根据客户端类型和各个分组之间的对应关系以及每个客户端信息中的客户端类型,将每个客户端信息添加到对应的分组中。3) If the online/offline message receiving group does not include the grouping, at least one group is created, and each client information is determined according to the type of the client and the correspondence between the respective groups and the type of the client in each client information. Add to the corresponding group.
由于在线/离线消息接收群组还支持在群组中进行分组,因此,为了避免将各个的客户端信息添加到在线/离线消息接收群组中,再手动对添加的各个客户端信息进行分组造成的分组效率低的问题,服务器还可以将客户端信息自动添加到各个分组中。比如,服务器可以将管理员客户端的客户端信息自动添加到管理分组中。Since the online/offline message receiving group also supports grouping in the group, in order to avoid adding individual client information to the online/offline message receiving group, manually grouping the added individual client information is caused. The problem of low grouping efficiency, the server can also automatically add client information to each group. For example, the server can automatically add client information for the administrator client to the management group.
若在线/离线消息接收群组包括至少一个分组,则服务器可以预先配置客户端类型和分组的对应关系,根据添加的客户端信息中的客户端类型和分组的对应关系确定该客户端信息所属的分组,并将该客户端信息添加到该分组中。If the online/offline message receiving group includes at least one group, the server may pre-configure the correspondence between the client type and the group, and determine, according to the client type and the grouping correspondence in the added client information, the client information belongs to Group and add the client information to the group.
若在线/离线消息接收群组中不包括分组,则服务器可以在将客户端信息添加到在线/离线消息接收群组之前创建至少一个分组,并配置客户端类型和分组的对应关系,根据添加的客户端信息中的客户端类型和分组的对应关系确定该客户端信息所属的分组,并将该客户端信息添加到创建的分组中。If the online/offline message receiving group does not include the packet, the server may create at least one packet before adding the client information to the online/offline message receiving group, and configure the correspondence between the client type and the grouping, according to the added The correspondence between the client type and the packet in the client information determines the group to which the client information belongs, and adds the client information to the created packet.
进一步地,服务器成功将各个客户端信息添加到在线/离线消息接收群组之后,还需要将成功响应添加请求的次数加1。Further, after the server successfully adds each client information to the online/offline message receiving group, it also needs to increase the number of successful response addition requests by one.
步骤306,当接收到在线/离线消息接收群组中任意一个客户端发送的消息时,将该消息发送给在线/离线消息接收群组中处于在线状态的各个客户端和处 于离线状态的各个客户端。Step 306: When receiving a message sent by any one of the online/offline message receiving groups, the message is sent to each client and the online state in the online/offline message receiving group. Each client in offline state.
与添加到在线/离线消息接收群组中的客户端信息对应的客户端可以向服务器发送消息,服务器将接收到的消息发送给在线/离线消息接收群组中的处于在线状态的各个客户端和处于离线状态的各个客户端。The client corresponding to the client information added to the online/offline message receiving group may send a message to the server, and the server sends the received message to each of the online clients in the online/offline message receiving group and Individual clients that are offline.
需要补充说明的是,若一台服务器同时创建了在线消息接收群组和在线/离线消息接收群组,则消息发送方法详见步骤301至步骤306的内容;若一台服务器创建了在线/离线消息接收群组,另一台服务器创建了在线消息接收群组,本实施例将创建了在线/离线消息接收群组的服务器称为第一服务器,将创建了在线消息接收群组的服务器称为第二服务器,则消息发送方法具体如下:It should be noted that if a server simultaneously creates an online message receiving group and an online/offline message receiving group, the message sending method is detailed in steps 301 to 306; if a server creates an online/offline The message receiving group and the other server create an online message receiving group. In this embodiment, the server that creates the online/offline message receiving group is referred to as a first server, and the server that creates the online message receiving group is called a server. The second server, the message sending method is as follows:
1、第一服务器接收客户端发送的携带有客户端标识、作为在线/离线消息接收群组标识的第一群组标识和作为在线消息接收群组标识的第二群组标识的添加请求,根据客户端标识和第一群组标识检测客户端是否是在线/离线消息接收群组的管理员客户端,若检测结果为客户端是在线/离线消息接收群组的管理员客户端,则获取预定时间段内成功响应上述在线消息接收群组的添加请求的次数,检测该次数是否小于预定次数阈值,若检测结果为该次数小于预定次数阈值,则响应添加请求,即第一服务器将携带有客户端标识、第一群组标识和第二群组标识的添加请求发送给第二服务器;1. The first server receives, by the client, an add request that carries the client identifier, the first group identifier that is the online/offline message receiving group identifier, and the second group identifier that is the online message receiving group identifier, according to the The client identifier and the first group identifier detect whether the client is an administrator client of the online/offline message receiving group, and if the detection result is that the client is an administrator client of the online/offline message receiving group, the reservation is obtained. The number of times of successfully responding to the addition request of the online message receiving group in the time period, detecting whether the number of times is less than a predetermined number of thresholds, and if the detection result is that the number of times is less than a predetermined number of thresholds, responding to the adding request, that is, the first server will carry the client Adding an end identifier, a first group identifier, and a second group identifier to the second server;
2、第二服务器根据客户端标识和第二群组标识检测客户端是否是在线消息接收群组的管理员客户端,若检测结果为客户端是在线消息接收群组的管理员客户端,则获取在线消息接收群组中各个客户端的客户端信息,将各个客户端信息发送给第一服务器;2. The second server detects, according to the client identifier and the second group identifier, whether the client is an administrator client of the online message receiving group, and if the detection result is that the client is an administrator client of the online message receiving group, then Obtaining client information of each client in the online message receiving group, and sending each client information to the first server;
3、第一服务器将接收到的各个客户端信息添加到在线/离线消息接收群组中;3. The first server adds the received client information to the online/offline message receiving group;
1)第一服务器将客户端信息直接添加到在线/离线消息接收群组中;和/或,第一服务器向每个客户端发送是否加入在线/离线消息接收群组的询问信息,若接收到客户端根据询问信息反馈的确认信息,则根据确认信息将客户端的客户端信息添加到在线/离线消息接收群组中。1) the first server adds the client information directly to the online/offline message receiving group; and/or, the first server sends to each client whether to join the online/offline message receiving group query information, if received The client adds the client information of the client to the online/offline message receiving group according to the confirmation information according to the confirmation information fed back by the inquiry information.
2)若从发送询问信息开始的预设时长内,第一服务器未接收到每个客户端中的任一客户端反馈的确认信息或拒绝信息,则根据预先存储的客户端与添加操作信息的对应关系,确定上述任一客户端对应的第一添加操作信息,添加操作信息包括添加和放弃添加;若第一添加操作信息为添加,则将上述任一客 户端的客户端信息添加到在线/离线消息接收群组。2) If the first server does not receive the confirmation information or the rejection information fed back by any of the clients in the preset duration from the transmission of the inquiry information, according to the pre-stored client and the added operation information Corresponding relationship, determining the first adding operation information corresponding to any of the foregoing clients, adding the operation information includes adding and discarding the adding; if the first adding operation information is adding, The client information of the client is added to the online/offline message receiving group.
3)第一服务器获取每个客户端信息中的客户端类型;若在线/离线消息接收群组包括至少一个分组,则根据客户端类型和各个分组之间的对应关系以及每个客户端信息中的客户端类型,将每个客户端信息添加到对应的分组中;若在线/离线消息接收群组不包括分组,则创建至少一个分组,根据客户端类型和各个分组之间的对应关系以及每个客户端信息中的客户端类型,将每个客户端信息添加到对应的分组中。3) The first server acquires the client type in each client information; if the online/offline message receiving group includes at least one packet, according to the client type and the correspondence between each group and each client information Client type, adding each client information to the corresponding group; if the online/offline message receiving group does not include the grouping, at least one group is created, according to the client type and the correspondence between each group and each The client type in the client information, adding each client information to the corresponding group.
可选的,第二服务器接收客户端发送的用于请求退出在线消息接收群组的退出请求,退出请求是客户端根据第一服务器发送的询问信息反馈拒绝信息时发送的,拒绝信息用于指示拒绝将客户端的客户端信息添加到在线/离线消息接收群组;第二服务器删除在线消息接收群组中客户端的客户端信息。Optionally, the second server receives an exit request sent by the client for requesting to exit the online message receiving group, and the exit request is sent when the client feeds back the rejection information according to the query information sent by the first server, and the rejection information is used for indicating The client information of the client is refused to be added to the online/offline message receiving group; the second server deletes the client information of the client in the online message receiving group.
4、当第一服务器接收到在线/离线消息接收群组中任意一个客户端发送的消息时,将该消息发送给在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端。4. When the first server receives the message sent by any one of the online/offline message receiving groups, the first server sends the message to each client in the online/offline message receiving group that is online and is offline. Each client.
综上所述,本申请实施例提供的消息发送方法,通过将获取到的各个客户端信息添加到在线/离线消息接收群组中;当接收到在线/离线消息接收群组中任意一个客户端发送的消息时,将消息发送给在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端,可以将客户端从仅支持向处于在线状态的各个客户端发送消息的在线消息接收群组导入到支持同时向处于在线状态的各个客户端和处于离线状态的各个客户端发送消息的在线/离线消息接收群组中,使客户端处于离线状态时也能够接收消息,达到了扩大消息的传输范围的效果。另外,通过根据客户端类型和各个分组之间的对应关系以及客户端类型将客户端信息添加到对应的分组中,可以直接将客户端信息添加到对应的分组中,而不需要用户将客户端信息添加到第一群组,再逐个对第一群组中的客户端信息进行分组,提高了客户端信息的分组效率。In summary, the message sending method provided by the embodiment of the present application adds the obtained client information to the online/offline message receiving group; when receiving any one of the online/offline message receiving groups When the message is sent, the message is sent to each client in the online/offline message receiving group that is online and each client in the offline state, and the client can send the message from only supporting each client in the online state. The online message receiving group is imported into an online/offline message receiving group that supports sending messages to each client in the online state and each client in the offline state, so that the client can receive the message when the client is offline. The effect of expanding the transmission range of the message is achieved. In addition, by adding the client information to the corresponding group according to the client type and the correspondence between the respective groups and the client type, the client information can be directly added to the corresponding group without requiring the user to connect the client. The information is added to the first group, and the client information in the first group is grouped one by one, which improves the grouping efficiency of the client information.
请参考图4,其示出了本申请一个实施例提供的消息发送装置的结构框架图,该消息发送装置可以应用于创建有在线/离线消息接收群组和在线消息接收群组的服务器中,在线消息接收群组仅支持向在线消息接收群组中处于在线状态的各个客户端发送消息,在线/离线消息接收群组支持同时向在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端发送消 息。该消息发送装置,包括:Please refer to FIG. 4, which is a structural diagram of a message sending apparatus provided by an embodiment of the present application. The message sending apparatus may be applied to a server that creates an online/offline message receiving group and an online message receiving group. The online message receiving group only supports sending messages to each client in the online message receiving group that is online, and the online/offline message receiving group supports simultaneously to the online/offline message receiving group in the online state of each client and Individual clients that are offline are sending interest. The message sending device includes:
信息获取模块401,用于获取在线消息接收群组中各个客户端的客户端信息;The information obtaining module 401 is configured to obtain client information of each client in the online message receiving group.
信息添加模块402,用于将信息获取模块401获取到的各个客户端信息添加到在线/离线消息接收群组中;The information adding module 402 is configured to add, to the online/offline message receiving group, each client information acquired by the information acquiring module 401;
消息收发模块403,用于当接收到信息添加模块402添加后的线/离线消息接收群组中任意一个客户端发送的消息时,将消息发送给在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端。The message sending and receiving module 403 is configured to: when receiving the message sent by any one of the line/offline message receiving groups added by the information adding module 402, send the message to the online/offline message receiving group that is online. Individual clients and individual clients that are offline.
综上所述,本申请实施例提供的消息发送装置,通过将获取到的各个客户端信息添加到在线/离线消息接收群组中;当接收到在线/离线消息接收群组中任意一个客户端发送的消息时,将消息发送给在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端,可以将客户端从仅支持向处于在线状态的各个客户端发送消息的在线消息接收群组导入到支持同时向处于在线状态的各个客户端和处于离线状态的各个客户端发送消息的在线/离线消息接收群组中,使客户端处于离线状态时也能够接收消息,达到了扩大消息的传输范围的效果。In summary, the message sending apparatus provided by the embodiment of the present application adds the obtained client information to the online/offline message receiving group; when receiving any one of the online/offline message receiving group When the message is sent, the message is sent to each client in the online/offline message receiving group that is online and each client in the offline state, and the client can send the message from only supporting each client in the online state. The online message receiving group is imported into an online/offline message receiving group that supports sending messages to each client in the online state and each client in the offline state, so that the client can receive the message when the client is offline. The effect of expanding the transmission range of the message is achieved.
请参考图5,其示出了本申请再一实施例提供的消息发送装置的结构框架图,该消息发送装置可以应用于创建有在线/离线消息接收群组和在线消息接收群组的服务器中,在线消息接收群组仅支持向在线消息接收群组中处于在线状态的各个客户端发送消息,在线/离线消息接收群组支持同时向在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端发送消息。该消息发送装置,包括:信息获取模块401、信息添加模块402和消息收发模块403。Please refer to FIG. 5, which is a structural diagram of a message sending apparatus according to still another embodiment of the present application. The message sending apparatus can be applied to a server that creates an online/offline message receiving group and an online message receiving group. The online message receiving group only supports sending messages to each client in the online message receiving group that is online, and the online/offline message receiving group supports simultaneously to the online/offline message receiving group in the online state of each client. Send messages to each client that is offline. The message sending device includes: an information acquiring module 401, an information adding module 402, and a message transmitting and receiving module 403.
信息获取模块401,用于获取在线消息接收群组中各个客户端的客户端信息;The information obtaining module 401 is configured to obtain client information of each client in the online message receiving group.
信息添加模块402,用于将信息获取模块401获取到的各个客户端信息添加到在线/离线消息接收群组中;The information adding module 402 is configured to add, to the online/offline message receiving group, each client information acquired by the information acquiring module 401;
消息收发模块403,用于当接收到信息添加模块402添加后的线/离线消息接收群组中任意一个客户端发送的消息时,将消息发送给在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端。 The message sending and receiving module 403 is configured to: when receiving the message sent by any one of the line/offline message receiving groups added by the information adding module 402, send the message to the online/offline message receiving group that is online. Individual clients and individual clients that are offline.
可选的,该消息发送装置还包括:Optionally, the message sending apparatus further includes:
请求接收模块404,用于信息获取模块401获取在线消息接收群组中各个客户端的客户端信息之前,接收客户端发送的携带有客户端标识、作为在线/离线消息接收群组标识的第一群组标识和作为在线消息接收群组标识的第二群组标识的添加请求;The request receiving module 404 is configured to: before the information obtaining module 401 obtains the client information of each client in the online message receiving group, the first group that is sent by the client and carries the client identifier as the online/offline message receiving group identifier. a group identifier and an addition request of the second group identifier as an online message receiving group identifier;
标识检测模块405,用于根据请求接收模块404接收到的客户端标识和第一群组标识检测客户端是否是在线/离线消息接收群组的管理员客户端,并根据请求接收模块404接收到的客户端标识和第二群组标识检测客户端是否是在线消息接收群组的管理员客户端;The identifier detecting module 405 is configured to detect, according to the client identifier received by the request receiving module 404 and the first group identifier, whether the client is an administrator client of the online/offline message receiving group, and according to the request receiving module 404, The client identifier and the second group identifier detect whether the client is an administrator client of the online message receiving group;
请求响应模块406,用于在标识检测模块405检测的结果为客户端是在线/离线消息接收群组的管理员客户端且客户端是在线消息接收群组的管理员客户端时,响应添加请求,触发执行获取在线消息接收群组中各个客户端的客户端信息的步骤。The request response module 406 is configured to respond to the add request when the result detected by the identifier detecting module 405 is that the client is an administrator client of the online/offline message receiving group and the client is an administrator client of the online message receiving group. The step of triggering execution of obtaining client information of each client in the online message receiving group is triggered.
可选的,信息添加模块402,包括:Optionally, the information adding module 402 includes:
第二添加单元4022,用于向每个客户端发送是否加入在线/离线消息接收群组的询问信息,若接收到客户端根据询问信息反馈的确认信息,则根据确认信息将客户端的客户端信息添加到在线/离线消息接收群组中。The second adding unit 4022 is configured to send, to each client, query information whether to join the online/offline message receiving group, and if receiving the confirmation information fed back by the client according to the inquiry information, the client information of the client is determined according to the confirmation information. Add to the online/offline message receiving group.
可选地,信息添加模块402,还用于:Optionally, the information adding module 402 is further configured to:
若从发送询问信息开始的预设时长内,未接收到每个客户端中的任一客户端反馈的确认信息或拒绝信息,则根据预先存储的客户端与添加操作信息的对应关系,确定上述任一客户端对应的第一添加操作信息,添加操作信息包括添加和放弃添加;If the confirmation information or the rejection information fed back by any client in each client is not received within the preset duration from the time when the inquiry information is sent, the above relationship is determined according to the correspondence between the pre-stored client and the added operation information. The first added operation information corresponding to any client, adding operation information includes adding and discarding the addition;
若第一添加操作信息为添加,则将上述任一客户端的客户端信息添加到在线/离线消息接收群组。If the first added operation information is an add, the client information of any of the above clients is added to the online/offline message receiving group.
可选的,信息添加模块402,还包括:Optionally, the information adding module 402 further includes:
请求接收单元4023,用于第二添加单元4022向每个客户端发送是否加入在线/离线消息接收群组的询问信息之后,接收客户端发送的用于请求退出在线消息接收群组的退出请求,退出请求是客户端根据询问信息反馈拒绝信息时发送的,拒绝信息用于指示拒绝将客户端的客户端信息添加到在线/离线消息接收群组;The request receiving unit 4023 is configured to: after the second adding unit 4022 sends the query information of the online/offline message receiving group to each client, the receiving client sends an exit request for requesting to exit the online message receiving group, The exit request is sent when the client feeds back the rejection information according to the inquiry information, and the rejection information is used to indicate that the client information of the client is refused to be added to the online/offline message receiving group;
信息删除单元4024,用于请求接收单元4023接收到退出请求后,删除在 线消息接收群组中客户端的客户端信息。The information deleting unit 4024 is configured to request the receiving unit 4023 to delete the The line message receives the client information of the client in the group.
可选的,信息添加模块402,包括:Optionally, the information adding module 402 includes:
类型获取单元4025,用于获取每个客户端信息中的客户端类型;The type obtaining unit 4025 is configured to obtain a client type in each client information.
第三添加单元4026,用于若在线/离线消息接收群组包括至少一个分组,则根据客户端类型和各个分组之间的对应关系以及类型获取单元4025获取到的每个客户端信息中的客户端类型,将每个客户端信息添加到对应的分组中;The third adding unit 4026 is configured to: if the online/offline message receiving group includes at least one group, according to the client type and the correspondence between the respective groups and the client in each client information acquired by the type obtaining unit 4025 End type, adding each client information to the corresponding group;
第四添加单元4027,用于若在线/离线消息接收群组不包括分组,则创建至少一个分组,根据客户端类型和各个分组之间的对应关系以及类型获取单元4025获取到的每个客户端信息中的客户端类型,将每个客户端信息添加到对应的分组中。The fourth adding unit 4027 is configured to: if the online/offline message receiving group does not include the group, create at least one group, according to the client type and the correspondence between the groups, and each client acquired by the type obtaining unit 4025. The client type in the message, adding each client information to the corresponding group.
可选的,该消息发送装置还包括:Optionally, the message sending apparatus further includes:
次数获取模块407,用于请求响应模块406响应添加请求之前,获取预定时间段内成功响应对应上述在线消息接收群组的添加请求的次数;The number obtaining module 407 is configured to: before the response requesting module 406 responds to the adding request, acquire a number of times of successfully responding to the adding request corresponding to the online message receiving group within a predetermined time period;
次数检测模块408,用于检测次数获取模块407获取到的次数是否小于预定次数阈值;The number-of-times detecting module 408 is configured to detect whether the number of times acquired by the number-of-times obtaining module 407 is less than a predetermined number of thresholds;
响应触发模块409,用于在次数检测模块408检测的结果为次数小于预定次数阈值时,触发执行响应添加请求的步骤。The response triggering module 409 is configured to trigger the step of executing the response adding request when the number of times detected by the number detecting module 408 is less than a predetermined number of times.
综上所述,本申请实施例提供的消息发送装置,通过将获取到的各个客户端信息添加到在线/离线消息接收群组中;当接收到在线/离线消息接收群组中任意一个客户端发送的消息时,将消息发送给在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端,可以将客户端从仅支持向处于在线状态的各个客户端发送消息的在线消息接收群组导入到支持同时向处于在线状态的各个客户端和处于离线状态的各个客户端发送消息的在线/离线消息接收群组中,使客户端处于离线状态时也能够接收消息,达到了扩大消息的传输范围的效果。另外,通过根据客户端类型和各个分组之间的对应关系以及客户端类型将客户端信息添加到对应的分组中,可以直接将客户端信息添加到对应的分组中,而不需要用户将客户端信息添加到第一群组,再逐个对第一群组中的客户端信息进行分组,提高了客户端信息的分组效率。In summary, the message sending apparatus provided by the embodiment of the present application adds the obtained client information to the online/offline message receiving group; when receiving any one of the online/offline message receiving group When the message is sent, the message is sent to each client in the online/offline message receiving group that is online and each client in the offline state, and the client can send the message from only supporting each client in the online state. The online message receiving group is imported into an online/offline message receiving group that supports sending messages to each client in the online state and each client in the offline state, so that the client can receive the message when the client is offline. The effect of expanding the transmission range of the message is achieved. In addition, by adding the client information to the corresponding group according to the client type and the correspondence between the respective groups and the client type, the client information can be directly added to the corresponding group without requiring the user to connect the client. The information is added to the first group, and the client information in the first group is grouped one by one, which improves the grouping efficiency of the client information.
需要说明的是:上述实施例提供的消息发送装置在进行消息发送时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功 能分配由不同的功能模块完成,即将消息发送装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的消息发送装置与消息发送方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that, when the message sending apparatus provided by the foregoing embodiment performs message transmission, only the division of each functional module described above is used for illustration. In an actual application, the above-mentioned work may be performed as needed. The allocation can be done by different functional modules, that is, the internal structure of the message transmitting device is divided into different functional modules to complete all or part of the functions described above. In addition, the message sending apparatus and the message sending method embodiment provided by the foregoing embodiments are in the same concept, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
请参考图6,其示出了本申请一个实施例提供的服务器的结构框架图,服务器创建有在线/离线消息接收群组和在线消息接收群组,在线消息接收群组仅支持向在线消息接收群组中处于在线状态的各个客户端发送消息,在线/离线消息接收群组支持同时向在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端发送消息,该服务器包括处理器510和收发器520,其中:Please refer to FIG. 6 , which is a structural diagram of a server provided by an embodiment of the present application. The server is configured with an online/offline message receiving group and an online message receiving group, and the online message receiving group only supports receiving online messages. Each client in the group that is online is sent a message, and the online/offline message receiving group supports simultaneously sending messages to each client in the online/offline message receiving group that is online and each client in the offline state, The server includes a processor 510 and a transceiver 520, wherein:
处理器510,用于获取在线消息接收群组中各个客户端的客户端信息;The processor 510 is configured to obtain client information of each client in the online message receiving group.
处理器510,还用于将处理器510获取到的各个客户端信息添加到在线/离线消息接收群组中;The processor 510 is further configured to add, to the online/offline message receiving group, each client information acquired by the processor 510;
收发器520,用于当接收到在线/离线消息接收群组中任意一个客户端发送的消息时,将消息发送给在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端。The transceiver 520 is configured to: when receiving a message sent by any one of the online/offline message receiving groups, send the message to each client in the online/offline message receiving group that is online and in an offline state. Each client.
可选地,收发器520,还用于接收客户端发送的携带有客户端标识、作为在线/离线消息接收群组标识的第一群组标识和作为在线消息接收群组标识的第二群组标识的添加请求;Optionally, the transceiver 520 is further configured to receive, by the client, the first group identifier that carries the client identifier, the online/offline message receiving group identifier, and the second group that is the online message receiving group identifier. Add request for the identity;
处理器510,还用于根据收发器520发送的客户端标识和第一群组标识,检测客户端是否是在线/离线消息接收群组的管理员客户端,并根据收发器520发送的客户端标识和第二群组标识,检测客户端是否是在线消息接收群组的管理员客户端;若检测结果为客户端是在线/离线消息接收群组的管理员客户端且客户端是在线消息接收群组的管理员客户端,则响应添加请求,触发执行获取在线消息接收群组中各个客户端的客户端信息的步骤。The processor 510 is further configured to detect, according to the client identifier and the first group identifier sent by the transceiver 520, whether the client is an administrator client of the online/offline message receiving group, and according to the client sent by the transceiver 520. The identifier and the second group identifier are used to detect whether the client is an administrator client of the online message receiving group; if the detection result is that the client is an administrator client of the online/offline message receiving group and the client is an online message receiving The administrator client of the group, in response to the add request, triggers the step of obtaining the client information of each client in the online message receiving group.
可选地,处理器510,用于在收发器520向每个客户端发送是否加入在线/离线消息接收群组的询问信息后,若接收到客户端根据询问信息反馈的确认信息,则根据确认信息将客户端的客户端信息添加到在线/离线消息接收群组中。Optionally, the processor 510 is configured to: after the transceiver 520 sends, to each client, whether to join the inquiry information of the online/offline message receiving group, if the confirmation information fed back by the client according to the inquiry information is received, according to the confirmation The information adds the client's client information to the online/offline message receiving group.
可选地,该服务器还包括存储器;Optionally, the server further includes a memory;
处理器510,还用于若从收发器520发送询问信息开始的预设时长内,收 发器520未接收到每个客户端中的任一客户端反馈的确认信息或拒绝信息,则根据存储器中预先存储的客户端与添加操作信息的对应关系,确定上述任一客户端对应的第一添加操作信息,添加操作信息包括添加和放弃添加;若第一添加操作信息为添加,则将上述任一客户端的客户端信息添加到在线/离线消息接收群组。The processor 510 is further configured to: within a preset duration from when the transceiver 520 sends the inquiry information, The transmitter 520 does not receive the confirmation information or the rejection information fed back by any of the clients, and determines the corresponding one of the clients according to the corresponding relationship between the client and the added operation information stored in the memory. Adding operation information, adding operation information includes adding and discarding the addition; if the first adding operation information is adding, adding the client information of any of the above clients to the online/offline message receiving group.
可选地,收发器520,还用于接收客户端发送的用于请求退出在线消息接收群组的退出请求,退出请求是客户端根据询问信息反馈拒绝信息时发送的,拒绝信息用于指示处理器510拒绝将客户端的客户端信息添加到在线/离线消息接收群组;Optionally, the transceiver 520 is further configured to receive an exit request sent by the client for requesting to exit the online message receiving group, where the exit request is sent when the client feeds back the rejection information according to the query information, and the rejection information is used to indicate the processing. The device 510 refuses to add the client information of the client to the online/offline message receiving group;
处理器510,还用于删除在线消息接收群组中客户端的客户端信息。The processor 510 is further configured to delete client information of the client in the online message receiving group.
可选地,处理器510,还用于获取每个客户端信息中的客户端类型;若在线/离线消息接收群组包括至少一个分组,则根据存储器存储的客户端类型和各个分组之间的对应关系以及处理器510获取到的每个客户端信息中的客户端类型,将每个客户端信息添加到对应的分组中;若在线/离线消息接收群组不包括分组,则创建至少一个分组,根据存储器存储的客户端类型和各个分组之间的对应关系以及处理器510获取到的每个客户端信息中的客户端类型,将每个客户端信息添加到对应的分组中。Optionally, the processor 510 is further configured to acquire a client type in each client information; if the online/offline message receiving group includes at least one packet, according to a type of the client stored in the memory and between the respective groups Corresponding relationship and client type in each client information acquired by the processor 510, adding each client information to the corresponding group; if the online/offline message receiving group does not include the group, creating at least one group Each client information is added to the corresponding packet according to the client type of the memory storage and the correspondence between the respective groups and the client type in each client information acquired by the processor 510.
可选地,处理器510,还用于获取预定时间段内成功响应对应在线消息接收群组的添加请求的次数;检测次数是否小于预定次数阈值;若检测结果为次数小于预定次数阈值,则触发执行响应添加请求的步骤。Optionally, the processor 510 is further configured to: acquire a number of times of successfully responding to the online message receiving group by the adding request in the predetermined time period; whether the number of times of detection is less than a predetermined number of times threshold; if the detection result is that the number of times is less than a predetermined number of times, triggering Perform the steps to add a request to the response.
综上所述,本申请实施例提供的消息发送方法,通过将获取到的各个客户端信息添加到在线/离线消息接收群组中;当接收到在线/离线消息接收群组中任意一个客户端发送的消息时,将消息发送给在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端,可以将客户端从仅支持向处于在线状态的各个客户端发送消息的在线消息接收群组导入到支持同时向处于在线状态的各个客户端和处于离线状态的各个客户端发送消息的在线/离线消息接收群组中,使客户端处于离线状态时也能够接收消息,达到了扩大消息的传输范围的效果。另外,通过根据客户端类型和各个分组之间的对应关系以及客户端类型将客户端信息添加到对应的分组中,可以直接将客户端信息添加到对应的分组中,而不需要用户将客户端信息添加到第一群组,再逐个对第一群组中的客户端信息进行分组,提高了客户端信息的分组效率。 In summary, the message sending method provided by the embodiment of the present application adds the obtained client information to the online/offline message receiving group; when receiving any one of the online/offline message receiving groups When the message is sent, the message is sent to each client in the online/offline message receiving group that is online and each client in the offline state, and the client can send the message from only supporting each client in the online state. The online message receiving group is imported into an online/offline message receiving group that supports sending messages to each client in the online state and each client in the offline state, so that the client can receive the message when the client is offline. The effect of expanding the transmission range of the message is achieved. In addition, by adding the client information to the corresponding group according to the client type and the correspondence between the respective groups and the client type, the client information can be directly added to the corresponding group without requiring the user to connect the client. The information is added to the first group, and the client information in the first group is grouped one by one, which improves the grouping efficiency of the client information.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium. The storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。 The above is only the preferred embodiment of the present application, and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application are included in the protection of the present application. Within the scope.

Claims (22)

  1. 一种消息发送方法,其特征在于,用于创建有在线/离线消息接收群组和在线消息接收群组的服务器中,所述在线消息接收群组仅支持向所述在线消息接收群组中处于在线状态的各个客户端发送消息,所述在线/离线消息接收群组支持同时向所述在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端发送消息,所述方法包括:A message sending method, characterized in that, in a server for creating an online/offline message receiving group and an online message receiving group, the online message receiving group only supports being in the online message receiving group. Each client of the online state sends a message, and the online/offline message receiving group supports simultaneously sending a message to each client in the online/offline message receiving group that is in an online state and each client in an offline state. The methods include:
    获取所述在线消息接收群组中各个客户端的客户端信息;Obtaining client information of each client in the online message receiving group;
    将获取到的各个客户端信息添加到所述在线/离线消息接收群组中;Adding each obtained client information to the online/offline message receiving group;
    当接收到所述在线/离线消息接收群组中任意一个客户端发送的消息时,将所述消息发送给所述在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端。When receiving a message sent by any one of the online/offline message receiving groups, sending the message to each client in the online/offline message receiving group that is online and in an offline state Each client.
  2. 根据权利要求1所述的方法,其特征在于,所述获取所述在线消息接收群组中各个客户端的客户端信息之前,还包括:The method according to claim 1, wherein before the obtaining the client information of each client in the online message receiving group, the method further comprises:
    接收客户端发送的携带有客户端标识、作为所述在线/离线消息接收群组标识的第一群组标识和作为所述在线消息接收群组标识的第二群组标识的添加请求;Receiving, by the client, an add request that carries the client identifier, the first group identifier that is the online/offline message receiving group identifier, and the second group identifier that is the online message receiving group identifier;
    根据所述客户端标识和所述第一群组标识检测所述客户端是否是所述在线/离线消息接收群组的管理员客户端,并根据所述客户端标识和所述第二群组标识检测所述客户端是否是所述在线消息接收群组的管理员客户端;Determining, according to the client identifier and the first group identifier, whether the client is an administrator client of the online/offline message receiving group, and according to the client identifier and the second group Identifying whether the client is an administrator client of the online message receiving group;
    若检测结果为所述客户端是所述在线/离线消息接收群组的管理员客户端且所述客户端是所述在线消息接收群组的管理员客户端,则响应所述添加请求,触发执行所述获取所述在线消息接收群组中各个客户端的客户端信息的步骤。If the detection result is that the client is an administrator client of the online/offline message receiving group and the client is an administrator client of the online message receiving group, triggering in response to the adding request Performing the step of acquiring client information of each client in the online message receiving group.
  3. 根据权利要求1或2所述的方法,其特征在于,所述将获取到的各个客户端信息添加到所述在线/离线消息接收群组中,包括:The method according to claim 1 or 2, wherein the adding the obtained client information to the online/offline message receiving group comprises:
    向每个客户端发送是否加入所述在线/离线消息接收群组的询问信息,若接收到所述客户端根据所述询问信息反馈的确认信息,则根据所述确认信息将所述客户端的客户端信息添加到所述在线/离线消息接收群组中。 Sending to each client whether to join the inquiry information of the online/offline message receiving group, and if receiving the confirmation information fed back by the client according to the inquiry information, the client of the client is determined according to the confirmation information End information is added to the online/offline message receiving group.
  4. 根据权利要求3所述的方法,其特征在于,所述向每个客户端发送是否加入所述在线/离线消息接收群组的询问信息之后,还包括:The method according to claim 3, further comprising: after sending the query information to the online/offline message receiving group to each client, further comprising:
    若从发送所述询问信息开始的预设时长内,未接收到所述每个客户端中的任一客户端反馈的确认信息或拒绝信息,则根据预先存储的客户端与添加操作信息的对应关系,确定所述任一客户端对应的第一添加操作信息,所述添加操作信息包括添加和放弃添加;If the confirmation information or the rejection information fed back by any one of the clients is not received within the preset duration from the sending of the inquiry information, according to the correspondence between the pre-stored client and the added operation information Relationship, determining first added operation information corresponding to any one of the clients, where the adding operation information includes adding and discarding the addition;
    若所述第一添加操作信息为添加,则将所述任一客户端的客户端信息添加到所述在线/离线消息接收群组。If the first adding operation information is an add, the client information of the any client is added to the online/offline message receiving group.
  5. 根据权利要求3所述的方法,其特征在于,所述向每个客户端发送是否加入所述在线/离线消息接收群组的询问信息之后,还包括:The method according to claim 3, further comprising: after sending the query information to the online/offline message receiving group to each client, further comprising:
    接收所述客户端发送的用于请求退出所述在线消息接收群组的退出请求,所述退出请求是所述客户端根据所述询问信息反馈拒绝信息时发送的,所述拒绝信息用于指示拒绝将所述客户端的客户端信息添加到所述在线/离线消息接收群组;Receiving, by the client, an exit request for requesting to quit the online message receiving group, where the exit request is sent when the client feeds back the rejection information according to the query information, and the rejection information is used to indicate Refusing to add the client information of the client to the online/offline message receiving group;
    删除所述在线消息接收群组中所述客户端的客户端信息。Deleting the client information of the client in the online message receiving group.
  6. 根据权利要求1-5中的任一项所述的方法,其特征在于,所述将获取到的各个客户端信息添加到所述在线/离线消息接收群组中,包括:The method according to any one of claims 1-5, wherein the adding the obtained individual client information to the online/offline message receiving group comprises:
    获取每个客户端信息中的客户端类型;Get the client type in each client information;
    若所述在线/离线消息接收群组包括至少一个分组,则根据客户端类型和各个分组之间的对应关系以及所述每个客户端信息中的客户端类型,将所述每个客户端信息添加到对应的分组中;If the online/offline message receiving group includes at least one packet, each of the client information is determined according to a client type and a correspondence between the respective groups and a client type in each of the client information. Add to the corresponding group;
    若所述在线/离线消息接收群组不包括分组,则创建至少一个分组,根据客户端类型和各个分组之间的对应关系以及所述每个客户端信息中的客户端类型,将所述每个客户端信息添加到对应的分组中。If the online/offline message receiving group does not include a packet, creating at least one packet, according to the client type and the correspondence between the respective groups and the client type in each of the client information, each of the The client information is added to the corresponding group.
  7. 根据权利要求2-6中的任一项所述的方法,其特征在于,所述响应所述添加请求之前,还包括:The method according to any one of claims 2-6, wherein before the responding to the adding request, the method further comprises:
    获取预定时间段内成功响应对应所述在线消息接收群组的添加请求的次数; Acquiring a number of times of successfully responding to the add request corresponding to the online message receiving group within a predetermined time period;
    检测所述次数是否小于预定次数阈值;Detecting whether the number of times is less than a predetermined number of thresholds;
    若检测结果为所述次数小于预定次数阈值,则触发执行所述响应所述添加请求的步骤。If the detection result is that the number of times is less than a predetermined number of thresholds, the step of responding to the adding request is triggered.
  8. 一种消息发送装置,其特征在于,用于创建有在线/离线消息接收群组和在线消息接收群组的服务器中,所述在线消息接收群组仅支持向所述在线消息接收群组中处于在线状态的各个客户端发送消息,所述在线/离线消息接收群组支持同时向所述在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端发送消息,所述装置包括:A message sending apparatus, configured to create a server having an online/offline message receiving group and an online message receiving group, wherein the online message receiving group only supports being in the online message receiving group Each client of the online state sends a message, and the online/offline message receiving group supports simultaneously sending a message to each client in the online/offline message receiving group that is in an online state and each client in an offline state. The device includes:
    信息获取模块,用于获取所述在线消息接收群组中各个客户端的客户端信息;An information obtaining module, configured to acquire client information of each client in the online message receiving group;
    信息添加模块,用于将所述信息获取模块获取到的各个客户端信息添加到所述在线/离线消息接收群组中;An information adding module, configured to add, to the online/offline message receiving group, each client information acquired by the information acquiring module;
    消息收发模块,用于当接收到所述信息添加模块添加后的线/离线消息接收群组中任意一个客户端发送的消息时,将所述消息发送给所述在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端。a message sending and receiving module, configured to send the message to the online/offline message receiving group when receiving a message sent by any one of the line/offline message receiving groups added by the information adding module Individual clients that are online and individual clients that are offline.
  9. 根据权利要求8所述的装置,其特征在于,所述装置还包括:The device according to claim 8, wherein the device further comprises:
    请求接收模块,用于所述信息获取模块获取所述在线消息接收群组中各个客户端的客户端信息之前,接收客户端发送的携带有客户端标识、作为所述在线/离线消息接收群组标识的第一群组标识和作为所述在线消息接收群组标识的第二群组标识的添加请求;a request receiving module, configured to: before the information obtaining module acquires the client information of each client in the online message receiving group, the receiving client sends the client identifier, as the online/offline message receiving group identifier a first group identifier and an addition request of the second group identifier as the online message receiving group identifier;
    标识检测模块,用于根据所述请求接收模块接收到的所述客户端标识和所述第一群组标识检测所述客户端是否是所述在线/离线消息接收群组的管理员客户端,并根据所述请求接收模块接收到的所述客户端标识和所述第二群组标识检测所述客户端是否是所述在线消息接收群组的管理员客户端;An identifier detecting module, configured to detect, according to the client identifier and the first group identifier received by the request receiving module, whether the client is an administrator client of the online/offline message receiving group, And detecting, according to the client identifier and the second group identifier received by the request receiving module, whether the client is an administrator client of the online message receiving group;
    请求响应模块,用于在所述标识检测模块检测的结果为所述客户端是所述在线/离线消息接收群组的管理员客户端且所述客户端是所述在线消息接收群组的管理员客户端时,响应所述添加请求,触发执行所述获取所述在线消息接收群组中各个客户端的客户端信息的步骤。 a request response module, configured to detect, by the identifier detecting module, that the client is an administrator client of the online/offline message receiving group and the client is the management of the online message receiving group In response to the adding request, the client triggers the step of acquiring the client information of each client in the online message receiving group.
  10. 根据权利要求8或9所述的装置,其特征在于,所述信息添加模块,包括:The device according to claim 8 or 9, wherein the information adding module comprises:
    第二添加单元,用于向每个客户端发送是否加入所述在线/离线消息接收群组的询问信息,若接收到所述客户端根据所述询问信息反馈的确认信息,则根据所述确认信息将所述客户端的客户端信息添加到所述在线/离线消息接收群组中。a second adding unit, configured to send, to each client, query information whether to join the online/offline message receiving group, and if the confirmation information fed back by the client according to the query information is received, according to the confirmation The information adds the client information of the client to the online/offline message receiving group.
  11. 根据权利要求10所述的装置,其特征在于,所述信息添加模块,还用于:The device according to claim 10, wherein the information adding module is further configured to:
    若从发送所述询问信息开始的预设时长内,未接收到所述每个客户端中的任一客户端反馈的确认信息或拒绝信息,则根据预先存储的客户端与添加操作信息的对应关系,确定所述任一客户端对应的第一添加操作信息,所述添加操作信息包括添加和放弃添加;If the confirmation information or the rejection information fed back by any one of the clients is not received within the preset duration from the sending of the inquiry information, according to the correspondence between the pre-stored client and the added operation information Relationship, determining first added operation information corresponding to any one of the clients, where the adding operation information includes adding and discarding the addition;
    若所述第一添加操作信息为添加,则将所述任一客户端的客户端信息添加到所述在线/离线消息接收群组。If the first adding operation information is an add, the client information of the any client is added to the online/offline message receiving group.
  12. 根据权利要求10所述的装置,其特征在于,所述信息添加模块,还包括:The device according to claim 10, wherein the information adding module further comprises:
    请求接收单元,用于所述第二添加单元向每个客户端发送是否加入所述在线/离线消息接收群组的询问信息之后,接收所述客户端发送的用于请求退出所述在线消息接收群组的退出请求,所述退出请求是所述客户端根据所述询问信息反馈拒绝信息时发送的,所述拒绝信息用于指示拒绝将所述客户端的客户端信息添加到所述在线/离线消息接收群组;a request receiving unit, configured to: after the second adding unit sends, to each client, whether to join the inquiry information of the online/offline message receiving group, receive, by the client, a request for exiting the online message receiving An exit request of the group, the exit request is sent when the client feeds back the rejection information according to the query information, and the rejection information is used to indicate that the client information of the client is refused to be added to the online/offline Message receiving group;
    信息删除单元,用于所述请求接收单元接收到所述退出请求后,删除所述在线消息接收群组中所述客户端的客户端信息。The information deleting unit is configured to delete the client information of the client in the online message receiving group after the request receiving unit receives the exit request.
  13. 根据权利要求8-12中的任一项所述的装置,其特征在于,所述信息添加模块,包括:The device according to any one of claims 8 to 12, wherein the information adding module comprises:
    类型获取单元,用于获取每个客户端信息中的客户端类型;a type obtaining unit, configured to obtain a client type in each client information;
    第三添加单元,用于若所述在线/离线消息接收群组包括至少一个分组,则根据客户端类型和各个分组之间的对应关系以及所述类型获取单元获取到的所 述每个客户端信息中的客户端类型,将所述每个客户端信息添加到对应的分组中;a third adding unit, configured to: if the online/offline message receiving group includes at least one group, according to a client type and a correspondence between each group and a location acquired by the type acquiring unit Describe the client type in each client information, and add each client information to the corresponding group;
    第四添加单元,用于若所述在线/离线消息接收群组不包括分组,则创建至少一个分组,根据客户端类型和各个分组之间的对应关系以及所述类型获取单元获取到的所述每个客户端信息中的客户端类型,将所述每个客户端信息添加到对应的分组中。a fourth adding unit, configured to: if the online/offline message receiving group does not include a packet, create at least one packet, according to a client type and a correspondence between each group and the type acquired by the type acquiring unit Each client information is added to the corresponding group by the client type in each client information.
  14. 根据权利要求9-13中的任一项所述的装置,其特征在于,所述装置还包括:The device of any of claims 9-13, wherein the device further comprises:
    次数获取模块,用于所述请求响应模块响应所述添加请求之前,获取预定时间段内成功响应对应所述在线消息接收群组的添加请求的次数;a number obtaining module, configured to acquire, before the request response module responds to the adding request, a number of times of successfully responding to the adding request corresponding to the online message receiving group within a predetermined time period;
    次数检测模块,用于检测所述次数获取模块获取到的所述次数是否小于预定次数阈值;a quantity detecting module, configured to detect whether the number of times acquired by the number obtaining module is less than a predetermined number of thresholds;
    响应触发模块,用于在所述次数检测模块检测的结果为所述次数小于预定次数阈值时,触发执行所述响应所述添加请求的步骤。The response triggering module is configured to trigger the step of executing the response to the adding request when the result of the detecting by the number detecting module is that the number of times is less than a predetermined number of times threshold.
  15. 一种服务器,其特征在于,所述服务器创建有在线/离线消息接收群组和在线消息接收群组,所述服务器包括如权利要求8至14任一项所述的消息发送装置。A server, characterized in that the server is created with an online/offline message receiving group and an online message receiving group, the server comprising the message transmitting device according to any one of claims 8 to 14.
  16. 一种服务器,其特征在于,所述服务器创建有在线/离线消息接收群组和在线消息接收群组,所述在线消息接收群组仅支持向所述在线消息接收群组中处于在线状态的各个客户端发送消息,所述在线/离线消息接收群组支持同时向所述在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端发送消息,所述服务器包括处理器和收发器,其中:A server, wherein the server is configured with an online/offline message receiving group and an online message receiving group, and the online message receiving group only supports each of the online message receiving groups in an online state. The client sends a message, and the online/offline message receiving group supports simultaneously sending a message to each client in the online/offline message receiving group that is in an online state and each client in an offline state, the server includes processing And transceivers, where:
    所述处理器,用于获取所述在线消息接收群组中各个客户端的客户端信息;The processor is configured to obtain client information of each client in the online message receiving group;
    所述处理器,还用于将所述处理器获取到的各个客户端信息添加到所述在线/离线消息接收群组中;The processor is further configured to add, to the online/offline message receiving group, each client information acquired by the processor;
    所述收发器,用于当接收到所述在线/离线消息接收群组中任意一个客户端发送的消息时,将所述消息发送给所述在线/离线消息接收群组中处于在线状态的各个客户端和处于离线状态的各个客户端。 The transceiver is configured to: when receiving a message sent by any one of the online/offline message receiving groups, send the message to each of the online/offline message receiving groups that are in an online state Clients and individual clients that are offline.
  17. 根据权利要求16所述的服务器,其特征在于,所述收发器,还用于接收客户端发送的携带有客户端标识、作为所述在线/离线消息接收群组标识的第一群组标识和作为所述在线消息接收群组标识的第二群组标识的添加请求;The server according to claim 16, wherein the transceiver is further configured to receive a first group identifier that is sent by a client and carries a client identifier, and is used as the online/offline message receiving group identifier. Adding a request for the second group identifier of the online message receiving group identifier;
    所述处理器,还用于根据所述收发器发送的所述客户端标识和所述第一群组标识,检测所述客户端是否是所述在线/离线消息接收群组的管理员客户端,并根据所述收发器发送的所述客户端标识和所述第二群组标识,检测所述客户端是否是所述在线消息接收群组的管理员客户端;若检测结果为所述客户端是所述在线/离线消息接收群组的管理员客户端且所述客户端是所述在线消息接收群组的管理员客户端,则响应所述添加请求,触发执行所述获取所述在线消息接收群组中各个客户端的客户端信息的步骤。The processor is further configured to detect, according to the client identifier and the first group identifier sent by the transceiver, whether the client is an administrator client of the online/offline message receiving group. And detecting, according to the client identifier and the second group identifier sent by the transceiver, whether the client is an administrator client of the online message receiving group; if the detection result is the client The end is an administrator client of the online/offline message receiving group and the client is an administrator client of the online message receiving group, and in response to the adding request, triggering performing the obtaining the online The step of receiving the client information of each client in the group.
  18. 根据权利要求16或17所述的服务器,其特征在于,所述处理器,用于在所述收发器向每个客户端发送是否加入所述在线/离线消息接收群组的询问信息后,若接收到所述客户端根据所述询问信息反馈的确认信息,则根据所述确认信息将所述客户端的客户端信息添加到所述在线/离线消息接收群组中。The server according to claim 16 or 17, wherein the processor is configured to: after the transceiver sends to each client whether to join the inquiry information of the online/offline message receiving group, if Receiving the confirmation information fed back by the client according to the inquiry information, adding the client information of the client to the online/offline message receiving group according to the confirmation information.
  19. 根据权利要求18所述的服务器,其特征在于,所述服务器还包括存储器;The server according to claim 18, wherein said server further comprises a memory;
    所述处理器,还用于:The processor is further configured to:
    若从所述收发器发送所述询问信息开始的预设时长内,所述收发器未接收到所述每个客户端中的任一客户端反馈的确认信息或拒绝信息,则根据所述存储器中预先存储的客户端与添加操作信息的对应关系,确定所述任一客户端对应的第一添加操作信息,所述添加操作信息包括添加和放弃添加;若所述第一添加操作信息为添加,则将所述任一客户端的客户端信息添加到所述在线/离线消息接收群组。If the transceiver does not receive the confirmation information or the rejection information fed back by any of the clients in the preset duration from the transmission of the inquiry information by the transceiver, according to the memory And determining, by the pre-stored client, the first adding operation information corresponding to the any one of the clients, where the adding operation information includes adding and discarding the adding; if the first adding operation information is adding And adding the client information of any of the clients to the online/offline message receiving group.
  20. 根据权利要求18所述的服务器,其特征在于,所述收发器,还用于接收所述客户端发送的用于请求退出所述在线消息接收群组的退出请求,所述退出请求是所述客户端根据所述询问信息反馈拒绝信息时发送的,所述拒绝信息用于指示所述处理器拒绝将所述客户端的客户端信息添加到所述在线/离线消息 接收群组;The server according to claim 18, wherein the transceiver is further configured to receive an exit request sent by the client for requesting to quit the online message receiving group, where the exit request is When the client sends the rejection information according to the query information, the rejection information is used to indicate that the processor refuses to add the client information of the client to the online/offline message. Receiving group
    所述处理器,还用于删除所述在线消息接收群组中所述客户端的客户端信息。The processor is further configured to delete client information of the client in the online message receiving group.
  21. 根据权利要求16-20中的任一项所述的服务器,其特征在于,所述处理器,还用于:The server according to any one of claims 16 to 20, wherein the processor is further configured to:
    获取每个客户端信息中的客户端类型;Get the client type in each client information;
    若所述在线/离线消息接收群组包括至少一个分组,则根据所述存储器存储的客户端类型和各个分组之间的对应关系以及所述所述处理器获取到的所述每个客户端信息中的客户端类型,将所述每个客户端信息添加到对应的分组中;If the online/offline message receiving group includes at least one packet, according to the type of the client stored in the memory and the correspondence between the respective groups and the each client information acquired by the processor a client type in which the client information is added to the corresponding group;
    若所述在线/离线消息接收群组不包括分组,则创建至少一个分组,根据所述存储器存储的客户端类型和各个分组之间的对应关系以及所述处理器获取到的所述每个客户端信息中的客户端类型,将所述每个客户端信息添加到对应的分组中。And if the online/offline message receiving group does not include a packet, creating at least one packet, according to a type of the client stored by the memory and a correspondence between each group, and each of the clients acquired by the processor The client type in the end information, adding each of the client information to the corresponding group.
  22. 根据权利要求17-21中的任一项所述的服务器,其特征在于,所述处理器,还用于:The server according to any one of claims 17 to 21, wherein the processor is further configured to:
    获取预定时间段内成功响应对应所述在线消息接收群组的添加请求的次数;Acquiring a number of times of successfully responding to the add request corresponding to the online message receiving group within a predetermined time period;
    检测所述次数是否小于预定次数阈值;Detecting whether the number of times is less than a predetermined number of thresholds;
    若检测结果为所述次数小于预定次数阈值,则触发执行所述响应所述添加请求的步骤。 If the detection result is that the number of times is less than a predetermined number of thresholds, the step of responding to the adding request is triggered.
PCT/CN2014/095065 2013-12-26 2014-12-26 Method, device, and server for message transmission WO2015096802A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310738939.3A CN103716230B (en) 2013-12-26 2013-12-26 Message sending method, device and server
CN201310738939.3 2013-12-26

Publications (1)

Publication Number Publication Date
WO2015096802A1 true WO2015096802A1 (en) 2015-07-02

Family

ID=50408829

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/095065 WO2015096802A1 (en) 2013-12-26 2014-12-26 Method, device, and server for message transmission

Country Status (2)

Country Link
CN (1) CN103716230B (en)
WO (1) WO2015096802A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113472549A (en) * 2021-05-26 2021-10-01 福建天泉教育科技有限公司 Message sending method and terminal

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716230B (en) * 2013-12-26 2017-02-08 广州华多网络科技有限公司 Message sending method, device and server
CN105515944A (en) * 2015-11-27 2016-04-20 小米科技有限责任公司 Message sending method and device
CN106953790B (en) * 2016-01-07 2020-12-15 钉钉控股(开曼)有限公司 Multi-person information communication method and device
CN109045704A (en) * 2018-07-25 2018-12-21 深圳市有钱科技有限公司 Off-line data exchange method and device
CN110798398A (en) * 2019-11-14 2020-02-14 江苏满运软件科技有限公司 Group message management method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155052A (en) * 2006-09-25 2008-04-02 腾讯科技(深圳)有限公司 Method and system for group chat
CN103188235A (en) * 2011-12-30 2013-07-03 北京神州泰岳软件股份有限公司 Method and system for group information synchronization between client and server
CN103716230A (en) * 2013-12-26 2014-04-09 广州华多网络科技有限公司 Message sending method, device and server

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080183814A1 (en) * 2007-01-29 2008-07-31 Yahoo! Inc. Representing online presence for groups
CN101227425B (en) * 2007-12-25 2010-11-10 腾讯科技(深圳)有限公司 System, client end and method for obtaining history message and feeding back history message
CN102457811B (en) * 2010-10-18 2014-03-26 中国移动通信集团北京有限公司 Method, system and device for PoC (Push-to-talk over Cellular) group communication
CN102202060B (en) * 2011-05-31 2013-12-11 广州华多网络科技有限公司 Method for importing group members
CN103297280B (en) * 2013-06-24 2015-09-02 腾讯科技(深圳)有限公司 A kind ofly add the method for groups of users, the method exiting groups of users and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155052A (en) * 2006-09-25 2008-04-02 腾讯科技(深圳)有限公司 Method and system for group chat
CN103188235A (en) * 2011-12-30 2013-07-03 北京神州泰岳软件股份有限公司 Method and system for group information synchronization between client and server
CN103716230A (en) * 2013-12-26 2014-04-09 广州华多网络科技有限公司 Message sending method, device and server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113472549A (en) * 2021-05-26 2021-10-01 福建天泉教育科技有限公司 Message sending method and terminal

Also Published As

Publication number Publication date
CN103716230B (en) 2017-02-08
CN103716230A (en) 2014-04-09

Similar Documents

Publication Publication Date Title
WO2015096802A1 (en) Method, device, and server for message transmission
US9338194B2 (en) Video conference service
US9686329B2 (en) Method and apparatus for displaying webcast rooms
US11502864B2 (en) Onboarding devices for use in conference room
US9756092B2 (en) Distribution and synchronization of a social media environment
JP6280641B2 (en) Account login method, device and system
US11089473B2 (en) Service access, and control method and apparatus therefor
WO2018006840A1 (en) Account login method and apparatus, and storage medium
WO2014183427A1 (en) Method and apparatus for displaying webcast rooms
WO2020024775A1 (en) Data transmission control method and related apparatus
US9392057B2 (en) Selectively exchanging data between P2P-capable client devices via a server
KR20180118732A (en) Managing multiple profiles for a single account in an asynchronous messaging system
US9602770B2 (en) Method and system for supporting videoconference in distributed telepresence platform
EP2605460A1 (en) Method, apparatus, and system for transferring file to user of instant message system
WO2015101303A1 (en) Channel processing method and device
CN107528767B (en) Session processing method and device
WO2017032183A1 (en) Access method, device and system for conference terminal
US10148710B2 (en) Method, computer-readable storage device and apparatus for establishing persistent messaging sessions
CN103986710A (en) Method, device and system for transmitting information
US20160294833A1 (en) Social communication system and method thereof
US9609053B2 (en) Method, apparatus and system for voice service access
US20140089430A1 (en) Data-sharing method, terminal, server, and system
WO2015096686A1 (en) Method and system for establishing voice communication
US9515970B2 (en) Techniques for auto-detecting positions in a multi-resource login control of instant messaging
CN109729402B (en) Media content synchronization method, device and storage medium

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: 14873565

Country of ref document: EP

Kind code of ref document: A1

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 (EPO FORM 1205A DATED 28.10.2016)

122 Ep: pct application non-entry in european phase

Ref document number: 14873565

Country of ref document: EP

Kind code of ref document: A1