Summary of the invention
The technical problem to be solved in the present invention provides a kind of method that multi-member aggregating exchanges in the Internet chatroom, to realize the noiseless interchange between a plurality of Internet chatroom members.
For solving the problems of the technologies described above, the objective of the invention is to be achieved through the following technical solutions:
A kind of method that multi-member aggregating exchanges in the Internet chatroom comprises:
Server receives the request of the establishment discussion group that carries Internet chatroom member sign, and the client under described Internet chatroom member identifies belongs to same Internet chatroom;
Described server distributes discussion group's sign for described discussion group, preserves the corresponding relation of described discussion group sign and described Internet chatroom member sign;
Described server receives the speaking request that carries discussion group's sign, search the corresponding relation of described discussion group sign and Internet chatroom member sign, obtain the corresponding described Internet chatroom member sign of discussion group sign of carrying in the described speaking request, and transmit described speaking request and identify clients corresponding to described Internet chatroom member;
Described server or when finding the client break link of the described member of discussion group under identifying, is deleted the corresponding relation of the described member of discussion group sign and discussion group's sign when receiving that the client of the described member of discussion group under identifying withdraws from the request of chatroom.
Preferably, after described server received the request of the establishment discussion group that carries Internet chatroom member sign, said method also comprised:
Server obtains described Internet chatroom member sign, send to create discussion group's windows request and identify clients corresponding, carry the corresponding relation that described discussion group sign and described Internet chatroom member identify in the described establishment discussion group windows request to described Internet chatroom member.
Preferably, said method also comprises:
Described server receives the discussion group's request of withdrawing from, and the described discussion group that withdraws from asks the request of carrying to withdraw from the Internet chatroom member sign of discussion group;
The described corresponding relation that withdraws from Internet chatroom member sign with discussion group's sign of discussion group of described whois lookup, obtain the described Internet chatroom member who withdraws from discussion group and identify corresponding discussion group's sign, obtain the corresponding Internet chatroom member sign of described discussion group sign, transmit the described request of withdrawing from discussion group and identify clients corresponding to described Internet chatroom member, delete the corresponding relation that the described Internet chatroom member sign that withdraws from discussion group and discussion group identify.
Preferably, said method also comprises:
Described server identifies clients corresponding for the described Internet chatroom member who withdraws from discussion group and returns and withdraw from successfully order.
A kind of server comprises:
Discussion group's request receiving element is used to receive the request of the establishment discussion group that carries Internet chatroom member sign, and the client under described Internet chatroom member identifies belongs to same Internet chatroom;
Sign is distributed and the preservation unit, is used for distributing discussion group's sign to the described discussion group of creating the request of discussion group, preserves the corresponding relation that described discussion group sign and described Internet chatroom member identify; When receiving that the client of the described member of discussion group under identifying withdraws from the request of chatroom, or when finding the client break link of the described member of discussion group under identifying, delete the corresponding relation of the described member of discussion group sign and discussion group's sign;
The speaking request receiving element is used to receive the speaking request that carries discussion group's sign;
The speaking request retransmission unit, be used for obtaining described discussion group sign from described speaking request, search described discussion group sign and Internet chatroom member's corresponding relation, obtain the corresponding Internet chatroom member sign of described discussion group sign, and transmit described speaking request and identify clients corresponding to described Internet chatroom member.
Preferably, above-mentioned server also comprises:
Create discussion group's window request generation unit, be used for from the request of described establishment discussion group, obtain described Internet chatroom member sign, send to create discussion group's windows request and identify clients corresponding, carry the corresponding relation that described Internet chatroom member sign and described discussion group identify in the described establishment discussion group windows request to described Internet chatroom member.
Preferably, above-mentioned server also comprises:
Withdraw from the request receiving element, be used for receiving the discussion group's request of withdrawing from, the described discussion group that withdraws from asks the request of carrying to withdraw from the Internet chatroom member sign of discussion group;
Withdraw from the request retransmission unit, be used to obtain the described Internet chatroom member sign that withdraws from discussion group, search the described corresponding relation that withdraws from Internet chatroom member sign with discussion group's sign of discussion group, obtain the described Internet chatroom member who withdraws from discussion group and identify corresponding discussion group's sign, obtain the corresponding Internet chatroom member sign of described discussion group sign, transmit the described request of withdrawing from discussion group and identify clients corresponding to described Internet chatroom member, delete the corresponding relation that the described network members sign that withdraws from discussion group and discussion group identify.
Preferably, above-mentioned server also comprises:
Withdraw from successfully order and return the unit, behind the Internet chatroom member sign that is used for withdrawing from discussion group and the corresponding relation of discussion group's sign, identify clients corresponding for the described Internet chatroom member who withdraws from described discussion group and return and withdraw from successfully order when deletion is described.
Above technical scheme as can be seen, in the method that the embodiment of the invention provides, because server has distributed discussion group's sign for the discussion group of creating in discussion group's request, preserved the corresponding relation of discussion group's sign with the Internet chatroom member sign that belongs to this discussion group, and create and to carry a plurality of Internet chatroom member signs in discussion group's request, therefore, when the Internet chatroom member who belongs to this discussion group makes a speech, server can be according to discussion group's sign of carrying in the speaking request, find a plurality of Internet chatroom members that belong to this discussion group, and speech information is transmitted to the all-network chat room members that belongs to this discussion group, and speech information can be transmitted to other members of Internet chatroom of non-this discussion group, realized forgoing other member disturbs, the purpose that several interested member aggregatings are exchanged together.
Embodiment
The embodiment of the invention provides a kind of method that multi-member aggregating exchanges in the Internet chatroom, below in conjunction with the accompanying drawing specific embodiment that develops simultaneously the embodiment of the invention is described in detail.
Figure 2 shows that a kind of method flow diagram that multi-member aggregating exchanges in the Internet chatroom that the embodiment of the invention provides, comprising:
Step 201: server receives the request of the establishment discussion group that carries Internet chatroom member sign;
The Internet chatroom generally comprises: information display area, information editing district and the member viewing area of tabulating, certain member when the Internet chatroom, want to set up and assemble when exchanging with other a plurality of members, the Internet chatroom member that it can choose above-mentioned several desire to exchange in member's tabulation of Internet chatroom, send asking of establishment discussion group by the client under it then to server, allow to carry a plurality of Internet chatroom member signs because create discussion group's request, so can in this request, carry above-mentioned several selected members' sign, this sign is commonly called Internet chatroom member sign, this sign can be Internet chatroom member's ID, such as, the user name of using when the member lands the chatroom.In addition, the Internet chatroom member who send to create discussion group's request can be called the promoter of this discussion group, and the group that comes into question promoter adds into that the Internet chatroom member of discussion group also can be called the member of discussion group.
For making things convenient for the interchange between the member of discussion group, the promoter of discussion group can also be that this discussion group specifies theme is discussed, and therefore, can also further carry the theme of discussion group in the request of above-mentioned establishment discussion group.
Step 202: server distributes discussion group's sign to discussion group, preserves the corresponding relation of discussion group's sign and Internet chatroom member sign;
Wherein, server can also be preserved and create Internet chatroom member sign, discussion group's sign of carrying in discussion group's request, also can not preserve; If also carry discussion group's theme in the request of establishment discussion group, server can be preserved discussion group's theme so, also can not preserve.
Above-mentioned sign and discussion group's theme can be kept in the database on the server, also can be buffered in the internal memory Shen of server, in case but be buffered in the internal memory and the problem that all cache informations of server power down are all lost can occur.
The reason of preserving the corresponding relation of discussion group's sign and Internet chatroom member sign is: each discussion group comprises a plurality of members, and an Internet chatroom member can join a plurality of discussion group, so server is by searching the corresponding relation of discussion group's sign and Internet chatroom member sign, can find the all-network chat room members that belongs to this discussion group, perhaps, which discussion group certain member that can find the Internet chatroom belongs to.
Above-mentioned two steps have realized creating discussion group on server, server execution in step 203 is to step 205, can realize that a plurality of members of discussion group organize through discussion to exchange;
Step 203: server receives speaking request, carries speech information, discussion group's sign in the speaking request;
If the member of discussion group thinks speech, then the member of this discussion group can send speaking request by the user end to server under it, and wherein, speech information can be Word message, pictorial information, symbolic information etc.
Step 204: whois lookup this discussion group's sign and the corresponding relation that the Internet chatroom member identifies, obtain the corresponding Internet chatroom member sign of this discussion group's sign;
Step 205: server is according to Internet chatroom member sign, transmits speaking request and identifies clients corresponding to the Internet chatroom member.
Said method has realized that a plurality of member aggregatings in the Internet chatroom exchange, and each member of Internet chatroom can initiate a plurality of discussion group, the upper limit of discussion group's number that each member can initiate can be set by server, discussion group's number of initiating as certain member has surpassed the setting of server, then can not create discussion group again.
In addition, in discussion group, the member of discussion group also can select the member of another discussion group to set up the private chat passage in the member of discussion group, carries out private chat.
Receive the request of the establishment discussion group that carries Internet chatroom member sign when server after, understand the information of other members in the discussion group for the ease of the member of discussion group, and be convenient to the member of discussion group and import speech information, the method that the embodiment of the invention provides can also comprise the method for creating discussion group's window, as shown in Figure 3, comprising:
Step 301: server obtains the Internet chatroom member sign that belongs to this discussion group from the request of creating discussion group, send establishment discussion group windows request and identify clients corresponding, carry the corresponding relation of Internet chatroom member sign and discussion group's sign in this establishment discussion group windows request to the Internet chatroom member;
Step 302: client is obtained the corresponding relation of discussion group's sign and Internet chatroom member sign from create discussion group's windows request, and preserve, create the corresponding discussion group's window of this discussion group's sign, this discussion group's window comprises at least: speech information editing district, speech information display area and the member viewing area of tabulating, can also comprise: discussion group theme viewing area, symbol display areas etc.
Wherein, the speech viewing area is used to show the member's of discussion group discussion information; The member of discussion group utilizes speech information editing district to edit the information that need deliver; The member of discussion group can be according to the demonstration inquiry member's of discussion group of the member of discussion group tabulation information; Discussion group theme viewing area is used to show the discussion theme of discussion group.
Understand speech information in the discussion group for the ease of the member of discussion group, the member's of discussion group who comes when server forwards speaking request is during to client, and client can also be carried out following steps:
Step 303: client is obtained this discussion group's sign from speaking request, finds the corresponding discussion group's window of this discussion group's sign, and the speech information of carrying in the speaking request is presented at the speech information display area;
Because discussion group's window that client is set up and discussion group's sign are corresponding,, find the corresponding discussion group's window of this discussion group's sign so client can identify according to discussion group.
Because the Internet chatroom member can create a plurality of discussion group, perhaps join in a plurality of discussion group, the interchange that does not influence other discussion group in order to realize withdrawing from certain discussion group, the method that the embodiment of the invention provides can also comprise the method that withdraws from discussion group, as shown in Figure 4, comprising:
Step 401: server receives the discussion group's request of withdrawing from, and the Internet chatroom member sign of discussion group is withdrawed from this request request of carrying;
Step 402: this withdraws from the corresponding relation of Internet chatroom member sign with discussion group's sign of discussion group whois lookup;
Because an Internet chatroom member can be the member of a plurality of discussion group, may obtain a plurality of corresponding relations.
Step 403: server obtains this Internet chatroom member who withdraws from discussion group and identifies corresponding discussion group's sign, obtain the Internet chatroom member sign that belongs to this discussion group, the request that discussion group is withdrawed from forwarding identifies clients corresponding to the Internet chatroom member, and the corresponding relation of Internet chatroom member sign with discussion group's sign of discussion group is withdrawed from deletion;
Illustrate above-mentioned steps, such as, the Internet chatroom member who withdraws from discussion group is designated A, this member is that discussion group's sign is respectively B, C, the member of discussion group of D, the request of withdrawing from discussion group will be forwarded to B, C, all members' client in three discussion group of D, and server to delete A respectively with the corresponding relation of B, C, D.
Step 404: client is obtained the Internet chatroom member who withdraws from discussion group and is identified corresponding discussion group's sign, and the corresponding relation that Internet chatroom member sign with this discussion group's sign of discussion group are withdrawed from deletion upgrades the member's tabulation in discussion group's window;
If the member of discussion group has directly withdrawed from the chatroom or network disconnects, server can be received the request of withdrawing from the chatroom that the affiliated client of the member of discussion group is sent, or in the process of the server situation that client is connected with network under making regular check on the member of discussion group, find that this client disconnects connection, then server is considered as receiving that the member of this discussion group withdraws from the request of discussion group, so server is according to this member's sign, find out all discussion group's signs at this member place in from database or server buffer, the client of the request that discussion group is withdrawed from forwarding under other members of these discussion group, and the corresponding relation of the member of discussion group sign and discussion group's sign is withdrawed from deletion.
Know for the ease of the member who withdraws from discussion group whether it successfully withdraws from discussion group, server can also further be carried out following steps:
Step 405: server identifies clients corresponding for the Internet chatroom member withdraw from discussion group and returns and withdraw from successfully order;
Step 406: client is closed discussion group's window after receiving and withdrawing from successfully order, and the information of deletion discussion group, and this information comprises: the sign of discussion group, Internet chatroom member's sign, the member of discussion group tabulation and chat record or the like.
In addition, when all members of certain discussion group withdraw from back or only surplus member, the information of discussion group in automatic delete database of server or the server buffer.Because above-mentioned discussion group is when no any member, server is understood the information of this discussion group in automatic delete database or the server buffer, and this discussion group will no longer exist, and therefore, the discussion group that the embodiment of the invention is created is an interim discussion group.
Figure 5 shows that the composition schematic diagram of server, comprising:
Discussion group's request receiving element 501 is used to receive the request of the establishment discussion group that carries Internet chatroom member sign;
Sign is distributed and is preserved unit 502, is used for distribution discussion group of the discussion group sign to the request of establishment discussion group, preserves the corresponding relation that discussion group's sign and described Internet chatroom member identify;
Speaking request receiving element 503 is used to receive the speaking request that carries discussion group's sign;
Speaking request retransmission unit 504, be used for obtaining discussion group's sign from the speaking request that speaking request receiving element 503 receives, and from identifying distribution and preserving the corresponding relation that discussion group's sign and Internet chatroom member are searched in unit 502, obtain the corresponding Internet chatroom member sign of discussion group sign, and transmit institute's speaking request and identify clients corresponding to the Internet chatroom member.
Receive the request of the establishment discussion group that carries Internet chatroom member sign when server after, for which member in the Internet chatroom in the discussion group that makes the member of discussion group know to set up on the server, and import speech information for the ease of the member of discussion group, the server that the embodiment of the invention provides also comprises:
Create discussion group's window request generation unit, be used for asking from the establishment discussion group that discussion group's request receiving element 501 receives, obtain Internet chatroom member sign, send establishment discussion group windows request and identify clients corresponding, create to carry in discussion group's windows request identifying the corresponding relation that identifies with the Internet chatroom member from identifying the discussion group that distributes and preserve unit 502 to obtain to the Internet chatroom member.
Because the Internet chatroom member can create a plurality of discussion group, perhaps join in a plurality of discussion group, the interchange that does not influence other discussion group in order to realize withdrawing from certain discussion group, the server that the embodiment of the invention provides also comprises:
Withdraw from the request receiving element, be used for receiving the discussion group's request of withdrawing from, the Internet chatroom member sign of discussion group is withdrawed from this request request of carrying;
Withdraw from the request retransmission unit, be used to obtain the Internet chatroom member sign that withdraws from discussion group, search the Internet chatroom member who withdraws from discussion group and identify the corresponding relation that identifies with discussion group, obtain the described Internet chatroom member who withdraws from discussion group and identify corresponding discussion group's sign, obtain the corresponding Internet chatroom member sign of described discussion group sign, the request that discussion group is withdrawed from forwarding identifies clients corresponding to the Internet chatroom member, and the corresponding relation of network members sign with discussion group's sign of discussion group is withdrawed from deletion.
Know for the ease of the member who withdraws from discussion group whether it successfully withdraws from discussion group, and the server that the embodiment of the invention provides also comprises:
Withdraw from successfully order and return the unit, behind the Internet chatroom member sign that is used for withdrawing from discussion group and the corresponding relation of discussion group's sign, identify clients corresponding for the described Internet chatroom member who withdraws from described discussion group and return and withdraw from successfully order when deletion is described.
More than a kind of multi-member aggregating exchanges in the Internet chatroom method, server provided by the present invention are described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.