Summary of the invention
The object of the present invention is to provide a kind of system that realizes the one-to-many chat in instant messaging, it is loaded down with trivial details in user's manual operation in the process of user's pocket transmission news to be intended to solve prior art, causes the lower problem of transmitting efficiency.
The present invention also aims to provide a kind of method that in instant messaging, realizes the one-to-many chat, to solve the above-mentioned problems in the prior art better.
In order to realize goal of the invention, the described system that realizes the one-to-many chat in instant messaging comprises server, the subscription client at user place, and contact person's client at contact person place, wherein:
Described subscription client and server carry out data interaction, and it is set up the binding information tabulation and be sent to server according to the Affiliates List that the user selects to bind, and are the mapping relations of one-to-many between user and the contact person in the described binding information tabulation;
Described server and subscription client and contact person's client are carried out data interaction, it sets up the forwards tabulation according to the binding information tabulation correspondence that subscription client sends, and according to described forwards tabulation is transmitted chat messages between user and contact person, be man-to-man mapping relations between user and the contact person in the described forwards tabulation.
Preferably, described subscription client comprises that information transmit-receive unit, contact person bind unit, user interface section;
Described information transmit-receive unit be used for and server between carry out information interaction, comprise that the contact person is bound the binding information tabulation of setting up the unit is sent to server, and the contact person that reception server is transmitted replys message;
Described contact person binds the unit and the information transmit-receive unit carries out data interaction, be used for setting up the binding information tabulation according to the Affiliates List that the user selects to bind, and wherein between user and the contact person mapping relations of one-to-many;
Described user interface section and information transmit-receive unit and contact person bind the unit and carry out data interaction, be used on user interface, generating " one-to-many chat window " according to the binding information tabulation, and receive the chat messages that the user imports in described " one-to-many chat window ", and the contact person of server forwards is replied message be shown in described " one-to-many chat window ".
Preferably, described server comprises the information transmit-receive unit, connects construction unit, data processing unit;
Described information transmit-receive unit is used for carrying out information interaction respectively with subscription client and contact person's client, comprises receiving the binding information tabulation that subscription client sends, and the chat messages between user and the contact person is transmitted;
Described connection construction unit is used for carrying out data interaction with information transmit-receive unit and data processing unit, and the binding information tabulation correspondence that is used for sending according to subscription client is set up the forwards tabulation, wherein is man-to-man mapping relations between user and the contact person;
Described data processing unit is with the information transmit-receive unit and be connected construction unit and carry out data interaction, is used for judging according to described forwards tabulation the ownership of the chat messages between user and the contact person.
Preferably, the contact person in the described subscription client binds the unit and is further used for, and sets up the binding information tabulation of a plurality of themes, and user and contact person are the mapping relations of one-to-many in the binding information tabulation under each theme;
Connection construction unit in the described server is further used for, according to the corresponding forwards tabulation of setting up a plurality of themes of the binding information tabulation of described a plurality of themes, be man-to-man mapping relations between user and the contact person in the forwards tabulation under each theme.
In order to realize goal of the invention better, the described method of one-to-many chat that realizes in instant messaging may further comprise the steps:
A. subscription client is selected the Affiliates List of binding according to the user, and set up the binding information tabulation and be sent to server, be the mapping relations of one-to-many between user and the contact person in the described binding information tabulation;
B. server is set up the forwards tabulation according to described binding information tabulation correspondence, wherein is man-to-man mapping relations between user and the contact person;
C. server is tabulated according to described forwards and is judged the ownership of the chat messages between user and the contact person, and based on described judgement the chat messages between user and the contact person is transmitted.
Preferably, described steps A comprises that further according to the binding information tabulation that a plurality of themes are set up in user's selection, user and contact person are the mapping relations of one-to-many in the binding information tabulation under each theme.
Preferably, comprise also in the described steps A that according to the binding information tabulation that subscription client is set up, corresponding generation in user interface " one-to-many chat window " is used to receive the chat messages of user's input and shows that the contact person replys message.
Preferably, described step B comprises that further server is man-to-man mapping relations between user and the contact person according to the corresponding forwards tabulation of setting up a plurality of themes of the binding information tabulation of described a plurality of themes in the forwards tabulation under each theme.
Preferably, for the chat messages that the user sends, described step C further comprises:
C11. after receiving user's chat messages, judge this chat messages belongs to which contact person in the forwards tabulation under which theme;
C12. described chat messages is transmitted to the contact person who discerns through judgement among the step C1 respectively.
Preferably, for the chat messages that the contact person replys, described step C further comprises:
C21. after receiving the chat messages that the contact person replys, judge this chat messages belongs to forwards which theme under which contact person in tabulating;
C22. this chat messages is added a subject identification relevant with described theme, and described chat messages is transmitted to subscription client, according to described subject identification this chat messages is shown in corresponding " one-to-many chat window " by subscription client.
The Affiliates List that the present invention will bind according to user's selection, in subscription client, set up the binding information tabulation, wherein user and contact person are the mapping relations of one-to-many, and correspondence is set up the forwards tabulation in server, and wherein user and contact person are man-to-man mapping relations.The user only needs chat messages of input in " one-to-many chat window " like this, just can simultaneously and send to a plurality of separate contact persons individually, has simplified user's manual operation, has improved operating efficiency.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The Affiliates List that the present invention will bind according to user's selection, in subscription client, set up the binding information tabulation and send to server, user and contact person are the mapping relations of one-to-many in this binding information tabulation, correspondence is set up the forwards tabulation in server then, and user and contact person are man-to-man mapping relations in this forwards tabulation.At session stage, subscription client shows " one-to-many chat window " according to the binding information tabulation in user interface, the user only needs chat messages of input in this " one-to-many chat window " like this, just can simultaneously and send to a plurality of separate contact persons individually, simplify user's manual operation, improved operating efficiency.
Fig. 1 shows the present invention realizes the one-to-many chat in instant messaging system configuration, and this system comprisessubscription client 100,server 200, and the contact person'sclient 300 that links to each other with server 200.Should be noted that the annexation between each equipment is the needs of explaining its information interaction and control procedure for clear in all diagrams of the present invention, therefore should be considered as annexation in logic, and should not only limit to physical connection.
(1) subscription client 100 typically can be the various terminal equipments that can carry out instant messaging; personal computer (Personal Computer for example; PC), personal digital assistant (Personal Digital Assistant; PDA), mobile phone (Mobile Phone; MP) etc.; comprise web browser (Web Browser) in addition, so protection scope of the present invention should not be defined as the client of certain particular type.Subscription client 100 is carried out following function: connecting establishment stage, setting up the binding information tabulation and be sent to server 200 according to the Affiliates List that the user selects to bind, is the mapping relations of one-to-many between user and the contact person in the binding information tabulation; At session stage, on user interface, generate " one-to-many chat window " according to the binding information tabulation, and the chat messages that the user is imported in " one-to-many chat window " is sent to server 200, and the contact person that server 200 is transmitted is replied message is shown in " the one-to-many chat window " in the user interface.Should be noted that if subscription client 100 is when being web browser the chat window that the user opens then is that the form with webpage represents.This subscription client 100 comprises that further information transmit-receive unit 101, contact person bind unit 102, user interface section 103, wherein:
Information transmit-receiveunit 101 be used for andserver 200 between carry out information interaction, comprising: connecting establishment stage, the contact person is being bound the binding information tabulation thatunit 102 generates send toserver 200; At session stage, receive the user's thatuser interface section 103 sends into chat messages, and send it toserver 200, and the contact person's that forwards ofreception server 200 chat messages, and it is sent intouser interface section 103 be shown to the user.
The contact person bindsunit 102 and carries out data interaction with information transmit-receiveunit 101, is used for setting up the binding information tabulation according to the Affiliates List that the user selects to bind, and wherein between user and the contact person mapping relations of one-to-many.In one embodiment, shown in binding information is listed as follows:
| The user | Thecontact person 001 |
| The contact person 002 |
| ...... |
| Contact person n |
Certainly, the user also can carry out the binding of multiple different themes, then generates a plurality of binding information tabulations in the data structure, corresponding different " the one-to-many chat windows " of a plurality of themes that show in the interface.In another embodiment, the binding information of setting up according to two themes is listed as follows:
| Theme one | The user | Thecontact person 001 |
| The contact person 002 |
| The contact person 003 |
| The contact person 004 |
| Theme two | The user | Thecontact person 001 |
| The contact person 005 |
| The contact person 006 |
| The contact person 007 |
In the above-described embodiments as can be known, the user will set up two " one-to-many chat windows ", wherein all comprisecontact person 001, just the theme difference.
User interface section 103 is boundunit 102 with information transmit-receiveunit 101 and contact person and is carried out data interaction, be used for: on user interface, generate " one-to-many chat window " according to the binding information tabulation, if the user carries out the binding of multiple different themes, the a plurality of binding information tabulations that then generate in the corresponding data structure, corresponding different " the one-to-many chat windows " of a plurality of themes that show in the interface; Receive the chat messages that the user imports in " one-to-many chat window ", and the chat messages of input is sent into information transmit-receiveunit 101; And the contact person thatserver 200 is transmitted is replied message be shown in " the one-to-many chat window " of user interface.Be somebody's turn to do the form of expression of " one-to-many chat window ", as shown in Figure 2, the chat record between the contact person of its explicit user and all bindings, and a unified input information window is arranged.But, should be noted that, " one-to-many chat window " is different from general group chat window, the information of its contact person and customer contact is relatively independent, other contact persons are invisible, and therefore when the user sends a chat messages based on this " one-to-many chat window ", each contact person will receive this chat messages separately, for general group chat window, also avoided brushing the harassing and wrecking of screen like this to uncorrelated contact people because of the part contact person.In addition, the user can also need select the contact person of transmission information in " one-to-many chat window ", carries out part and sends.
(2)server 200 typically can be aninstant communication server 200 etc., so protection scope of the present invention should not be defined as theserver 200 of certain particular type.Connecting establishment stage,server 200 sends the binding information tabulation according tosubscription client 100, and correspondence is set up the forwards tabulation, is man-to-man mapping relations between user and the contact person in the forwards tabulation; At session stage, tabulation is sent to corresponding contact person'sclient 300 to the chat messages thatsubscription client 100 is sent according to forwards, and the chat messages that the contact person is replied is forwarded tosubscription client 100 according to thistabulation.Server 200 further comprises information transmit-receiveunit 201, connectsconstruction unit 202,data processing unit 203, wherein:
Carry out information interaction between information transmit-receiveunit 201 andsubscription client 100 and the contact person's client 300: be connected establishment stage, receiving the binding information tabulation thatsubscription client 100 sends, and it is sent into connectingconstruction unit 202; At session stage, receive the user's ofsubscription client 100 transmissions chat messages, it is sent intodata processing unit 203 judges, and then be forwarded to corresponding contact person'sclient 300, and the chat messages that receives contact person's answer of contact person'sclient 300 transmissions, it is sent intodata processing unit 203 judge, and then be forwarded tosubscription client 100.
Connectconstruction unit 202 and carry out data interaction with information transmit-receiveunit 201 anddata processing unit 203, the binding information tabulation correspondence that is used for sending according tosubscription client 100 is set up the forwards tabulation, wherein is man-to-man mapping relations between user and the contact person.In one embodiment, shown in this forwards is listed as follows:
| User---contact person 001 |
| User---contact person 002 |
| ...... |
| User---contact person n |
Certainly, as previously mentioned, if the user carries out the binding of multiple different themes, generate a plurality of binding information tabulations in the data structure, corresponding different " the one-to-many chat windows " of a plurality of themes that show in user interface,server 200 is also corresponding so sets up a plurality of forwards tabulations.In another embodiment, shown in two forwards setting up in theserver 200 are listed as follows:
| Theme one | User---contact person 001 |
| User---contact person 002 |
| User---contact person 003 |
| User---contact person 004 |
| Theme two | User---contact person 001 |
| User---contact person 005 |
| User---contact person 006 |
| User---contact person 007 |
Data processing unit 203 is with information transmit-receive unit 201 and be connected construction unit 202 and carry out data interaction, is used for judging according to described forwards tabulation the ownership of the chat messages between user and the contact person.Specifically comprise: after receiving user's chat messages, judge that this chat messages belongs to which contact person in " the forwards tabulation " of which theme, utilizes information transmit-receive unit 201 to be transmitted to these contact persons respectively then; After receiving contact person's chat messages, judge this chat messages belongs to which contact person in " the forwards tabulation " of which theme, then this chat messages is added a subject identification relevant with this theme, and this chat messages is transmitted to subscription client 100, this chat messages is shown in corresponding " one-to-many chat window " according to this subject identification by subscription client 100.For example go up in the table, learn that a chat messages belongs to the contact person 001 in " the forwards tabulation " of theme one if judge, then this chat messages is added that the relevant label (tag) of this theme identifies, utilize information transmit-receive unit 201 that it is transmitted to subscription client 100 again, after subscription client 100 is received, learn that according to label this chat messages belongs to the contact person 001 in " the binding information tabulation " of theme one, then utilize user interface section 103 that this chat messages is shown on the user interface in " one-to-many chat window " corresponding with theme one.
(3) user's of contact person's client 300 reception servers 200 forwardings chat messages, and reply chat messages to server 200 and transmit.In the present invention; contact person's client 300 typically can be the various terminal equipments that can carry out instant messaging; personal computer (Personal Computer for example; PC), personal digital assistant (Personal Digital Assistant; PDA), mobile phone (Mobile Phone; MP) etc., can comprise web browser, so protection scope of the present invention should not be defined as the client of certain particular type yet.Should be noted that if contact person's client 300 is when being web browser the chat window that this contact person opens then is that the form with webpage represents.If this contact person participates in a plurality of themes of Client-initiated, the chat conversations frame that ejects in this contact person's client 300 will carry out the split screen demonstration according to theme so, promptly the corresponding chat conversations frame of theme is convenient to the contact person like this and is searched corresponding chat record according to theme.In addition, contact person's client 300 has a plurality of, and contact person's client 300a as shown in Figure 1, contact person's client 300b...... contact person client 300n login aforesaid contact person 001, contact person 002...... contact person N respectively on it.
Fig. 3 shows the present invention realizes the one-to-many chat in instant messaging method flow, and this method flow is based on system configuration shown in Figure 1, and detailed process is as follows:
Carry out institute of the present invention in steps before, the account number and the password of 100 pairs of users' inputs of subscription client are verified, the user is successfully logined.
In step S301,subscription client 100 is selected the Affiliates List of binding according to the user, and set up the binding information tabulation and be sent toserver 200, be the mapping relations of one-to-many between user and the contact person in this binding information tabulation.Certainly,subscription client 100 also can be set up the binding information tabulation of a plurality of themes according to user's selection, and user and contact person are the mapping relations of one-to-many in the binding information tabulation under each theme.When this step was finished,subscription client 100 was according to the binding information tabulation of setting up, and corresponding generation in user interface " one-to-many chat window " is used to receive the chat messages of user's input and shows that the contact person replys message.
In step S302,server 200 is set up the forwards tabulation according to described binding information tabulation correspondence, wherein is man-to-man mapping relations between user and the contact person.If set up the binding information tabulation of a plurality of themes in thesubscription client 100, so in this step, the corresponding forwards tabulation of setting up a plurality of themes of 200 binding information tabulations according to a plurality of themes of server is man-to-man mapping relations between user and the contact person in the forwards tabulation under each theme.
In step S303,server 200 is tabulated according to described forwards and is judged the ownership of the chat messages between user and the contact person, and based on described judgement the chat messages between user and the contact person is transmitted.Chat messages for user's transmission, this step S303 specifically comprises: after (1)server 200 receives user's chat messages, judge this chat messages belongs to the forwards tabulation under which theme, and judge further it belongs to which contact person in this forwards tabulation; (2)server 200 is transmitted to this chat messages respectively the contact person who discerns through judgement in the abovementioned steps (1).Chat messages for contact person's answer, step S303 specifically comprises: after (1 ')server 200 receives the chat messages of contact person's answer, judge this chat messages belongs to the forwards tabulation under which theme, and further judge its belong in this forwards tabulation in which contact person; 200 pairs of these chat messages of (2 ') server add a subject identification relevant with this theme, and this chat messages is transmitted tosubscription client 100, this chat messages is shown in corresponding " one-to-many chat window " according to this subject identification bysubscription client 100.
The one embodiment of the present of invention that show Fig. 4 realize the method flow of one-to-many chat in instant messaging, this embodiment has set forth the present invention and has realized the mutual overall process of chat messages for the first time, and its method flow is based on system configuration shown in Figure 1 and method flow shown in Figure 3.Detailed process is as follows:
Carry out institute in steps before, the account number and the password of 100 pairs of users' inputs of subscription client are verified, the user is successfully logined.
In step S401, the contact person thatsubscription client 100 is selected according to the user sets up the binding information tabulation, and is sent to server 200.In the present embodiment, the user carries out the binding of multiple different themes, the user need bind four contact persons in theme one (for example " shuttlecock activity "), the user also binds four contact persons in theme two (for example " picnic "), whereincontact person 001 all exists in two themes, generates binding information tabulation as shown in the table so in the data structure of subscription client 100:
| Theme one | The user | Thecontact person 001 |
| The contact person 002 |
| The contact person 003 |
| The contact person 004 |
| Theme two | The user | Thecontact person 001 |
| The contact person 005 |
| The contact person 006 |
| The contact person 007 |
When this step is finished,subscription client 100 utilizes itsuser interface section 103 to generate in user interface and shows " one-to-many chat window " corresponding respectively with these two themes, there is difference in each " one-to-many chat window " in terms of content because of contact person's difference, but the form of expression all as shown in Figure 2.In each " one-to-many chat window ", chat records between the contact person of explicit user and all bindings all, and a unified input information window is arranged.But, should be noted that, " one-to-many chat window " is different from general group chat window, the information of its contact person and customer contact is relatively independent, other contact persons are invisible, and therefore when the user sends a chat messages based on this " one-to-many chat window ", each contact person will receive this chat messages separately, for general group chat window, also avoided brushing the harassing and wrecking of screen like this to uncorrelated contact people because of the part contact person.In addition, the user can also need select the contact person of transmission information in " one-to-many chat window ", carries out part and sends.
In step S402,server 200 is set up the forwards tabulation according to binding information tabulation correspondence, is man-to-man mapping relations between user and the contact person in the forwards tabulation.Owing to set up two binding informations tabulations among the step S401, soserver 200 also correspondence set up two forwards tabulations, as follows:
| Theme one | User---contact person 001 |
| User---contact person 002 |
| User---contact person 003 |
| User---contact person 004 |
| Theme two | User---contact person 001 |
| User---contact person 005 |
| User---contact person 006 |
| User---contact person 007 |
In step S403,server 200 receives the chat messages thatsubscription client 100 sends by " one-to-many chat window ".Particularly, for example the user imports chat messages in " the one-to-many chat window " of theme one correspondence, click and send,subscription client 100 can show that in this " one-to-many chat window " chat messages sends successfully, and the chat messages of Fa Songing can be presented in the chat record of corresponding each contact person in this " one-to-many chat window " simultaneously.
In step S404, afterserver 200 receives this chat messages, at first utilize 203 pairs of message forwarding lists of its data processing unit to detect, thereby judgement is learnt this chat messages and will be delivered to the All Contacts in the forwards tabulation of theme one correspondence, sends to contact person'sclient 300 at these contact person places then one by one separately.
In step S405, each contact person's client 300 (300a, 300b......300n) is then replied respectively after receiving the chat messages that the user sends, and receives the chat messages that each contact person'sclient 300 is replied by server 200.Should be noted that for the contact person in " one-to-many chat window " it is simple man-to-man answer chat messages when replying, consistent with prior art.In the present embodiment, behind the chat messages relevant with theme one that receives ascontact person 001 that the user sends, chat messages of then corresponding answer sends toserver 200.
In step S406, afterserver 200 receives the chat messages of each contact person'sclient 300 answer, at first utilize 203 pairs of message forwarding lists of its data processing unit to detect, thereby judge this chat messages belongs to the forwards tabulation under which theme, and further judge its belong in the tabulation of this forwards in which contact person, add a subject identification relevant then, and this chat messages is transmitted tosubscription client 100 with this theme.In the present embodiment,server 200 judges and learns this chat messages from thecontact person 001 in the forwards tabulation of theme one, then this chat messages added a subject identification relevant with theme one, and this chat messages is transmitted tosubscription client 100.
In step S407,subscription client 100 according to its subject identification that has, utilizesuser interface section 103 that this chat messages is shown in " the one-to-many chat window " of corresponding theme after receiving the chat messages of contact person's 001 answer.
Except carrying out message cluster transmition based on " one-to-many chat window ", also support one-key duplication chat record and additions and deletions contact person's function among the present invention, the realization of these functions can be with reference to prior art.(1) process of one-key duplication chat record is: according to user's clicking contact person's chat record in the one-to-many chat window, in the information input window of " one-to-many chat window ", the editor that can be correlated with also sends to all or part contact person in the binding information tabulation with the content replication that clicked.(2) increase contact person's detailed process is in " one-to-many chat window ": contact person's selection is generated the order of " being added into the one-to-many chat window " in contacts list according to the user, server 200 is then judged the contact person who chooses after receiving this order, if added, then prompting adds, for the contact person who does not have in " one-to-many chat window ", then set up contact respectively by connecting construction unit 202.(3) deletion contact person's detailed process is in " one-to-many chat window ": contact person's selection is generated the order of " from the deletion of one-to-many chat window " in the one-to-many chat window according to the user, server 200 then utilizes it to connect the contact of construction unit 202 interruptions to this contact person in " one-to-many chat window " after receiving this order.When the contact person in " one-to-many chat window " changes, need send to server 200 ends to information and upgrade.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.